Skip to content

Conversation

@saransh13
Copy link
Member

@saransh13 saransh13 commented Oct 8, 2025

Minor tweaks to the intensity extraction function. The changes speeds up the extraction process and also makes it quite stable. Tested with some NIF and simulated data example.

This is rebased to texture-fixes, so should be merged after #843

@saransh13 saransh13 force-pushed the intensity-extraction-fixes branch from e1b2d8d to 0761298 Compare October 9, 2025 00:59
@psavery psavery force-pushed the intensity-extraction-fixes branch from f9ad16d to b33d0e2 Compare October 23, 2025 12:45
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 73.06397% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.01%. Comparing base (785431e) to head (0dd5594).
⚠️ Report is 22 commits behind head on master.

Files with missing lines Patch % Lines
hexrd/powder/wppf/texture.py 67.01% 64 Missing ⚠️
hexrd/powder/wppf/WPPF.py 84.46% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #844      +/-   ##
==========================================
+ Coverage   55.96%   56.01%   +0.04%     
==========================================
  Files         143      143              
  Lines       21963    22010      +47     
==========================================
+ Hits        12291    12328      +37     
- Misses       9672     9682      +10     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@psavery psavery force-pushed the intensity-extraction-fixes branch from 2ec9dd9 to 57d9f3f Compare October 23, 2025 16:27
This is mainly for the simulated polar view, because the relative
tolerances close to 0 were off by quite a lot.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery force-pushed the intensity-extraction-fixes branch from 57d9f3f to 107b232 Compare October 23, 2025 16:41
Signed-off-by: Patrick Avery <[email protected]>
Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery force-pushed the intensity-extraction-fixes branch from d6b07ad to 70f300f Compare October 25, 2025 08:17
Windows is producing slightly different results for the simulated
polar view, but it is small enough for a relative tolerance of 1e-2
to work fine.

The refined texture parameters come out very slightly different.
There are probably just some small nuance differences between
Windows and the other operating systems.

Signed-off-by: Patrick Avery <[email protected]>
@psavery psavery force-pushed the intensity-extraction-fixes branch from 70f300f to 0dd5594 Compare October 25, 2025 08:31
@psavery psavery merged commit adae415 into master Oct 25, 2025
6 of 7 checks passed
@psavery psavery deleted the intensity-extraction-fixes branch October 25, 2025 08:42
@psavery psavery mentioned this pull request Oct 25, 2025
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