Skip to content

Commit

Permalink
Change assertAlmostEqual in gaia tests to 14 places
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanneBogart committed Jun 18, 2024
1 parent 496f978 commit 9d911db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_gaia_direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def test_proper_motion(self):
gaia_id = obj.id.split('_')[-1]
df = self.df.query(f"id=={gaia_id}")
row = df.iloc[0]
self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=15)
self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=14)
self.assertAlmostEqual(np.degrees(row.coord_dec), obj.dec,
places=15)
places=14)

self.assertEqual(mjd0, object_list.mjd)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_gaia_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def test_proper_motion(self):
gaia_id = obj.id.split('_')[-1]
df = self.df.query(f"id=={gaia_id}")
row = df.iloc[0]
self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=15)
self.assertAlmostEqual(np.degrees(row.coord_ra), obj.ra, places=14)
self.assertAlmostEqual(np.degrees(row.coord_dec), obj.dec,
places=15)
places=14)

self.assertEqual(mjd0, object_list.mjd)

Expand Down

0 comments on commit 9d911db

Please sign in to comment.