Enable validation for all Things and pick correct branch
This commit updates the branch to use Thing._class_settings instead of FEATURE_FLAGS for a safer way to implement new features.
This commit is contained in:
parent
05f92b9b33
commit
622fa17634
11 changed files with 20 additions and 4 deletions
|
|
@ -62,6 +62,8 @@ class ScanWorkflow(Generic[SettingModelType], lt.Thing):
|
|||
scan planning, acquisition routine.
|
||||
"""
|
||||
|
||||
_class_settings = {"validate_properties_on_set": True}
|
||||
|
||||
display_name: str = lt.property(default="Base Workflow", readonly=True)
|
||||
ui_blurb: str = lt.property(
|
||||
default="If you see this message, something is wrong.", readonly=True
|
||||
|
|
@ -327,6 +329,8 @@ class SmartStackCompatibleSettings(Protocol):
|
|||
class SmartStackMixin:
|
||||
"""A mixin for scan workflows that use smart stacking."""
|
||||
|
||||
_class_settings = {"validate_properties_on_set": True}
|
||||
|
||||
stack_images_to_save: int = lt.setting(default=1, ge=1, le=9)
|
||||
"""The number of images to save in a stack.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue