`TestGeary::test_by_col[W]` failure -- `312-numba-dev`
Opened this issue · 0 comments
jGaboardi commented
- New failure in
CI (ubuntu-latest, ci/312-numba-dev.yaml)
seen in #336 - this is perhaps a fluke -- will keep an eye on it
FAILED esda/tests/test_geary.py::TestGeary::test_by_col[W] - AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference among violations: 0.001
Max relative difference among violations: 1.
ACTUAL: array([0.002])
DESIRED: array(0.001)
= 1 failed, 149 passed, 9 skipped, 2 xpassed, 110 warnings in 95.26s (0:01:35) =
=================================== FAILURES ===================================
___________________________ TestGeary.test_by_col[W] ___________________________
[gw2] linux -- Python 3.12.4 /home/runner/micromamba/envs/test/bin/python3.12
self = <esda.tests.test_geary.TestGeary object at 0x7f7b019a87d0>
w = <libpysal.weights.contiguity.Rook object at 0x7f7b01b8ca40>
@parametrize_w
def test_by_col(self, w):
import pandas as pd
df = pd.DataFrame(self.y, columns=["y"])
r1 = geary.Geary.by_col(df, ["y"], w=w, permutations=999)
this_geary = np.unique(r1.y_geary.values)
this_pval = np.unique(r1.y_p_sim.values)
np.random.seed(12345)
c = geary.Geary(self.y, w, permutations=999)
np.testing.assert_allclose(this_geary, c.C)
> np.testing.assert_allclose(this_pval, c.p_sim)
esda/tests/test_geary.py:74:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<function assert_allclose.<locals>.compare at 0x7f7b0195e2a0>, array([0.002]), array(0.001))
kwds = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'strict': False, ...}
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
> return func(*args, **kwds)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 1 (100%)
E Max absolute difference among violations: 0.001
E Max relative difference among violations: 1.
E ACTUAL: array([0.002])
E DESIRED: array(0.001)
../../../micromamba/envs/test/lib/python3.12/contextlib.py:81: AssertionError