Skip to content
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

include property (switch on/off files) #209

Open
nwieters opened this issue Jun 14, 2023 · 0 comments
Open

include property (switch on/off files) #209

nwieters opened this issue Jun 14, 2023 · 0 comments
Assignees

Comments

@nwieters
Copy link
Contributor

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
@nwieters nwieters self-assigned this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant