Skip to content

Commit a589de2

Browse files
committed
loosen tolerance to 1e-4 from 1e-5
1 parent 4dcc8f1 commit a589de2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/test_morphio.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ def are_files_same(file1, file2):
6161
assert len(f1_arr) == len(f2_arr)
6262
for idx, _ in enumerate(f1_arr):
6363
if isfloat(f1_arr[idx]) and isfloat(f2_arr[idx]):
64-
assert np.isclose(float(f1_arr[idx]), float(f2_arr[idx]))
64+
assert np.isclose(
65+
float(f1_arr[idx]),
66+
float(f2_arr[idx]),
67+
rtol=1e-4,
68+
atol=1e-6,
69+
)
6570
else:
6671
assert f1_arr[idx] == f2_arr[idx]
6772

0 commit comments

Comments
 (0)