Skip to content

Conversation

@rerpha
Copy link
Contributor

@rerpha rerpha commented Jun 5, 2025

Description of work

This adds an exception for when trying to redefine a reflectometry parameter if the instrument is not in manager mode.

As our plans/plan stubs don't do any redefining in this library other than redefine_refl_param() which will feed-through the exception I think this is all we need to do - IMO it should actually halt a plan and therefore the exception doesn't need to be caught on the top-level plan. This should mean it's a bit more readable to the user that their redefine has failed.

Ticket

Closes #146 and probably #189

Labels

Add appropriate label(s) to this PR

  • 'bluesky-Semver-Major' - Breaking Change
  • 'bluesky-Semver-Minor' - New feature
  • 'bluesky-bug' - Bug fix
  • 'bluesky-documentation' - Document Changes
  • 'bluesky-ignore-for-release' - Do not show in the release notes

Labels can be found of the right-hand sidebar of this PR once created

Acceptance criteria

If not in manager mode, a nicer error is displayed. If in manager mode, redefines still work.

Documentation

Highlight and provide a link to any additions or changes to the documentation, if applicable. The aim is provide information to help the reviewer

@rerpha rerpha added the bluesky-Semver-Minor New functionality / back-compatible changes label Jun 5, 2025
@rerpha rerpha merged commit c1a2cee into main Jun 5, 2025
13 checks passed
@rerpha rerpha deleted the refl_param_redefine_manager_mode branch June 5, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bluesky-Semver-Minor New functionality / back-compatible changes size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

reflectometry redefine: requires manager mode

3 participants