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

Fix pinhole offset corrections #727

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Fix pinhole offset corrections #727

merged 3 commits into from
Nov 13, 2024

Conversation

saransh13
Copy link
Member

fix pinhole corrections for edge cases. All variables for PXRDIP and TARDIS should be same now. No special treatment of PXRDIP data needed.

…TARDIS should be same now. No special treatment of PXRDIP data needed.
@saransh13 saransh13 requested a review from psavery November 7, 2024 18:11
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 39.10%. Comparing base (8c669ab) to head (d96f41f).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
hexrd/xrdutil/phutil.py 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #727      +/-   ##
==========================================
- Coverage   39.11%   39.10%   -0.01%     
==========================================
  Files         135      135              
  Lines       22168    22171       +3     
==========================================
  Hits         8670     8670              
- Misses      13498    13501       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@saransh13
Copy link
Member Author

@psavery This should solve our problem of having different eta angles for PXRDIP and TARDIS in the rygg pinhole correction functions. Can you please review?

hexrd/xrdutil/phutil.py Outdated Show resolved Hide resolved
hexrd/xrdutil/phutil.py Show resolved Hide resolved
hexrd/xrdutil/phutil.py Show resolved Hide resolved
use `np.isclose` instead of `==`

Co-authored-by: Patrick Avery <patrick.avery@kitware.com>
hexrd/xrdutil/phutil.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

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

I had one last change requested, but I'll go ahead and approve too.

Co-authored-by: Patrick Avery <patrick.avery@kitware.com>
@saransh13 saransh13 merged commit 6213ab6 into master Nov 13, 2024
6 of 7 checks passed
@psavery psavery deleted the pinhole-correction-fix branch December 2, 2024 21:27
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.

2 participants