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-35895: Use band for the dataId not filter #650

Merged
merged 3 commits into from Aug 15, 2022
Merged

DM-35895: Use band for the dataId not filter #650

merged 3 commits into from Aug 15, 2022

Conversation

timj
Copy link
Member

@timj timj commented Aug 15, 2022

Gen3 uses band for coadds. If people want to retrieve by
physical filter it would likely need a change in API
or much more cleverness in trying to inspect the dataset type.

Gen3 uses band for coadds. If people want to retrieve by
physical filter it would likely need a change in API
or much more cleverness in trying to inspect the dataset type.
Gen3 knows that the dataId includes detector and so does not need
to try many variants.
Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Minor comment on the doc; otherwise if these aren't being used/tested, should we also deprecate them?

# replace with a local dataset
DATA_DIR = "/datasets/hsc/repo/rerun/RC/w_2018_22/DM-14547"
butler = Butler(inputs=DATA_DIR)
DATA_DIR = "/repo/main"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that /repo/main works anywhere ...

Copy link
Member Author

Choose a reason for hiding this comment

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

It's meant to be an example. Also, K-T was pondering defining /repo/main as a butler alias at SLAC.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. Nothing is going to work without a collections parameter either here or in the fromButler method.

@timj timj merged commit 679a952 into main Aug 15, 2022
@timj timj deleted the tickets/DM-35895 branch August 15, 2022 21:36
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