handle multiple variables being output from Convolve
@@ -313,6 +313,15 @@ class Transformation(metaclass=ABCMeta):
if self.output_suffix is not None:
_output += self.output_suffix
+ # If multiple variables were returned, add each one separately
+ if isinstance(result, (list, tuple)):
+ # rename first output
+ result[0].name = _output
+ self.collection[_output] = result[0]
+
+ for r in result[1:]:
+ self.collection[r.name] = r
+ else:
col.name = _output
self.collection[_output] = col
