Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED geopack/test_geopack1.py::KnownValues::test_to_known_values - AssertionError: -0.53356312486214 != -0.5335631237417825 #21

Open
Hellseher opened this issue May 19, 2024 · 0 comments

Comments

@Hellseher
Copy link

Hi,

During packaging https://github.com/spedas/pyspedas for Guix I've faced with the
issue of failing unit test of geopack which comes as install dependency of the
project:

Using pytest
============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-7.1.3, pluggy-1.0.0 -- /gnu/store/jh59fh48mcffyz5wmsjj0p96xkkflbz0-python-wrapper-3.10.7/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/tmp/guix-build-python-geopack-1.0.10.drv-0/geopack-1.0.10/.hypothesis/examples')
rootdir: /tmp/guix-build-python-geopack-1.0.10.drv-0/geopack-1.0.10
plugins: hypothesis-6.54.5
collecting ... collected 1 item

geopack/test_geopack1.py::KnownValues::test_to_known_values FAILED       [100%]

=================================== FAILURES ===================================
_______________________ KnownValues.test_to_known_values _______________________

self = <geopack.test_geopack1.KnownValues testMethod=test_to_known_values>

    def test_to_known_values(self):
        """geopack should give known result with known input"""

        # test recalc, which returns dipole tilt angle in rad.
>       self.assertEqual(self.test['recalc'], geopack.recalc(self.test['ut'], *self.test['v_gse']))
E       AssertionError: -0.53356312486214 != -0.5335631237417825

geopack/test_geopack1.py:62: AssertionError
=========================== short test summary info ============================
FAILED geopack/test_geopack1.py::KnownValues::test_to_known_values - Assertio...
============================== 1 failed in 0.75s ===============================
  • Python 3.10.7

  • python-geopack@1.0.10

  • python-pytest@7.1.3

  • python-numpy@1.23.2

  • python-scipy@1.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant