Skip to content

Commit b2495fd

Browse files
committed
choice
1 parent 4fc8df5 commit b2495fd

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

doc/plan_stubs/redefining.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ occurs, but the reported position changes to the given position.
66
## {py:obj}`~ibex_bluesky_core.plan_stubs.redefine_motor`
77

88
The {py:obj}`ibex_bluesky_core.plan_stubs.redefine_motor` plan stub can be used to redefine the current
9-
position of a motor (for example a {py:obj}`ibex_bluesky_core.devices.block.BlockMot`) to a new value.
9+
position of a motor (for example a {py:obj}`~ibex_bluesky_core.devices.block.BlockMot`) to a new value.
1010

1111
The motor does not physically move, but after this plan stub executes, the current position will be defined
1212
as `value`.
@@ -22,6 +22,7 @@ def my_plan():
2222
optimimum_value: float = ...
2323

2424
# Physically move the motor to it's optimum position
25+
# (bps.mv automatically waits for movements to complete)
2526
yield from bps.mv(motor, optimimum_value)
2627

2728
# Redefine the current position as zero
@@ -37,7 +38,11 @@ This behaviour can be controlled with the `sleep` keyword argument to
3738
## {py:obj}`~ibex_bluesky_core.plan_stubs.redefine_refl_parameter`
3839

3940
The {py:obj}`ibex_bluesky_core.plan_stubs.redefine_refl_parameter` plan stub can be used to redefine the current
40-
position of a {py:obj}`~ibex_bluesky_core.devices.reflectometry.ReflParameter` to a new value. Note that some reflectometry parameters (e.g. `Theta`) cannot be redefined, so these must be constructed with `has_redefine=False`. {py:obj}`ibex_bluesky_core.plan_stubs.redefine_refl_parameter` will raise an error if a user tries to redefine a parameter that was created with `has_redefine=False`.
41+
position of a {py:obj}`~ibex_bluesky_core.devices.reflectometry.ReflParameter` to a new value.
42+
43+
:::{note}
44+
Some reflectometry parameters (e.g. Theta) cannot be redefined, so these must be constructed with `has_redefine=False`. {py:obj}`~ibex_bluesky_core.plan_stubs.redefine_refl_parameter` will raise an error if a user tries to redefine a {py:obj}`~ibex_bluesky_core.devices.reflectometry.ReflParameter` that was created with `has_redefine=False`.
45+
:::
4146

4247
This plan stub has an identical API to that of the {py:obj}`~ibex_bluesky_core.plan_stubs.redefine_motor` plan stub
4348
described above, but operates on a reflectometry parameter rather than a motor.

doc/plan_stubs/user_input.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# User input helpers
22

3-
## `prompt_user_for_choice`
3+
## {py:obj}`~ibex_bluesky_core.plan_stubs.prompt_user_for_choice`
44

55
The {py:obj}`ibex_bluesky_core.plan_stubs.prompt_user_for_choice` plan stub can be used to ask
6-
the user for a constrained set of input choices. This will continue asking if a choice is not valid.
6+
the user for one of a constrained set of input choices. This will continue asking if a choice is not valid.
77

88
For example:
99

0 commit comments

Comments
 (0)