-
Notifications
You must be signed in to change notification settings - Fork 272
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
Improve ShowerProcessor API, fixes #2071 #2073
Conversation
Codecov ReportBase: 92.43% // Head: 92.49% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2073 +/- ##
==========================================
+ Coverage 92.43% 92.49% +0.05%
==========================================
Files 197 197
Lines 16198 16206 +8
==========================================
+ Hits 14972 14989 +17
+ Misses 1226 1217 -9
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. |
In light of this change, we should also review #2052 and perhaps consider making |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment, otherwise looks good. (And happy that this was as easy as I thought)
Perhaps we can give the base |
I'd rather have the higher level reconstructors have traitlets for which reconstructions to use as input and them raising errors if they cannot find it I think. Something like this:
Like this, the reconstructor makes the checks, also when used on its own. |
So it results in the config that you suggested in the issue. Great, that makes sense to me. |
@StFroese Can you resolve the conflict? You might need to change more things than the conflict implies to get the correct behavior, since you moved the code. |
Yes |
@StFroese Can you remove all the "HillasIntersection" things from the test configs where not explicitly wanted? We shouldn't spend too much time in the CI making duplicate reconstructions |
Done |
I changed two major things.
ShowerProcessor.__call__
now no longer fills the Containers from the Reconstructors into the event structure. This is now done directly in the call function of each ReconstructorShowerProcessor
now allows a list of multiple reconstructors. I also had to change theProcessorTool
to write event statistic tables for a list of reconstructors.I also changed almost every config in the
resources
folder and some tests. Please take a look at that 😅