diff --git a/src/useq/_mda_event.py b/src/useq/_mda_event.py index eea198e..6e2f8a2 100644 --- a/src/useq/_mda_event.py +++ b/src/useq/_mda_event.py @@ -73,7 +73,7 @@ class SLMImage(UseqModel): data: Any = Field(..., repr=False) device: Optional[str] = None - exposure: Optional[float] = None + exposure: Optional[float] = Field(default=None, gt=0.0) @model_validator(mode="before") def _cast_data(cls, v: Any) -> Any: