-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add update
method to update configs from other models
#16
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.
Nice work on this. Having proper update functionality for the data models will be super helpful for writing good, clean code.
I just a few comments around the implementation. In it's current form, we'll encounter some semantic issues, especially with the Node
, FrontendNode
, Partitions
, etc data models. Let me know if you have any questions; our discussion here will help make slurmutils more robust!
override
method to combine configsupdate
method to update configs from other models
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.
This great! Nice changes 🤩
Just two comments and then I am good to merge this PR. Note that we'll also need to bump the version of slurmutils
in pyproject.toml.
Rename override to update so that the `update` method is properly overrided in inheriting data models.
Use current `slurmutils` terminology in docstring
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.
Nice work on this @jedel1043 🚀
Great to see slurmutils
maturing like it is!
This makes it really easy to change a set of configs without having to set the properties one by one.