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-12450: use --reuse-outputs-from instead of doOverwrite options #158

Merged
merged 3 commits into from Nov 13, 2017

Conversation

TallJimbo
Copy link
Member

Note that makeCoaddTempExp is the only CmdLineTask in this package that actually had an overwrite/clobber option prior to these changes (the rest are all in pipe_drivers), and that's why it's getting special treatment. While it might be cleanest to have all of these options handled at the same level, I don't want to restructure the code to achieve that now.

This task has no special keyword arguments.
This task has one special keyword argument: passing reuse=True will cause
the task to skip the creation of warps that are already present in input
or output the repositories.
Copy link
Contributor

Choose a reason for hiding this comment

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

Later you changed to datasetExists(..., write=True) so it will only search the output repos?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point; I'll amend that commit to update the comment as well.

Accepting *args makes it nearly impossible to safely add
non-forwarding arguments.
Because we haven't added a new command-line option to set the ctor
argument, it's now impossible to achieve set reuse=True from the
command-line when running makeCoaddTempExp directly.  But it will be
possible from coaddDriver.py, and we expect that to be used instead
whenever the user might want reuse=True.
@TallJimbo TallJimbo merged commit 9146ad4 into master Nov 13, 2017
@ktlim ktlim deleted the tickets/DM-12450 branch August 25, 2018 06:45
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