Skip to content

Add array or regex to data #23

@mmaelicke

Description

@mmaelicke

In the data section, there might be a case, in which not only a single file is associated to an input dataset, but a list of files.
In these cases we can either:

  1. allow an array similar to the parameters
  2. allow regular expressions as an attribute inside the data section

In both cases, the specs cannot handle cases in which the number of datasets is arbitrary. In these cases, the developer has to fall back to specify a directory in the parameters instead of data section.

An example for the multi-files case: A tool takes a netCDF, which is chunked into many files

An example for the multi-dataset (multi-files): An aggregator or viewer tool takes a folder as input, that contains data folders. Similar to what the data loader creates.
I would argue, that this is an edge case and usually tools can specify the data they need.

I am in preference of setting ie. a multi=True flag on a data spec, which effectively allows wildcards in the path

@Ash-Manoj @AlexDo1 do you have any comments on this? I am not entirely sure how to do that and comments are welcome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions