def __init__(self, domain, units, binding, equality_vector=None):
assert isinstance(domain, Domain)
- assert isinstance(units, listof(Unit))
+ assert isinstance(units, listof(Unit))
super(Code, self).__init__(binding, equality_vector)
+ # Do not assign when implemented as a property.
assert isinstance(flow, Flow)
+ # Implemented as a property to avoid creating a cycle.
def singular(self, flow):
Verifies if the unit is singular (well-defined) on the given flow.