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 lookup of telescope parameters by type #2120

Merged
merged 5 commits into from
Nov 25, 2022
Merged

Allow lookup of telescope parameters by type #2120

merged 5 commits into from
Nov 25, 2022

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Nov 16, 2022

This allows also using the TelescopeParameter to be used like this:

self.param.tel["LST_LST_LSTCam"]

instead of just by telescope id.

This is needed for solving #2119

@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Base: 92.74% // Head: 92.75% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (758e137) compared to base (03d320c).
Patch coverage: 97.82% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2120   +/-   ##
=======================================
  Coverage   92.74%   92.75%           
=======================================
  Files         214      214           
  Lines       17911    17947   +36     
=======================================
+ Hits        16612    16647   +35     
- Misses       1299     1300    +1     
Impacted Files Coverage Δ
ctapipe/io/metadata.py 96.58% <ø> (ø)
ctapipe/core/traits.py 93.43% <96.42%> (+0.06%) ⬆️
ctapipe/core/tests/test_traits.py 99.48% <100.00%> (+0.02%) ⬆️
ctapipe/tools/apply_models.py 96.42% <100.00%> (+0.04%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@maxnoe maxnoe requested review from StFroese and kosack November 25, 2022 10:58
@maxnoe
Copy link
Member Author

maxnoe commented Nov 25, 2022

Also required for implementing the software trigger, see #1744

StFroese
StFroese previously approved these changes Nov 25, 2022
nbiederbeck
nbiederbeck previously approved these changes Nov 25, 2022
ctapipe/core/traits.py Outdated Show resolved Hide resolved
@maxnoe maxnoe dismissed stale reviews from nbiederbeck and StFroese via 6b65d60 November 25, 2022 11:39
StFroese
StFroese previously approved these changes Nov 25, 2022
nbiederbeck
nbiederbeck previously approved these changes Nov 25, 2022
nbiederbeck
nbiederbeck previously approved these changes Nov 25, 2022
@nbiederbeck
Copy link
Contributor

flake8 fails because it also fails on latest master

@maxnoe
Copy link
Member Author

maxnoe commented Nov 25, 2022

Ok, should be fixed now. Let's merge this first and then I can rebase the others.

@maxnoe
Copy link
Member Author

maxnoe commented Nov 25, 2022

Mhh. somehow my commit isn't showing up here although I pushed and it says up-to-date... Github issue?

@maxnoe
Copy link
Member Author

maxnoe commented Nov 25, 2022

Ah, now it runs...

@maxnoe maxnoe merged commit 491d298 into master Nov 25, 2022
@maxnoe maxnoe deleted the lookup_type branch November 25, 2022 15:26
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.

5 participants