magscope.utils#
Classes#
Enum for acquisition modes. |
|
Enum where members are also (and must be) ints |
|
Functions#
|
|
|
|
|
|
|
Decorator marking a method as callable from a MagScope script. |
|
Return |
Module Contents#
- class magscope.utils.AcquisitionMode[source]#
Bases:
enum.StrEnumEnum for acquisition modes.
The UI redesign changed the enum values to match the new display labels. Existing scripts that compare or pass raw strings should update old values such as
"video (full)"to the new values such as"Video (Full)". The old member names remain as aliases so scripts usingAcquisitionMode.FULL_VIDEOcontinue to resolve to the new canonical mode.
- class magscope.utils.PoolVideoFlag[source]#
Bases:
enum.IntEnumEnum where members are also (and must be) ints
- magscope.utils.register_script_command(command_type: type[magscope.ipc_commands.Command])[source]#
Decorator marking a method as callable from a MagScope script.
Each script command must be paired with the IPC
Commandthat will be dispatched when the script executes that step. The decorator mirrorsmagscope.ipc_commands.command_handler()by attaching metadata to the wrapped function without constraining how it is collected.