fix: validate data collection parameters on assignment #32
@@ -53,7 +53,7 @@ class PuckLoadedInfo(BaseModel):
|
||||
|
||||
|
||||
class DataCollectionParameters(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True, populate_by_name=True)
|
||||
model_config = ConfigDict(from_attributes=True, populate_by_name=True, validate_assignment=True)
|
||||
|
||||
directory: str | None = None
|
||||
oscillation: float | None = None # Only accept positive float
|
||||
|
||||
Reference in New Issue
Block a user