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-26326: Remove obs dependency from ap_verify_testdata and ap_pipe_testdata #115

Merged
merged 1 commit into from Dec 4, 2020

Conversation

kfindeisen
Copy link
Member

This PR compensates for the removal of the obs_lsst dependency from lsst/ap_verify_testdata#26 by adding a new dependency, and ensuring the DataTestCase base class checks separately for the testdata and the obs package being available.

ap_verify_testdata depends on obs_lsst, but should not have a formal
dependency on it to avoid unnecessary rebuilds. This is a deliberate
deviation from the ap_verify dataset spec, but can be worked around
automatically in test code.
Copy link
Contributor

@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 question, otherwise this looks good.

@@ -45,6 +45,12 @@ class DataTestCase(lsst.utils.tests.TestCase):
testDataset = 'ap_verify_testdata'
"""The EUPS package name of the dataset to use for testing (`str`).
"""
obsPackage = 'obs_lsst'
"""The obs package associated with ``testDataset`` (`str`).
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this approach really necessary? I guess this is future-proofing other subpackages/tests using different data?

Copy link
Member Author

@kfindeisen kfindeisen Dec 3, 2020

Choose a reason for hiding this comment

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

Pretty much, yes. It seemed silly (and hard to document) to support multiple datasets but require them to all be obs_lsst. I don't think the subclass code will need to care either way.

@kfindeisen kfindeisen merged commit f3b6183 into master Dec 4, 2020
@kfindeisen kfindeisen deleted the tickets/DM-26326 branch December 4, 2020 00:37
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