pathsim.utils.portreference module
- class pathsim.utils.portreference.PortReference(block=None, ports=[0])[source]
Bases:
objectThis is a container class that holds a reference to a block and a list of ports.
Note
The default port, when no ports are defined in the arguments is 0.
- set(values)[source]
Sets the input ports of the reference block with values.
Note
If more values then ports, zip automatically stops iteration after all ports. If more ports then values, itertools.cycle is used to fill all the ports repeatedly.