verify.py floating-point fix

This commit is contained in:
Nguyen Quy Anh
2026-05-19 10:06:46 +02:00
parent 5ce3f9a440
commit c4bf9f5c00
+1 -1
View File
@@ -5,7 +5,7 @@ import math
if len(sys.argv) < 3:
sys.exit("Use it like: python verify.py reference.csv generated.csv [tol]")
# We can use this later in case that we wanna compare something with a tolerance
tol = float(sys.argv[3]) if len(sys.argv) > 3 else 0.0
tol = float(sys.argv[3]) if len(sys.argv) > 3 else 0.00001
with open(sys.argv[1], newline="") as f:
ref = list(csv.reader(f))