Up: Component summary Component

PipelineInput

Read a previous Anduril pipeline execution folder as an input.

This component provides convenience when pipelines are split up to separate tasks. With it you can access a component instance outside the current pipeline namespace.

With conventional INPUT:

    val data_from_earlier=INPUT(path="execution_folder"+"instance_name"+"file_name")
    
With PipelineInput:
    val instance_from_earlier=PipelineInput(exec="execution_folder",instance="instance_name")
    val data_from_first_port=instance_from_earlier.n(1)
    val data_from_named_port=instance_from_earlier.name("csv")
    

Version 1.1
Bundle builtin
Categories Internal
Specialties generic
Authors Ville Rantanen (ville.rantanen@helsinki.fi)
Issue tracker View/Report issues
Source files component.xml PipelineInput.py
Usage Example with default values

Type parameters (generics)

Outputs

Name Type Description
name Array<T> (generic) A generic output array of ports. The keys are the output port names of the selected instance.
n Array<T> (generic) A generic output array of ports. The keys are the number of the port (natural sorting). For the single output component, you can always refer: "instance.n(1)"

Parameters

Name Type Default Description
exec string (no default) Path to execution folder.
expandArrays boolean false Expand array output ports.
instance string (no default) Name of the component instance. Does not work with function instance names, has to be an existing instance folder name. Use value "output" to create an array of files/folders in the execution output folder. You may also use "@[regex]" to include all instances that match the regex. If grouping used in the regular expression, the first group is used for naming instances - NOTE: group must produce unique names. Use "@.*" to export all instances.

Test cases

Test case Parameters OUT
name
OUT
n
case1_component properties (missing) (missing)

exec=resource,
instance=component

case2_output properties (missing) (missing)

exec=resource,
instance=output

case3_full properties (missing) (missing)

exec=resource,
instance=@.*

case4_component_array properties (missing) (missing)

exec=resource,
instance=component,
expandArrays=true


Generated 2018-12-16 07:42:08 by Anduril 2.0.0