Skip to content

i15-1: Fix xtal device#2089

Merged
jacob720 merged 8 commits into
mainfrom
fix_xtal
Jun 12, 2026
Merged

i15-1: Fix xtal device#2089
jacob720 merged 8 commits into
mainfrom
fix_xtal

Conversation

@jacob720

Copy link
Copy Markdown
Contributor

The LaueMonochrometer was had all of its signals as hinted signals, meaning an error was thrown when trying to read it as which signal to read could not be determined. This fixes it by making energy_kev the only hinted signal.

Also, removes the force_parser option from the config server request, as the required PR has been merged + released.

Instructions to reviewer on how to test:

  1. Check tests pass

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

@jacob720 jacob720 requested a review from a team as a code owner June 11, 2026 16:22
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.14%. Comparing base (7916b43) to head (8197f38).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2089      +/-   ##
==========================================
- Coverage   99.14%   99.14%   -0.01%     
==========================================
  Files         344      344              
  Lines       13388    13387       -1     
==========================================
- Hits        13274    13273       -1     
  Misses        114      114              

☔ View full report in Codecov by Harness.
📢 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.

@DominicOram DominicOram left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great, thanks. Could you add a unit test that would have caught this?

@jacob720 jacob720 requested a review from DominicOram June 12, 2026 12:23

@DominicOram DominicOram left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One nit, take it or leave it. Thanks!

laue_monochrometer: LaueMonochrometer,
):
result = await laue_monochrometer.read()
assert list(result.keys()) == ["monocrometer-energy_kev"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: Might be better to use assert_reading here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good spot thanks, in fact I can delete this test and just use full_match=True on the test that already exists which fails if there are other signals in the reading.

@jacob720 jacob720 enabled auto-merge (squash) June 12, 2026 12:38
@jacob720 jacob720 merged commit aabd043 into main Jun 12, 2026
10 checks passed
@jacob720 jacob720 deleted the fix_xtal branch June 12, 2026 12:43
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