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-15606: Move unit tests' retargetting a.net to configfile #110

Merged
merged 1 commit into from Sep 28, 2018

Conversation

yalsayyad
Copy link
Contributor

Many unit tests in this package retarget LoadAstrometryNetObjectsTask
and then test JointcalTask with entrypoint parseAndRun(), the
CommandlineTask parser, which loads and applies the relevant
obs_package config overrides.
Move the astrometry and photometry RefObjLoader retargetting to a
configfile so it is applied last and the unit tests are not
affected by the obs_package configs,

Copy link
Collaborator

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

One tiny comment comment, otherwise this looks good.

self.config.astrometryRefObjLoader.retarget(LoadIndexedReferenceObjectsTask)
# use the a.net refcat for photometry.
self.config.photometryRefObjLoader.retarget(LoadAstrometryNetObjectsTask)
# use the a.net refcat for photometry gaia for astrometry
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing comma: ...photometry, gaia...

@yalsayyad yalsayyad force-pushed the tickets/DM-15606 branch 2 times, most recently from 64028bc to cb48cbe Compare September 28, 2018 20:45
Many unit tests in this package retarget LoadAstrometryNetObjectsTask
and then test JointcalTask with entry point `parseAndRun()`, the
CommandlineTask parser, which loads and applies the relevant
obs_package config overrides.
Move the astrometry and photometry RefObjLoader retargeting to a
config file so that it is applied last and the unit tests are not
affected by the obs_package configs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants