Open o-smirnov opened 6 months ago
The question is, should it be an explicit flag, or some magic syntax in the aliases specification? E.g.:
outputs:
loop-list-output:
aliases: [step.output]
collect_list_output: true
vs
outputs:
loop-list-output:
aliases: [step.output@]
The latter is somewhat more esoteric, but has the advantage of also being compatible with the standalone aliases section.
Upon some thinking -- there is little point in having a for-loop output that corresponds to the output of one particular iteration (and this esoteric use case could anyway better be accomplished with formula syntax), so perhaps any step output alias defined in a for-loop should implicitly become a List[dtype]
recipe output.
Quite possibly this can be done via the current aliasing mechanism. As things stand, the current aliased outputs will return the output value from the last iteration. But a flag could be provided in the schema to change that.