diff --git a/source/MulensModel/tests/test_FitData.py b/source/MulensModel/tests/test_FitData.py index 248e8411..ede364d4 100644 --- a/source/MulensModel/tests/test_FitData.py +++ b/source/MulensModel/tests/test_FitData.py @@ -1029,7 +1029,7 @@ def test_get_trajectory_1L2S_satellite_parallax(): ratio_x = trajectory.x / ref_Spitzer[6] ratio_y = trajectory.y / ref_Spitzer[7] np.testing.assert_almost_equal(ratio_x, 1., decimal=2) - np.testing.assert_almost_equal(ratio_y, 1., decimal=2) + np.testing.assert_almost_equal(ratio_y, 1., decimal=3) # Tests to add: # diff --git a/source/MulensModel/tests/test_Model.py b/source/MulensModel/tests/test_Model.py index a70e4ccd..883736a1 100644 --- a/source/MulensModel/tests/test_Model.py +++ b/source/MulensModel/tests/test_Model.py @@ -805,8 +805,8 @@ def test_1L1S(self): x = (times - t_0) / t_E ratio_x = trajectory.x / x ratio_y = trajectory.y / y - np.testing.assert_almost_equal(ratio_x, [1.] * len(ratio_x), decimal=4) - np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=4) + np.testing.assert_almost_equal(ratio_x, 1.) + np.testing.assert_almost_equal(ratio_y, 1.) def test_1L1S_annual_parallax(self): """case with annual parallax""" @@ -815,8 +815,8 @@ def test_1L1S_annual_parallax(self): ratio_x = trajectory.x / self.ref_OGLE[6] ratio_y = trajectory.y / self.ref_OGLE[7] - np.testing.assert_almost_equal(ratio_x, [1.] * len(ratio_x), decimal=2) - np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=2) + np.testing.assert_almost_equal(ratio_x, [1.] * len(ratio_x), decimal=3) + np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=3) def test_1L1S_satellite_parallax_1(self): """Case with satellite parallax (check test_Model_Parallax.py)""" @@ -830,7 +830,7 @@ def test_1L1S_satellite_parallax_1(self): ratio_x = trajectory.x / self.ref_Spitzer[6] ratio_y = trajectory.y / self.ref_Spitzer[7] np.testing.assert_almost_equal(ratio_x, [1.] * len(ratio_x), decimal=2) - np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=2) + np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=3) def test_1L1S_satellite_parallax_2(self): """Case with satellite parallax (check test_Model_Parallax.py)""" @@ -842,7 +842,7 @@ def test_1L1S_satellite_parallax_2(self): ratio_x = trajectory.x / self.ref_Spitzer[6] ratio_y = trajectory.y / self.ref_Spitzer[7] np.testing.assert_almost_equal(ratio_x, [1.] * len(ratio_x), decimal=2) - np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=2) + np.testing.assert_almost_equal(ratio_y, [1.] * len(ratio_y), decimal=3) def test_1L2S(self): """Binary source trajectories""" diff --git a/source/MulensModel/version.py b/source/MulensModel/version.py index 6ebac24f..326b86ff 100644 --- a/source/MulensModel/version.py +++ b/source/MulensModel/version.py @@ -1 +1 @@ -__version__ = "2.18.0" +__version__ = "2.19.0"