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

Changed i3featureextractor.py to also extract the event datetime from frame I3EventHeader. #306

Conversation

Peterandresen12
Copy link
Contributor

I have changed the i3featureextractor.py to also extract the datetime of the events, which can for instance be used to identify the moon position at the time of each event. The datetime is required for the icecube.astro.I3GetMoonDirection()

https://docs.icecube.aq/icetray/main/projects/astro/index.html

Copy link
Collaborator

@asogaard asogaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Peterandresen12,

Thanks for this PR! 🚀 While I think it is a little inefficient for us to add the event time to all pulses, rather than just once per event, I realise that this is the best/only way to do it currently, so I'm not going to push back on that. I have added on suggestion but otherwise I think this is fine to merge. :)

src/graphnet/data/extractors/i3featureextractor.py Outdated Show resolved Hide resolved
@Peterandresen12 Peterandresen12 merged commit 380891c into graphnet-team:main Oct 11, 2022
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

2 participants