Skip to content

Commit

Permalink
Update supplement MAG_ACA_ERR test in the cone test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanconn committed Nov 13, 2020
1 parent e557d9a commit 59bd3b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agasc/tests/test_agasc_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ def test_supplement_get_agasc_cone():
assert np.count_nonzero(stars2['COLOR1'][ok] == 1.49) >= 7
assert np.count_nonzero(stars2['COLOR1'][ok] == 1.50) == 0

# For the stars that have updated data for the supplement, in this set all of
# the errors are smaller or the same, but that may not generalize and this is
# an integer column.
assert np.all(stars2['MAG_ACA_ERR'][ok] <= stars1['MAG_ACA_ERR'][ok])
# For the stars that have updated data for the supplement, confirm they don't
# have all the same values for MAG_ACA_ERR as the catalog values. Note this
# is an integer column.
assert np.any(stars2['MAG_ACA_ERR'][ok] != stars1['MAG_ACA_ERR'][ok])

# Similarly, in this set the stars with updated magnitudes are different from
# the catalog values.
Expand Down

0 comments on commit 59bd3b7

Please sign in to comment.