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

Allow selecting raw/proc data in components layer #468

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

takluyver
Copy link
Member

Preparing for the future when raw & proc data has different names.

You can pass raw=True, False or None. The default is None, which tries to preserve the legacy behaviour of using proc if possible and raw if not.

Opening a draft PR to try the CI.

extra_data/components.py Fixed Show fixed Hide fixed
Comment on lines +1630 to +1631
self.source_to_modno = {s: (m - first_modno + 1)
for (s, m) in self.source_to_modno.items()}

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute source_to_modno, which was previously defined in superclass
MultimodDetectorBase
.
# JUNGFRAU modno is expected (e.g. extra_geom) to start with 1.
self.source_to_modno = {s: (m - first_modno + 1)
for (s, m) in self.source_to_modno.items()}
self.modno_to_source = {m: s for (s, m) in self.source_to_modno.items()}

Check warning

Code scanning / CodeQL

Overwriting attribute in super-class or sub-class Warning

Assignment overwrites attribute modno_to_source, which was previously defined in superclass
MultimodDetectorBase
.
@takluyver takluyver mentioned this pull request Mar 5, 2024
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

1 participant