-
Notifications
You must be signed in to change notification settings - Fork 38
Add a class to manage ramble reserved keywords #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a class to manage ramble reserved keywords #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice PR. Few in the weeds questions/suggestions but I really like it overall. Validator here we come!
|
@douglasjacobsen can you fix up the conflict if you chose to implement some of my suggested changes too, please? |
4235d07 to
bcfd1a1
Compare
|
OK, Conflict is fixed now. |
This commit adds a new class (keywords) to house known ramble variable names. Logic is added using this to perform validation on different sets of variable definitions to ensure they are properly defined. Tests are also added to make sure the proper error messages are passed when varible names are incorrectly used.
This commit changes previously defined *_key references within other classes (expander and experiment_set) to use a unified keywords class to get the string names instead.
bcfd1a1 to
45f4279
Compare
This commit updates the expansion_str usage in the experiment_set module to be consistent, to address reviewer comments.
faea260 to
771b44c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the improvements
This merge introduces a new class to encapsulate all of the ramble known keywords, and their types.
Tests are added to make sure incorrectly defined keywords throw reasonable errors.
Additionally, past references to the
*_keytype keyword definitions are updated to use this class now.