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
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:
@@ -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