Skip to content

Argo drift time must be less than cycle time#345

Merged
j-atkins merged 3 commits into
mainfrom
argo-drift-cycle
May 28, 2026
Merged

Argo drift time must be less than cycle time#345
j-atkins merged 3 commits into
mainfrom
argo-drift-cycle

Conversation

@j-atkins
Copy link
Copy Markdown
Collaborator

@j-atkins j-atkins commented May 28, 2026

This PR adds a model validation step to the ArgoFloatConfig ensuring that the drift time is always less than the cycle time.

New test added which ensures errors are thrown when the invalid configuration (drift time > cycle time or drift time == cycle_time) is used.

Closes #157


It could be worth considering moving some of these validation checks to the Instrument classes themselves (rather than the Pydantic models), to make those more self-contained and portable for more Pythonic use of instruments... but I think that refactoring would follow in a future PR (i.e. #346)

@j-atkins j-atkins merged commit a1fd4cb into main May 28, 2026
11 checks passed
@j-atkins j-atkins deleted the argo-drift-cycle branch May 28, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Argo drift_time should be shorter than cycle_time

2 participants