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-31367: Add butler register-dataset-type subcommand #558

Merged
merged 2 commits into from Aug 26, 2021
Merged

Conversation

timj
Copy link
Member

@timj timj commented Aug 13, 2021

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

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.

Handful of comments. Thanks for doing this!

@click.argument("dataset_type", required=True)
@click.argument("storage_class", required=True, nargs=1)
@click.argument("dimensions", required=False, nargs=-1)
@click.option("--is-calibration/--no-is-calibration", is_flag=True, default=False,
Copy link
Contributor

Choose a reason for hiding this comment

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

"no" instead of "not?

Copy link
Member Author

Choose a reason for hiding this comment

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

The convention is --x to enable and --no-x to disable and that seems to be what click uses elsewhere. I think I could leave off the negating option but then you'd have no way to set it explicitly rather than letting it be the default.

python/lsst/daf/butler/cli/cmd/commands.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/script/register_dataset_type.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/script/register_dataset_type.py Outdated Show resolved Hide resolved
python/lsst/daf/butler/script/register_dataset_type.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-31367 branch 2 times, most recently from 45fed35 to 685d91b Compare August 26, 2021 18:25
@timj timj merged commit a60ebd9 into master Aug 26, 2021
@timj timj deleted the tickets/DM-31367 branch August 26, 2021 19:55
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