mintproject / mic

Model Insertion Checker
https://mic-cli.readthedocs.io/en/latest/
5 stars 3 forks source link

[mic v1] - step2 Exposing a file inside a directory #148

Closed mosoriob closed 4 years ago

mosoriob commented 4 years ago

Is your feature request related to a problem? Please describe.

If the input is a directory, we are going to compress the directory into a zip file to create one input. However, a user can want to expose a file in the directory.

For example, the topoflow model configuration has two inputs

We have one an input is a zip file:

aggregated-inputs | Topoflow aggregated inputs for the Awash region

image

The second input is the precipitation rate and we must copy the precipitation rates inside the previous directory.

Describe the solution you'd like

WARNING: If the user compress a directory, the future inputs must have the same name. A message in the description can be a good place to add a warning

inputs:
         aggregated-inputs:
                  path: region/
                  description: "This is a zip file, the zip file must have a directory with the name `region`"
         precipation:
                 path: region/climate.rts

Then,

The run wrapper must be:

cp climate.rts region
#run topoflow

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.90. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.