- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28
fix: properly handle provision of optional configuration files #627
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
fix: properly handle provision of optional configuration files #627
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.
Given this is a fairly significant departure from how optional config files are handled it would be good to have this documented.
We already have an open issue for the lack of documentation of drivers
How is your RST @phellipecouto? Would you be willing to be the first to add driver docs?
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. We can deal with docs later ...
| 
 OK good to hear this! I had a slight impression I could be going on a different direction as I could not find a working example of this on other drivers. Can you point me to the right direction and I will assess if this would still work for the ROMS case? | 
| 
 I think what you've done is fine. Off the top of my head I can't think of any other drivers that have dynamic model config files, so I think it's fine. I'll start a separate PR to add driver docs for more of the models, and get your input for ROMS then. | 
Enabled
optional_config_filesprovision throughconfig.yaml. Prior to this change, ROMSvarinfofile was being considered a mandatory model config file and mistakenly hard coded intoconfig_fileslist, leading to model initialisation failure when file name differed fromvarinfo_seacofs.yaml.