Adds a pm.output("tag", value) function and corresponding Expression, per the issue above. Also converts the existing OutputOperation to use the first argument as a tag attribute in Moose, which can be used to reconstruct/preserve order of outputs when running computations from Python.
When evaluating computations, all runtimes, executors, and sessions now return a dictionary outputs consisting of (tag, value) key-value pairs, where the tags default to output_0, output_1, etc. if not provided explicitly in Python.
Closes #1088
Adds a
pm.output("tag", value)
function and corresponding Expression, per the issue above. Also converts the existing OutputOperation to use the first argument as atag
attribute in Moose, which can be used to reconstruct/preserve order of outputs when running computations from Python.When evaluating computations, all runtimes, executors, and sessions now return a dictionary
outputs
consisting of(tag, value)
key-value pairs, where thetag
s default tooutput_0
,output_1
, etc. if not provided explicitly in Python.