Régression des tests unitaires (5/16)
Analytical Radiative Transfer code in pYthon language
Brought to you by:
lchevallier59
Les tests unitaires ne passent plus avec le dernier état du code (master commit f76e95 du 12/11/2022). 5 tests sur 16 sont en régression car en accord avec une faible précision, avec un désaccord pouvant atteindre 0.1% (cf. log ci-dessous).
loic@desktop-qtn6tp1:~/codes$ python3
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyarty import *
>>> unittest.main()
...FFF.......F.F
======================================================================
FAIL: test_Psi (pyarty.tests.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/loic/codes/pyarty/tests.py", line 136, in test_Psi
self.assertEqual(Psi(0.5, 1, 0.1, precision=1e-10), 0.0042115994809062886)
AssertionError: 0.00421162514083892 != 0.004211599480906289
======================================================================
FAIL: test_Psi_n (pyarty.tests.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/loic/codes/pyarty/tests.py", line 142, in test_Psi_n
self.assertEqual(Psi_n(1, 0.5, 1, 0.1, precision=1e-10), 0.0042115994809062886)
AssertionError: 0.00421162514083892 != 0.004211599480906289
======================================================================
FAIL: test_SINF_Phi (pyarty.tests.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/loic/codes/pyarty/tests.py", line 132, in test_SINF_Phi
self.assertEqual(SINF.Phi(0.5, 0.1), 0.5845374948140506)
AssertionError: 0.5845588558922021 != 0.5845374948140506
======================================================================
FAIL: test_rho_pm (pyarty.tests.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/loic/codes/pyarty/tests.py", line 148, in test_rho_pm
self.assertEqual(rho_pm(0.5, 1, 0.5, '+'), 1.0099391851840236)
AssertionError: 1.0140973722260087 != 1.0099391851840236
======================================================================
FAIL: test_zeta_pm (pyarty.tests.tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/loic/codes/pyarty/tests.py", line 171, in test_zeta_pm
self.assertEqual(rho_pm(0.5, 1, 0.5, '+'), 1.0224414608308878)
AssertionError: 1.0140973722260087 != 1.0224414608308878
----------------------------------------------------------------------
Ran 16 tests in 64.362s
FAILED (failures=5)
Diff:
Diff: