tsssss / geopack

Python version of geopack and Tsyganenko models
MIT License
30 stars 12 forks source link

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

Open Hellseher opened 3 months ago

Hellseher commented 3 months ago

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 ===============================