Skip to content

add logic for single string input in get()#29

Merged
roussel-ryan merged 1 commit intoslaclab:mainfrom
roussel-ryan:convenience-logic
Apr 1, 2026
Merged

add logic for single string input in get()#29
roussel-ryan merged 1 commit intoslaclab:mainfrom
roussel-ryan:convenience-logic

Conversation

@roussel-ryan
Copy link
Copy Markdown
Collaborator

This pull request enhances the flexibility of the LUMEModel interface by allowing the get method to accept either a list of variable names or a single variable name as a string. It also updates the corresponding test suite to ensure this new functionality works as intended.

Improvements to the LUMEModel interface:

  • Updated the get method in LUMEModel to accept either a list of variable names or a single variable name as a string, and to return either a dictionary of values or a single value accordingly.

Testing enhancements:

  • Added a new test to verify that the get method correctly handles a single variable name provided as a string.

@roussel-ryan roussel-ryan merged commit e45f39e 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.

2 participants