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
Extend join operation for events to arbitrary array attributes #742
Conversation
Codecov Report
@@ Coverage Diff @@
## main #742 +/- ##
==========================================
+ Coverage 97.12% 97.13% +0.01%
==========================================
Files 42 42
Lines 7884 7919 +35
==========================================
+ Hits 7657 7692 +35
Misses 227 227
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 @matteobachetti,
thank you very much for your contribution!
I listed a few minor comments for your pull request, after you address those, we should be able to approve it.
Thanks!
@mgullik thanks for the review. I think I addressed all your comments but one, where I'm open to changing the behavior but would prefer leaving it as is. |
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 @matteobachetti,
thanks for making the requested changes.
I think we are ready to approve it. I just want to add a bit more of explanation of the Results doc of this routine. Something like this
I think it could
Returns
-------
ev_new
: :class:EventList
object
The resulting :class:EventList
object.
If the joining EventList (other) is empty a Warning message will appear, and the new EventList will be the same as the starting one.
If the joining EventList (other) has the attribute "time" but the other attributes are empty, such as energy and pi, NaNs will be added to the corresponding times of the other EventList.
If the starting EventList is empty joining acts as filling the events with the attributes of the other EventList.
Waht do you think? Do we need more?
@mgullik I made a slightly different change to the docstring, still along the lines you suggest. Instead of in the return values, I wrote these clarifications in the main text basically. Hope this works |
Hi @matteobachetti, |
No description provided.