-
Notifications
You must be signed in to change notification settings - Fork 3
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
image to events function added #11
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11 +/- ##
==========================================
+ Coverage 59.13% 61.01% +1.87%
==========================================
Files 4 4
Lines 394 413 +19
==========================================
+ Hits 233 252 +19
Misses 161 161
Continue to review full report at Codecov.
|
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.
This addition looks fine to me, save for the spelling mistake I found. Once that is fixed I am happy with it.
rixs/process2d.py
Outdated
@@ -217,6 +219,7 @@ def photon_events_to_image(photon_events, bins=None): | |||
1D vector describing column position | |||
y_centers : array | |||
1D vector describing row position | |||
+ve y is up convetion is applied. |
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.
convention is mispelt 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.
This is corrected in the subsequent commit.
@awalter-bnl Can we merge this? |
I have merged this as it is a small PR and has been waiting for 4 days. |
A function converting 2D data arrays (images) to three column events function was added.
y values are now returned high to low to impose the convention that +ve y is run consistent with widely used RIXS conventions and with matplotlib scatter and pcolor functions.