esm-tools / esm_runscripts

GNU General Public License v2.0
3 stars 5 forks source link

include property (switch on/off files) #209

Open nwieters opened 1 year ago

nwieters commented 1 year ago

From the files dictionary, take only the files that are listed in simulation_files, a dictionary equivalent to the old <type>_files

the old way

greenhouse_ssp:
    name: greenhouse
    path_in_pool: ...

choose_scenario:
     ssp:
         simulation_files: # Whatever file is not here, it's not used
               greenhouse: greenhouse_ssp

choose and add idea

greenhouse_ssp:
    name: greenhouse
    path_in_pool: ...

choose_scenario:
     ssp:
         add_files:
               ${greenhouse_ssp}

Include files idea

files:
    greenhouse_ssp:
        name: greenhouse
        path_in_pool: ...
        include: false

choose_scenario:
    ssp:
         include_files:
               greenhouse_ssp: true

Include files without include_files

files:
    greenhouse_ssp:
        name: greenhouse
        path_in_pool: ...
        include: false

choose_scenario:
    ssp:
         add_files:
               greenhouse_ssp:
                   include: true