Skip to content

Conversation

@ZackAttack614
Copy link
Collaborator

Overview

This PR cleans up the HEDMInstrument pull_spots function significantly, making it easier to test and work with. This is a part of the effort to simplify the HEXRD library, enabling solid testing and confidence in correctness. On top of the simplifcation of the logic in the method, docstrings and typing were added to make future use of the function easier.

Affected Workflows

Changes should not affect any existing workflows, and are designed to be backwards-compatible.

Documentation Changes

No existing documentation needs to be changed to accommodate this PR.

@codecov
Copy link

codecov bot commented Dec 26, 2025

Codecov Report

❌ Patch coverage is 65.03497% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.96%. Comparing base (5ab82ac) to head (2f85226).
⚠️ Report is 20 commits behind head on master.

Files with missing lines Patch % Lines
hexrd/core/instrument/hedm_instrument.py 65.03% 50 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #868      +/-   ##
==========================================
+ Coverage   68.82%   68.96%   +0.14%     
==========================================
  Files         144      145       +1     
  Lines       22090    22264     +174     
==========================================
+ Hits        15203    15355     +152     
- Misses       6887     6909      +22     

☔ 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.

Copy link
Collaborator

@donald-e-boyce donald-e-boyce left a comment

Choose a reason for hiding this comment

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

This looks good.

@ZackAttack614
Copy link
Collaborator Author

Thank you @donald-e-boyce ! I'll merge once we get buy-in from @psavery who plans to test this out with the GUI.

@donald-e-boyce donald-e-boyce merged commit 06e9378 into master Jan 2, 2026
10 checks passed
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