fix: validate data collection parameters on assignment
CI / lint (pull_request) Successful in 22s
CI / test (3.12) (pull_request) Successful in 26s
CI / test (3.11) (pull_request) Successful in 27s
CI / test (3.13) (pull_request) Successful in 23s
CI / lint (push) Canceled after 10s
CI / test (3.11) (push) Canceled after 0s
CI / test (3.12) (push) Canceled after 0s
CI / test (3.13) (push) Canceled after 0s
Build and Publish / release (push) Successful in 9s

This commit was merged in pull request #32.
This commit is contained in:
2026-09-08 09:00:47 +02:00
parent d8d89f4ad8
commit c13bb5d366
+1 -1
View File
@@ -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