diff options
author | Hind-M <hind.montassif@gmail.com> | 2021-10-25 10:23:45 +0200 |
---|---|---|
committer | Hind-M <hind.montassif@gmail.com> | 2021-10-25 10:23:45 +0200 |
commit | 0bf357f6346fab6edf96d580a9195c2acbb79bae (patch) | |
tree | f09ebd703694a5d964f271bd286383627d618f7f /src/python/test/test_dtm.py | |
parent | 00dc44281f59aa2b7bb612ec2a7f46720bb944f9 (diff) |
Revert "Add warnings in dtm.py for DistanceToMeasure and DTMDensity"
This reverts commit f461f050ee8bad509814b4851ab7ae8f43502962.
Diffstat (limited to 'src/python/test/test_dtm.py')
-rwxr-xr-x | src/python/test/test_dtm.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/python/test/test_dtm.py b/src/python/test/test_dtm.py index 52468d0f..c29471cf 100755 --- a/src/python/test/test_dtm.py +++ b/src/python/test/test_dtm.py @@ -97,15 +97,7 @@ def test_dtm_overflow_warnings(): for impl in impl_warn: dtm = DistanceToMeasure(2, q=10000, implementation=impl) r = dtm.fit_transform(pts) - assert len(w) == 3 + assert len(w) == 2 for i in range(len(w)): assert issubclass(w[i].category, RuntimeWarning) assert "Overflow" in str(w[i].message) - -def test_density_overflow_warning(): - distances = numpy.array([[10., 100.], [10000000000000., 10.]]) - with warnings.catch_warnings(record=True) as w: - density = DTMDensity(k=2, q=100000, implementation="keops", dim=1).fit_transform(distances) - assert len(w) == 1 - assert issubclass(w[0].category, RuntimeWarning) - assert "Overflow" in str(w[0].message) |