Skip to content

Support of lists in inputs #452

@axlbonnet

Description

@axlbonnet

The idea is to use the boutiques list features in inputs.
The issue is that it is complicated to handle in moteur : if an input has 2 values, how to distinguish the case where moteur needs to parallelize in 2 jobs and the case where moteur must create only 1 job with an array as input.

The proposition is so to handle the list as a string until the output of moteur, then to format it a list before the boutiques invocation

  • in the portal launch form (or API), the format will be "[value-1,value-2,...,value-n]"
  • as the portal launch form is based on boutiques, it will be able to verify the format and content (list size, item type)
  • it won't be possible for files first, only for basic types (boolean, string, number)
  • the string will go on in moteur and gasw until the wrapper script
  • in the wrapper script, when the boutiques invocation json is created, the wrapper will transform the brackted/comma-separated string into a json array (that boutiques will handle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions