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-22677: Relocate scripts to python module #216

Merged
merged 5 commits into from Jan 7, 2020
Merged

Conversation

timj
Copy link
Member

@timj timj commented Dec 18, 2019

No description provided.

@timj timj requested a review from TallJimbo December 18, 2019 21:27
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Two minor comments on one script that probably apply to all of them.

print(config, file=outfh)


def main():
Copy link
Member

Choose a reason for hiding this comment

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

Would it be worthwhile having this take an args to pass to parse_args() that would take sys.argv[1:] or similar? That seems like it's a missing piece of making this more usable, but I also don't really a scenario where we'd actually use that.

Copy link
Member Author

Choose a reason for hiding this comment

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

python/lsst/daf/butler/script/dumpButlerConfig.py Outdated Show resolved Hide resolved
Note
----
Notes
-----
Copy link
Member

Choose a reason for hiding this comment

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

I think I've also got this fix on a branch for you to review 🙂 .

Exceptions lead to bad exit status anyhow so there is no need
to catch the exception just to return a bad exit status.
@timj timj merged commit a94cba3 into master Jan 7, 2020
@timj timj deleted the tickets/DM-22677 branch January 7, 2020 21: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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants