Skip to content

Commit

Permalink
removing un-used test
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-rodriguez committed Dec 11, 2024
1 parent 0ade702 commit 3984f17
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,3 @@ def test_coordinates(db):
print(t)

assert len(t) == 0, f"{len(t)} Sources failed coordinate checks"


def test_sig_figs_parallax(db):
# verify that the precision on parallax isn't greater than the error's precision
t = (
db.query(db.Parallaxes.c.parallax_mas, db.Parallaxes.c.parallax_error)
.astropy()
)
# create empty table to add the results to


wrong_sig_figs = []
for i in t:
parallax_sig_figs = count_significant_digits(i['parallax_mas'])
error_sig_figs = count_significant_digits(i['parallax_error'])

if error_sig_figs >= parallax_sig_figs:
wrong_sig_figs.append(i)
assert len(wrong_sig_figs)==0, f"Parallax error has fewer significant figures than parallax for these sources: {wrong_sig_figs}"

0 comments on commit 3984f17

Please sign in to comment.