Closed nsheff closed 3 years ago
The value of the paths section is that it's the only way to pass a derived parameter to a python presubmission function.
Need to think of a less exclusive name for paths
that's still short since we'll refer to them as pipeline.paths.key
, which is long.
attribute_templates
var_templates
vars
attr_templates
var_templates
I couldn't find any documentation of this var_templates behavior, did we document this?
Should we rename the paths section?
we recently implemented a new section called
paths
that provides templates, which we are using to refer to either:In the process, we made it so these paths are no longer automatically interpreted as relative, so you have to say
{looper.output_dir}/blah
or something if you want to make the path relative to the piface or output dir.But now that they aren't automatically relatives, is
paths
the right name? Could you use this section for some other variable? Sure...it is actually now essentially mimicking the function of derived columns in peppy -- except more powerful and broad because it can draw not only from sample attributes, but from the other namespaces as well.So you could say,
That would work -- but it's not a path.
Or is it needed at all?
In thinking about this, I realized that these are only used in the templates anyway; so maybe this section isn't even needed. for example, we now have this:
but since we eliminated the relativity, you can also do:
you're just building the commands right into the command templates, which also derive from namespaces.