Closed elliotgunton closed 2 days ago
I think this will cause a lot of confusion if it only works for script templates
Fair point, I wanted to see if it was possible for script templates first. As for stubs it should work fine as long as they are decorated as script templates - we only need the signature, which is why it's fairly easy to do for script templates as we can access template.source
. Haven't looked into other template types extensively
Closing this as stale and it's only a POC which isn't high priority for now
Pull Request Checklist
Description of PR This PR makes it possible to subclass
Input
andOutput
for the new decorators in HEP0001, and then pass an output from a script template call directly into the next step or task. i.e. instead ofyou can do
Note this functionality is limited to script-decorated functions only for now, as other template types would need an even more involved approach where this code had already become complex enough, as we are reconstructing an
Output
from a step or task object.