-
Notifications
You must be signed in to change notification settings - Fork 22
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
Global siminfo #343
Global siminfo #343
Conversation
Does this PR invalidate issue #322 ? |
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.
Lots of things improved greatly in this PR e.g. definition of base config used for testing. Some minor comments but I generally disagree with Finn on the use of the ">>" operator in most places. I think it is much cleaner and easier to read while using the getter function adds a lot more unnecessary syntax. While ">>" requires 2 lines in lots of places, I don't think this is an issue as the getter line often becomes too long and splits over 2 lines anyway
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.
Just a few minor comments -- may not need any changes
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.
👍🏻
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.
Minor comments
06755fc
to
f1dbc47
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.
Only one question
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.
A few Minor points
This PR looks to replace the use of Config.hh and YAML-CPP with SimInfo.hh and a single header yaml library ryml. The SimInfo class acts as a central point for all model configuration values both defined manually and from a read-in yaml config file.
Improvements to adding new config options have been included through a new expectation struct that places requirements on a specific config option and a default value. Through this, default config files can be created and are especially useful in the test suite.
An aside, there seem to be a lot of line changes but ~33K of those are the new header-only ryml library