Skip to content

Commit

Permalink
fix test values
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jun 7, 2021
1 parent 9454ce2 commit ccc2bc3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions tests/test_jointcal_cfht.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def setup_jointcalTask_2_visits_constrainedAstrometry(self):
'associated_astrometry_fittedStars': 2272,
'selected_astrometry_fittedStars': 1229,
'selected_astrometry_ccdImages': 12,
'astrometry_final_chi2': 1124.0575,
'astrometry_final_ndof': 1912,
'astrometry_final_chi2': 1144.88,
'astrometry_final_ndof': 1918,
}

return dist_rms_relative, metrics
Expand All @@ -159,7 +159,7 @@ def test_jointcalTask_2_visits_constrainedAstrometry_no_rank_update(self):
"""
relative_error, metrics = self.setup_jointcalTask_2_visits_constrainedAstrometry()
metrics['astrometry_final_chi2'] = 1069.348
metrics['astrometry_final_ndof'] = 1900
metrics['astrometry_final_ndof'] = 1644

self.config.astrometryDoRankUpdate = False

Expand All @@ -171,8 +171,8 @@ def test_jointcalTask_2_visits_constrainedAstrometry_4sigma_outliers(self):
"""
dist_rms_relative, metrics = self.setup_jointcalTask_2_visits_constrainedAstrometry()
self.config.outlierRejectSigma = 4
metrics['astrometry_final_chi2'] = 757.027
metrics['astrometry_final_ndof'] = 1732
metrics['astrometry_final_chi2'] = 772.409
metrics['astrometry_final_ndof'] = 1744

self._testJointcalTask(2, dist_rms_relative, self.dist_rms_absolute, None, metrics=metrics)

Expand Down Expand Up @@ -252,7 +252,7 @@ def test_jointcalTask_2_visits_constrainedPhotometry_no_rank_update(self):
# The constrainedPhotometry model is not purely linear, so a small
# change in final chi2 is possible.
metrics['photometry_final_chi2'] = 11396.27
metrics['photometry_final_ndof'] = 2716
metrics['photometry_final_ndof'] = 2695

self._testJointcalTask(2, None, None, pa1, metrics=metrics)

Expand All @@ -268,7 +268,7 @@ def test_jointcalTask_2_visits_constrainedPhotometry_lineSearch(self):
# lines in the DEBUG log for values that are not ~1 for proof).
pa1 = 0.14
metrics['photometry_final_chi2'] = 10500.4
metrics['photometry_final_ndof'] = 2714
metrics['photometry_final_ndof'] = 2712

self._testJointcalTask(2, None, None, pa1, metrics=metrics)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_jointcal_decam.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def test_jointcalTask_2_visits(self):
'selected_photometry_fittedStars': 4637,
'selected_astrometry_ccdImages': 15,
'selected_photometry_ccdImages': 15,
'astrometry_final_chi2': 2803.108,
'astrometry_final_ndof': 890,
'astrometry_final_chi2': 2899.14,
'astrometry_final_ndof': 896,
'photometry_final_chi2': 16529,
'photometry_final_ndof': 3634,
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_jointcal_hsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def test_jointcalTask_2_visits_simple_astrometry_no_photometry_match_cut_10(self
'associated_astrometry_fittedStars': 2070,
'selected_astrometry_fittedStars': 1042,
'selected_astrometry_ccdImages': 6,
'astrometry_final_chi2': 800.346,
'astrometry_final_ndof': 1864,
'astrometry_final_chi2': 819.608,
'astrometry_final_ndof': 1872,
}
pa1 = None
self._testJointcalTask(2, self.dist_rms_relative, dist_rms_absolute, pa1, metrics=metrics)
Expand Down

0 comments on commit ccc2bc3

Please sign in to comment.