viveca
08/15/2023, 12:55 PMparameters
references will not be namespaced, but params:
references will.
In my mental model, it should not matter if I specify the whole parameter dictionary as “parameters” or if I give an individual element of it “params:elem”. This seems like a detail of how I implemented my node function. But indeed, when I tried this out, “params:elem”-type parameters will be “hidden” under the given namespace when creating a namespaced pipeline from a template one, while the “parameters” dict will stay global.
So basically “params:elem” and the “elem” attribute of “parameters” will refer to different values, for instance when I have a node function that takes input=["parameters", "params:elem"]
.
What’s the reasoning here, conceptually?
Thanks,
Vivecadatajoely
08/15/2023, 1:37 PMdatajoely
08/15/2023, 1:37 PMdatajoely
08/15/2023, 1:38 PMviveca
08/15/2023, 2:13 PMdatajoely
08/15/2023, 2:16 PMExplicit is better than implicit
, params:address
is an explicit referenceNok Lam Chan
08/15/2023, 2:21 PMparams
are namespaced by default. parameters
is an exception - and it’s kind of a legacy thing for backward compatibility.
It is only useful when you need the whole dictionary of your parameters (i.e. when you need to log the parameters ).Nok Lam Chan
08/15/2023, 2:24 PMviveca
08/15/2023, 2:31 PM