-
Notifications
You must be signed in to change notification settings - Fork 12
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 method of specifying streams via yaml #50
Conversation
@mgrover1, this new approach implies that if you want to use/add new streams, the user must redefine all the other streams + add their own streams to the |
@andersy005 that is correct - it overrides the list of default streams. This way, the user can make sure it isn't making assumptions it is not supposed to (helpful when working with CESM1 especially) |
Isn't this laborious? :) I'm imagining a case scenario in which the user just wants to add a missing stream to the list but we are asking them to redefine the existing ones too. Could we come up with a compromise? :) I'm asking because I think the majority of CESM runs are probably using the same stream configurations (I could be wrong) and the case scenario in which one needs to override the entire list is an exception. |
Good point... how would we allow the user to override a single stream then? What would be the alternative then? In order for one to change the stream + frequency settings, they would need to submit an issue here, or change it locally then reinstall the package (which can be challenging) |
This is an example of some notes I used to make sure the DPLE catalog was parsed together correctly:
|
Can you let the user pass in a subset of streams in a yaml file that you read in as I think that's exactly the functionality we want:
|
I am in favor of Mike's suggestion. It is reasonable to treat this operation as a dictionary update in which we give priority to the user provided values. |
@mnlevy1981 thanks for pointing that out - that sounds like a great way to move forward! |
@andersy005 would it be best to change https://github.com/NCAR/ecgtools/blob/main/ecgtools/builder.py#L140 to take in arguments regarding the file parser? Or is there a way to do this at the file parser level where one could "update" the file parser? |
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.
Thank you, Max! This looks great!
Addresses discussion #46 - main changes include
For each of the cesm parsers, the user can specify a yaml file following the format (example -
pop.h
)