Skip to content

Commit

Permalink
Merge pull request #52 from sot/supplement_test_tweak
Browse files Browse the repository at this point in the history
Update supplement MAG_ACA_ERR test
  • Loading branch information
jeanconn authored Nov 13, 2020
2 parents 15806d3 + 59bd3b7 commit bb41340
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion agasc/tests/test_agasc_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,13 @@ 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

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.
assert np.all(stars2['MAG_ACA'][ok] != stars1['MAG_ACA'][ok])

assert np.all(stars2['MAG_ACA_ERR'][~ok] == stars1['MAG_ACA_ERR'][~ok])
Expand Down

0 comments on commit bb41340

Please sign in to comment.