-
Notifications
You must be signed in to change notification settings - Fork 92
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
Working base #389
Working base #389
Conversation
update to current main branch
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.
Thanks @Aske-Rosted!
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
Hmm, the "unintended behavior" that you are describing is precisely the behavior I am looking for. Is there any scenario where you need information from a P-frame where one (or more) of your pulse maps is missing? |
I should now have addressed all the suggestions and corrections. I have implemented the handling of NullSplit frames in the way suggsted by @RasmusOrsoe as well as added some extra extraction features for the I3ParticleExtractor. |
merge from newest upstream main
Yes, see "Expected behaviour" here. :) |
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.
Hi @Aske-Rosted,
Thanks for this nice PR. I am approving it now, but before merging I would like you to have a look at:
- One suggestion to update a docstring.
- One comment regarding the way NullSplit frames are skipped.
I'll leave it to you whether and how to resolve these. :)
src/graphnet/data/dataconverter.py
Outdated
@@ -427,11 +427,13 @@ def _extract_data(self, fileset: FileSet) -> List[OrderedDict]: | |||
while i3_file_io.more(): | |||
try: | |||
frame = i3_file_io.pop_physics() | |||
assert self._is_not_null_split_frame(frame) |
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.
As I mention here, I am not particularly fond of this solution, and would propose (1) amore general frame-skipping method and (2) separating this logic from whether the frame is a P-frame. But the proposed code works and is not unreasonable, so I'll leave it at your discretion, @Aske-Rosted.
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.
@Aske-Rosted I think Andreas suggestion is better than what I mentioned earlier.
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.
Is the latest commit satisfactory? I am not 100% certain that all exceptions coming from the I3 modules will contain I3 in the exception name, but I would hope that they do...
Co-authored-by: Andreas Søgaard <andreas.sogaard@gmail.com>
All good, @Aske-Rosted! :) |
Addition of several features used with neutrino-generator-21220 data, which seems to differ slightly compared to previously used data sets.
added functionality includes
Sorry about this being a bit a bunched up collection of added functionality.