You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.
The CI tests we do during the build of the Debian poliastro package fail now:
__________ test_maneuver_constructor_raises_error_if_invalid_delta_v ___________
def test_maneuver_constructor_raises_error_if_invalid_delta_v():
dv1 = np.zeros(3) * u.km / u.s
dv2 = np.ones(2) * u.km / u.s # Incorrect dv
with pytest.raises(ValueError) as excinfo:
with warnings.catch_warnings():
# Different length numpy arrays generate a deprecation warning.
warnings.simplefilter(
"ignore", category=np.VisibleDeprecationWarning
)
Maneuver((0 * u.s, dv1), (2 * u.s, dv2))
> assert "Delta-V must be three dimensions vectors" in excinfo.exconly()
E AssertionError: assert 'Delta-V must be three dimensions vectors' in 'ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.'
E + where 'ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.' = <bound method ExceptionInfo.exconly of <ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=4>>()
E + where <bound method ExceptionInfo.exconly of <ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=4>> = <ExceptionInfo ValueError('setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (2,) + inhomogeneous part.') tblen=4>.exconly
tests/test_maneuver.py:26: AssertionError
______________________ test_stumpff_functions_above_zero _______________________
def test_stumpff_functions_above_zero():
psi = 3.0
expected_c2 = (1 - cos(psi**0.5)) / psi
expected_c3 = (psi**0.5 - sin(psi**0.5)) / psi**1.5
assert_equal(c2(psi), expected_c2)
> assert_equal(c3(psi), expected_c3)
E AssertionError:
E Items are not equal:
E ACTUAL: 0.143379966939162
E DESIRED: 0.14337996693916197
tests/test_stumpff.py:22: AssertionError
______________________ test_stumpff_functions_under_zero _______________________
def test_stumpff_functions_under_zero():
psi = -3.0
expected_c2 = (cosh((-psi) ** 0.5) - 1) / (-psi)
expected_c3 = (sinh((-psi) ** 0.5) - (-psi) ** 0.5) / (-psi) ** 1.5
> assert_equal(c2(psi), expected_c2)
E AssertionError:
E Items are not equal:
E ACTUAL: 0.6381924800586426
E DESIRED: 0.6381924800586427
tests/test_stumpff.py:30: AssertionError
While the last two failures are probably easy to fix with an np.testing.assert_almost_equal() or similar, I have no glue about the first one. Do you have an idea?
Versions:
poliastro_0.17.0
Python 3.11.2
astropy 5.2
matplotlib 3.6.3
numpy 1.24.2
numba 0.56.4
pandas 1.5.3
scipy 1.10.0
sympy 1.11
All Python packages (installed as Debian packages; the part after the - is the Debian revision):
I tested all previous conditions except the Python 3.11 (Python 3.10 in my case) and the test passed. Right now, poliastro does not support 3.11 yet since it depends on Numba but no wheels for this py311 have been released, see issue numba/numba#8304
I should have read the full error and the meaning of the test ... Actually the error message seems somehow similar to what it should be, and a ValueError is raised. So, I would take this as a minor problem and for the Debian package just mark the first test xfail and change the two others to almost_equal. This keeps poliastro in the game for the next Debian "Bookworm" release.
This is a forward of Debian#1031451.
馃悶 Problem
The CI tests we do during the build of the Debian poliastro package fail now:
While the last two failures are probably easy to fix with an
np.testing.assert_almost_equal()
or similar, I have no glue about the first one. Do you have an idea?Versions:
All Python packages (installed as Debian packages; the part after the
-
is the Debian revision):The text was updated successfully, but these errors were encountered: