Skip to content

Commit 57fe794

Browse files
committed
Improves the round error handling
1 parent 98e6870 commit 57fe794

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/test_md_outlier_remover.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ def test_mhbs_dist_calculator():
3636

3737
test_dist = np.round(mor.mahalanobis_dist_calculator(x_coord, y_coord), 6)
3838

39-
control_dist = np.array([1.226738, 1.758397, 1.895296, 1.445191, 0.798041,
40-
0.691544, 0.91972, 0.550318, 0.674364, 1.247352,
41-
1.462154, 1.597006, 1.493014, 2.163516, 1.136237,
42-
1.59959])
39+
control_dist = [1.2267382045449271, 1.758397269372304, 1.8952957763364617,
40+
1.445191223272221, 0.79804140504730503,
41+
0.69154415059165508, 0.919720382796942,
42+
0.55031781984857764, 0.67436391809087115,
43+
1.2473515530849255, 1.462153503620737, 1.5970060007168538,
44+
1.4930142356624654, 2.1635163089688803, 1.1362365779638146,
45+
1.5995900954742315]
46+
control_dist = np.round(control_dist, 6)
4347

4448
assert test_dist.all() == control_dist.all()
4549

0 commit comments

Comments
 (0)