Fix: Better first_point fix #613
GitHub Actions / JUnit Test Report
failed
Dec 5, 2023 in 0s
221 tests run, 220 passed, 0 skipped, 1 failed.
Annotations
Check failure on line 80 in tests/astrocyte/test_space_colonization.py
github-actions / JUnit Test Report
tests/astrocyte/test_space_colonization.py.test_repulsion
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 1 / 3 (33.3%)
Max absolute difference: 0.36787944
Max relative difference: 1.
x: array([0., 0., 0.])
y: array([0. , 0. , 0.367879])
Raw output
def test_repulsion():
point = np.zeros(3)
points = np.array([[0.0, 0.0, 1.0], [0.0, 0.0, 2.0], [0.0, 0.0, 3.0]])
vectors = points - point
result = tested._repulsion(points[:1], point, 1.0)
expected = vectors[0] * np.exp(-1)
> npt.assert_allclose(result, expected)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatched elements: 1 / 3 (33.3%)
E Max absolute difference: 0.36787944
E Max relative difference: 1.
E x: array([0., 0., 0.])
E y: array([0. , 0. , 0.367879])
tests/astrocyte/test_space_colonization.py:90: AssertionError
Loading