-
Notifications
You must be signed in to change notification settings - Fork 38
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 a site
option to the get_config_user
command
#1706
Comments
I really like this idea! In my opinion option 2 is better since it avoids duplication (we would need to change many files if we decide to modify keys in the config-user file!). Would it also be an idea to have one "generic" config-user file that includes all keys and a generic entry for |
I too like this and like option numero deux better too, good call, Remi! 🍺 |
I definitely like the sentiment, however, I think the real real solution would be different. We should have a kind of "hierarchical" configuration system as is common in most software packages, where we have an order of places where configuration can be (typically something like I am not sure to which degree the "experimental" config interface that @Peter9192 or @stefsmeets started some time ago already moves in that direction. We might also lean on/be inspired by the way Dask does configuration, or other packages. |
See #795 and the issues linked in it for some previous ideas on this topic. A related idea (maybe the next step), was to find out from the hostname what cluster someone is on and automatically use the right configuration. |
From Carsten Ehbrecht who reviewed our IS-ENES3 deliverable D9.5: * The configuration of the site specific details (DKRZ, Jasmin, …) was confusing. We edited the yaml file … got syntax errors due to wrong spaces … the comments and disabled configuration lines where not clearly recognised.
Also, what a non-bd0854 levante user should uncomment, remains unclear from the description. E.g.
* Suggestion: use a cookiecutter template to generate a site/user specific ESMValTool configuration? https://www.cookiecutter.io/ |
Is your feature request related to a problem? Please describe.
Often when a new user tries to configure the Tool on a supported machine with
esmvaltool config get_config_user
, they get confused with uncommenting the right lines to set the correctrootpath
anddrs
. Would it be a good idea to add an option, say--site
, to the command so that the correctrootpath
anddrs
are automatically set for the chosen site. For exampleesmvaltool config get_config_user --site DKRZ
would return a config file with uncommentedrootpath
anddrs
for DKRZ. If no option is passed, the default is to copy the entireconfig-user.yml
as before.Would you be able to help out?
Would you have the time and skills to implement the solution yourself? Yes, I can try to do that. My question is:
rootpath
anddrs
for one site? So when a user doesesmvaltool config get_config_user --site DKRZ
, this would copy~/ESMValCore/esmvalcore/config-user-DKRZ.yml
to~/.esmvaltool/config-user.yml
?config-user.yml
that is copied into~/.esmvaltool/config-user.yml
with the DKRZrootpath
anddrs
if the command used isesmvaltool config get_config_user --site DKRZ
?The text was updated successfully, but these errors were encountered: