Skip to content

Move shutter logic to plan level for analyser type scans - #350

Merged
oliwenmandiamond merged 20 commits into
mainfrom
Move_shutter_logic_to_plan_level
Aug 14, 2026
Merged

Move shutter logic to plan level for analyser type scans#350
oliwenmandiamond merged 20 commits into
mainfrom
Move_shutter_logic_to_plan_level

Conversation

@oliwenmandiamond

@oliwenmandiamond oliwenmandiamond commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Fixes #349

Changes:

  • Added plan level shutter for electronAnalyser scans.

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 user on a set of release notes

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9d95051) to head (cd1f472).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #350   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        30    -1     
  Lines          869       884   +15     
=========================================
+ Hits           869       884   +15     

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

@oliwenmandiamond
oliwenmandiamond marked this pull request as ready for review July 31, 2026 14:32

@Relm-Arrowny Relm-Arrowny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Two very small check before merge otherwise I just have some nits.

Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py
Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py
Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py Outdated
Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py
Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py
Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scans.py Outdated
Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scan.py
Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scan.py
Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scan.py
Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scan.py

@Relm-Arrowny Relm-Arrowny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just the nits.

Comment thread src/sm_bluesky/electron_analyser/plans/analyser_scan.py
Comment thread src/sm_bluesky/electron_analyser/plan_stubs/analyser_per_step.py
step: Mapping[Movable, Any],
pos_cache: dict[Movable, Any],
*args,
if analyser in detectors:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is fine, if this is what we want, I think bluesky can double stage and double read probably will do no harm, this will break the script if user make a mistake.

@oliwenmandiamond

Copy link
Copy Markdown
Collaborator Author

Blocked by DiamondLightSource/dodal#2151

@oliwenmandiamond
oliwenmandiamond merged commit 66b4b90 into main Aug 14, 2026
11 checks passed
@oliwenmandiamond
oliwenmandiamond deleted the Move_shutter_logic_to_plan_level branch August 14, 2026 16:13
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.

Change analyserscan plan to control shutter timing

2 participants