You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been making some changes to the components' lists defined in run_C-ESM-EP.py
It coud be nice to have the definitions stored in .ini or .conf files outside of run_C-ESM-EP.py. This way you don't have to alter the source of run_C-ESM-EP.py if all you need to do is define or re-order components
The config files could go to a Config directory, e.g. Config/components_def.conf and Config/components_user.conf (to separate the default and user conf). There are probably some other places where this could be used in C-ESM-EP, in order to reduce the changes a user has to make to .py files (e.g. define the email variable in a config file)
I think this can be done quite easily with configparser. Maybe I'll try to do it if I have time, and this issue can be used as a reminder. I have also covered configparser in pages 55-59 of my old Plus loin avec Python tutorial
The text was updated successfully, but these errors were encountered:
I have been making some changes to the components' lists defined in
run_C-ESM-EP.py
It coud be nice to have the definitions stored in
.ini
or.conf
files outside ofrun_C-ESM-EP.py
. This way you don't have to alter the source ofrun_C-ESM-EP.py
if all you need to do is define or re-order componentsThe config files could go to a
Config
directory, e.g.Config/components_def.conf
andConfig/components_user.conf
(to separate the default and user conf). There are probably some other places where this could be used in C-ESM-EP, in order to reduce the changes a user has to make to .py files (e.g. define theemail
variable in a config file)I think this can be done quite easily with configparser. Maybe I'll try to do it if I have time, and this issue can be used as a reminder. I have also covered configparser in pages 55-59 of my old Plus loin avec Python tutorial
The text was updated successfully, but these errors were encountered: