-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix for I3PulseNoiseTruthFlag extractor issue #340
Fix for I3PulseNoiseTruthFlag extractor issue #340
Conversation
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 @RasmusOrsoe,
Thanks for proposing a fix! A few questions:
I3PulseNoiseTruthFlagIceCubeUpgrade
inherits fromI3FeatureExtractorIceCube86
, but wouldn't it make more sense for it to inherit fromI3FeatureExtractorIceCubeUpgrade
so as to avoid having to re-derivestring
,pmt_dir_x
, etc.?- If the purpose of
I3PulseNoiseTruthFlagIceCubeUpgrade
is to extract a truth label (truth_flag
) would it make more sense to put it ini3truthextractor.py
and remove the dependence onI3FeatureExtractor*
entirely, thereby avoiding the cause of the problem you've encountered altogether?- If not, would it then be an option to use e.g.
getattr(pulse, "charge", padding_value)
instead of theinclude_pulses
argument to fall back to a default ofpadding_value
in case we get a pulse map that doesn't have thecharge
attribute?
- If not, would it then be an option to use e.g.
Yeah, I would think so. I did not change that part, but perhaps I should.
Conceptually, I agree that this would be the best way to go. But technically, it's important to include DOM ids, PMT ids, perhaps even positions, in order to make sure that the flags are sorted correctly according to the pulsemap.
I suspect that would be a much more elegant solution. I did not think of that! |
@asogaard this should be it, I think |
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.
Fantastic!
Fixes #337 . Tested on upgrade data.