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

Set defaults only for fields not passed in __init__ #1001

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Mar 5, 2019

This reduces runtime if values are passed to __init__ quite a bit for simple cases. If defaults are large, the speedup should be even more prominent.

@codecov
Copy link

codecov bot commented Mar 5, 2019

Codecov Report

Merging #1001 into master will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1001      +/-   ##
==========================================
+ Coverage   80.26%   80.42%   +0.16%     
==========================================
  Files         193      193              
  Lines       11045    11045              
==========================================
+ Hits         8865     8883      +18     
+ Misses       2180     2162      -18
Impacted Files Coverage Δ
ctapipe/core/container.py 68.31% <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 423e61e...fac99cf. Read the comment docs.

@maxnoe maxnoe force-pushed the container_defaults branch from bbae820 to fac99cf Compare March 5, 2019 13:55
@dneise dneise merged commit c6cbbce into master Mar 5, 2019
@maxnoe maxnoe deleted the container_defaults branch December 17, 2019 12: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.

3 participants