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-22663: Reimplement make_apdb.py for Gen 3 #62

Merged
merged 5 commits into from Nov 3, 2020
Merged

Conversation

kfindeisen
Copy link
Member

This PR removes the make_apdb.py script's dependence on pipe_base and on ApPipeConfig, making it forward-compatible with Gen 3. As a side effect, the script now loads configs at a lower level, requiring changes to calling scripts.

Copy link
Collaborator

@mrawls mrawls left a comment

Choose a reason for hiding this comment

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

I think this solves the issue at hand, but I do have a few lingering concerns about how we ensure users wind up with self-consistent configs when making an APDB vs. running the AP pipeline. Thank you for updating the docs and adding tests!

doc/lsst.ap.pipe/apdb.rst Show resolved Hide resolved
doc/lsst.ap.pipe/apdb.rst Show resolved Hide resolved
doc/lsst.ap.pipe/apdb.rst Outdated Show resolved Hide resolved
doc/lsst.ap.pipe/apdb.rst Outdated Show resolved Hide resolved
doc/lsst.ap.pipe/apdb.rst Show resolved Hide resolved
python/lsst/ap/pipe/make_apdb.py Outdated Show resolved Hide resolved
python/lsst/ap/pipe/make_apdb.py Outdated Show resolved Hide resolved
python/lsst/ap/pipe/make_apdb.py Show resolved Hide resolved
Copy link
Collaborator

@mrawls mrawls left a comment

Choose a reason for hiding this comment

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

Thanks for simplifying the config override situation!

python/lsst/ap/pipe/make_apdb.py Outdated Show resolved Hide resolved
The previous parser used the CmdLineTask code, but the latter will
be going away when Gen 2 is removed.
The switch from ApPipeConfig to ApdbConfig is a breaking change,
but one that was agreed to by the users.
This is likely to be a very common user error during the transition
to Gen 3.
@kfindeisen kfindeisen merged commit d55c044 into master Nov 3, 2020
@kfindeisen kfindeisen deleted the tickets/DM-22663 branch November 3, 2020 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants