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

image to events function added #11

Merged
merged 4 commits into from
Jul 20, 2018
Merged

Conversation

mpmdean
Copy link
Contributor

@mpmdean mpmdean commented Jul 16, 2018

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.

@mpmdean mpmdean changed the title +ve y direction image to events function added Jul 16, 2018
@codecov-io
Copy link

codecov-io commented Jul 16, 2018

Codecov Report

Merging #11 into master will increase coverage by 1.87%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
rixs/tests/test_process2d.py 100% <100%> (ø) ⬆️
rixs/process2d.py 98.63% <100%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d804e96...de19807. Read the comment docs.

Copy link
Contributor

@awalter-bnl awalter-bnl left a 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.

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

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

convention is mispelt here

Copy link
Contributor Author

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.

@mpmdean
Copy link
Contributor Author

mpmdean commented Jul 19, 2018

@awalter-bnl Can we merge this?

@awalter-bnl awalter-bnl merged commit b8dbecd into scikit-beam:master Jul 20, 2018
@awalter-bnl
Copy link
Contributor

I have merged this as it is a small PR and has been waiting for 4 days.

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.

3 participants