Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
System to allow constants to be altered based on configuration #258
System to allow constants to be altered based on configuration #258
Changes from 20 commits
ea84407
7201272
5b43b14
6ad7726
6191cd5
c5e7af0
b81ff15
033ac10
003ff17
b10396d
6daf2f1
6a9922f
34f6104
86509c5
7af00a4
6d877c6
a8ef343
3622d0f
38bc95f
65e1170
cc99938
1713509
443ac42
93f9af7
dc61043
04541b9
ab70c90
bad0c37
90062da
a5831fc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think this file mixes user facing information and model creation information. The user-facing stuff is fairly short, but this is far more detailed than is needed here. I suspect we may need to break up the creating a model section into multiple pages, but we can park that.
If the structure of the constants classes etc moves into new model creation, we can then be more specific about details: add a type, because otherwise
dataclass
treats it as a class attribute, rather than a instance attribute.We also should think about what other user facing help we want here. I can imagine that we might add an
export_model_constants
class method to the BaseModel which just spits out a TOML document from any model of the constants. I don't know if that is something we need to put in place for @dalonsoa?That could then be exposed via a command line endpoint:
vr export_model_constants plants plant_constants.toml
.What users need to know in this document is how constants are used, how to find what they can change and how to change it in TOML. I'm also wondering if calling it
constants.md
might be better 😄