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

Return global value from TelescopeParameterLookup when passed None #1173

Merged
merged 4 commits into from
Nov 15, 2019

Conversation

watsonjj
Copy link
Contributor

If a global value is set in the TelescopeParameter defaults (e.g. default_value=[("type", "*", value)], this PR adds the ability to retrieve that value from the TelescopeParameter in the absence of any subarray information. This then allows, for example, an IntTelescopeParameter to behave as a normal Int traitlet if there is no subarray information available.

@codecov
Copy link

codecov bot commented Nov 13, 2019

Codecov Report

Merging #1173 into master will increase coverage by 0.19%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
+ Coverage   85.84%   86.03%   +0.19%     
==========================================
  Files         182      182              
  Lines       11472    11502      +30     
==========================================
+ Hits         9848     9896      +48     
+ Misses       1624     1606      -18
Impacted Files Coverage Δ
ctapipe/core/traits.py 98.34% <100%> (+0.16%) ⬆️
ctapipe/core/tests/test_traits.py 100% <100%> (ø) ⬆️
ctapipe/tools/camdemo.py 76.13% <0%> (+20.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c5f445...ba425a5. Read the comment docs.

@watsonjj watsonjj merged commit 1144267 into cta-observatory:master Nov 15, 2019
@watsonjj watsonjj deleted the telparam_default2 branch April 15, 2020 15:17
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

3 participants