Francis Duval
01/18/2024, 4:37 PMpipeline
function, vs specifying inputs/outputs inside the node
function? It seems redundant, because these 2 codes seem to yield the same thing:
def create_pipeline(**kwargs) -> Pipeline:
pipe1 = pipeline(
pipe=[
node(
func=mafonc1,
inputs='params:nombre',
outputs='result1'
),
node(
func=mafonc2,
inputs='result1',
outputs='result2'
)
],
namespace='ns1',
inputs='params:nombre',
outputs='result2'
)
return pipe1
def create_pipeline(**kwargs) -> Pipeline:
pipe1 = pipeline(
pipe=[
node(
func=mafonc1,
inputs='params:nombre',
outputs='result1'
),
node(
func=mafonc2,
inputs='result1',
outputs='result2'
)
],
namespace='ns1'
)
return pipe1
Nok Lam Chan
01/18/2024, 4:55 PMinputs
and outputs
, the one for pipeline
is to optionally escape the namespace.Nok Lam Chan
01/18/2024, 4:56 PMnamespace
argument, all inputs and outputs will be read as <http://namespace.xxx|namespace.xxx>
instead of x
, in some case you do want it to read the non-namespace version, and you need to provide the name of that in the argumentsNok Lam Chan
01/18/2024, 4:57 PMNok Lam Chan
01/18/2024, 4:58 PMkedro ipython
then just print the pipelines
object outFrancis Duval
01/18/2024, 6:11 PMpipeline
are optional, whereas inputs/outputs for node
are mandatoryNok Lam Chan
01/18/2024, 6:12 PMpipeline
if you need to escape from the namespaceNok Lam Chan
01/18/2024, 6:14 PMFrancis Duval
01/18/2024, 6:17 PMinputs: A name or collection of input names to be exposed as connection points
to other pipelines upstream. This is optional; if not provided, the
pipeline inputs are automatically inferred from the pipeline structure.
When str or set[str] is provided, the listed input names will stay
the same as they are named in the provided pipeline.
When dict[str, str] is provided, current input names will be
mapped to new names.
Must only refer to the pipeline's free inputs.