Skip to content

Allow rinclude in collect_results to only select files which satisify all conditions #413

@cnrrobertson

Description

@cnrrobertson

Is your feature request related to a problem? Please describe.
Currently, in the collect_results function, the rinclude argument allows for specifying filename conditions (OR behavior) and rexclude allows for ignoring filename conditions (NOT behavior). I'm looking for AND behavior. I want the loaded files to satisfy ALL conditions in rinclude rather than satisfy any of them.

As an example of where this may be useful, I'm running simulations with both different time and spatial steps and I only want to select those that have a specific combination of the two.

Describe the solution you'd like
I'm not sure exactly the best way to implement this, but it would probably look like adding a kwarg to collect_results either to modify how it handles the rinclude list or to specify an alternative list to rinclude and rexclude.

Describe alternatives you've considered
Currently, the undesirable results can be removed in a postprocessing step using tools from DataFrames.jl but that becomes prohibitive if you have large data because you need to load all of the results and then remove the unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataRelated to data managementenhancementNew feature or requestrunning-listingFunctionality for running and listing simulation runs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions