Skip to content

Issue2132 work in progress - #2157

Draft
CoePaul wants to merge 2 commits into
mainfrom
issue2132
Draft

Issue2132 work in progress#2157
CoePaul wants to merge 2 commits into
mainfrom
issue2132

Conversation

@CoePaul

@CoePaul CoePaul commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Contributes to #2123

Instructions to reviewer on how to test:

  1. Do thing x
  2. Confirm thing y happens

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}

@CoePaul
CoePaul requested a review from a team as a code owner August 4, 2026 18:41
@CoePaul CoePaul self-assigned this Aug 4, 2026
@CoePaul
CoePaul marked this pull request as draft August 4, 2026 18:41
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.96491% with 268 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.36%. Comparing base (b4b38f1) to head (99caaeb).

Files with missing lines Patch % Lines
.../beamlines/i19/transmission/specification_types.py 0.00% 134 Missing ⚠️
.../dodal/devices/beamlines/i19/transmission/wedge.py 0.00% 29 Missing ⚠️
...devices/beamlines/i19/transmission/filter_wheel.py 0.00% 28 Missing ⚠️
...es/i19/transmission/specific_absorber_materials.py 0.00% 20 Missing ⚠️
...dal/devices/beamlines/i19/transmission/tx_types.py 0.00% 19 Missing ⚠️
...ces/beamlines/i19/transmission/tx_api_protocols.py 0.00% 17 Missing ⚠️
...amlines/i19/transmission/specific_filter_wheels.py 0.00% 10 Missing ⚠️
...ices/beamlines/i19/transmission/specific_wedges.py 0.00% 10 Missing ⚠️
src/dodal/common/general_maths/absorbers.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2157      +/-   ##
==========================================
- Coverage   99.18%   97.36%   -1.83%     
==========================================
  Files         360      368       +8     
  Lines       14296    14572     +276     
==========================================
+ Hits        14180    14188       +8     
- Misses        116      384     +268     

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

@CoePaul
CoePaul force-pushed the issue2132 branch 3 times, most recently from 0412b56 to 8f4ab0d Compare August 7, 2026 22:12
CoePaul added 2 commits August 7, 2026 23:14
* Internal naming conventions within the Attenuator motor positions class
  had been left in prior state before recent rename
  ( where the rename relfected a widened scope from purely demanding motor moves
    to also capture live positions of motors )

   The resulting obsolescene meant names of methods and internal variables
   did not reflect the wider usage scope - that is hereby fixed

* Also make internal merge of discrete indexed positions
  and continuous motor axis positions into a cached property
  saves the merge being recalculated - and makes its evaluation lazy

* Update tests to reflect renaming

* Improve tests with parametrized test cases

* Fix quirk in axis naming convention which used to (inadvertently)
   permit leading integer in name/tag of wheel or axial motor

* Tighten test cases to capture this and other oversights in
   original test suite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant