Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-30534: Turn off config parameter from obs_subaru for tests #184

Merged
merged 1 commit into from Aug 3, 2021

Conversation

cmsaunders
Copy link
Contributor

The default value of the astrometryOutlierRelativeTolerance config
parameter has been changed in obs_subaru, so the expected values of chi2
and ndof change in some tests.

@parejkoj
Copy link
Collaborator

Oh, in the interest of future-proofing for RFC-775 (we want to eventually decouple the obs-package configs, and the jointcal test configs), can we instead have an explicit setting in jointcal/tests/config/hsc-config.py to turn off the obs_subaru setting? We have an explicit test of astrometryOutlierRelativeTolerance already.

@cmsaunders cmsaunders requested a review from laurenam June 28, 2021 18:30
@cmsaunders cmsaunders changed the title DM-30534: Update expected chi2 and ndof parameters DM-30534: Turn off obs_subaru config parameter for tests Jun 29, 2021
@@ -1,2 +1,3 @@
# no colorterms in tests unless specifically requested (this overrides the default HSC config)
config.applyColorTerms = False
config.astrometryOutlierRelativeTolerance = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs have this as type float, not bool, so I believe this should be set to 0. Also, you need a carriage return.

I found the commit message a tad confusing as you are not actually removing the use of obs_subaru here.

Following RFC-775 and DM-30899, jointcal should not use obs_* packages.
Testing of the config parameter astrometryOutlierRelativeTolerance is
also already done in `jointcal/tests/test_jointcal_cfht.py`. Thus, it
should be turned off in `jointcal/tests/config/hsc-config.py`.
@cmsaunders cmsaunders changed the title DM-30534: Turn off obs_subaru config parameter for tests DM-30534: Turn off config parameter from obs_subaru for tests Jul 27, 2021
@cmsaunders cmsaunders merged commit 781e53d into master Aug 3, 2021
@cmsaunders cmsaunders deleted the tickets/DM-30534 branch August 3, 2021 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants