in runtool/runtool/datatypes.py [0:0]
def __mul__(self, other) -> "Experiments":
"""
Calculates the cartesian product combining a `Node` with a `Node` or `ListNode`
and returns an `Experiments` object containing the result.
"""
if isinstance(other, Node):
return Experiments([Experiment.from_nodes(self, other)])
if isinstance(other, ListNode):
return Experiments(
[Experiment.from_nodes(self, item) for item in other]
)
raise TypeError(f"Unable to multiply {type(self)} with {type(other)}")