Skip to content

Commit

Permalink
Adapt test for old config naming for calib flag
Browse files Browse the repository at this point in the history
The data in testdata_jointcal used in this test was processed pre- RFC-498
(ticket DM-14997) and thus has the old flag names.  This sets the config in
the test to point to the old name appropriate for the current datasets in
testdata_jointcal.

This should be removed if the data in testdata_jointcal are ever reprocessed
post-RFC-498.
  • Loading branch information
laurenam committed Aug 9, 2018
1 parent 02ced20 commit bf3f2aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_jointcal_cfht.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def test_jointcalTask_2_visits_constrainedPhotometry_flagged(self):
"""Test the use of the FlaggedSourceSelector."""
pa1, metrics = self.setup_jointcalTask_2_visits_constrainedPhotometry()
self.config.sourceSelector.name = "flagged"
# Calib flag names changed with RFC-498 (DM-14997). The following sets the config to use the
# old names associated with the current data in testdata_jointcal that was processed pre-RFC-498.
# Remove line if the data in testdata_jointcal are ever reprocessed post-RFC-498.
self.config.sourceSelector.active.field = "calib_psfUsed"
# Reduce warnings due to flaggedSourceSelector having fewer sources than astrometrySourceSelector.
self.config.minMeasuredStarsPerCcd = 30
self.config.minRefStarsPerCcd = 20
Expand Down

0 comments on commit bf3f2aa

Please sign in to comment.