Skip to content

add get validation#24

Merged
roussel-ryan merged 4 commits intoslaclab:mainfrom
roussel-ryan:get_validation
Apr 1, 2026
Merged

add get validation#24
roussel-ryan merged 4 commits intoslaclab:mainfrom
roussel-ryan:get_validation

Conversation

@roussel-ryan
Copy link
Copy Markdown
Collaborator

@roussel-ryan roussel-ryan commented Mar 11, 2026

This pull request adds validation to the outputs of the get method in the lume/model.py file. After retrieving the requested variables, the code now checks that each output value is valid according to its corresponding variable definition.

Validation improvements:

  • Added a loop in the get method to validate each output value using its corresponding variable's validate_value method after retrieving the outputs. This ensures that all returned values conform to the expected constraints.

@roussel-ryan roussel-ryan requested a review from pluflou April 1, 2026 17:56
Copy link
Copy Markdown
Collaborator

@electronsandstuff electronsandstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, minor note

Comment thread lume/model.py Outdated
Co-authored-by: Christopher M. Pierce <chris@chris-pierce.com>
@roussel-ryan roussel-ryan merged commit 34b0920 into slaclab:main Apr 1, 2026
7 checks passed
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.

3 participants