pathsim.utils.portreference module

class pathsim.utils.portreference.PortReference(block=None, ports=[0])[source]

Bases: object

This 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.

Parameters:
  • block (Block) – internal block reference

  • ports (list[int]) – list of port indices

block
ports
to(other)[source]

Transfer the data between two PortReference instances, in this direction self -> other.

Parameters:

other (PortReference) – the PortReference instance to transfer data to from self

to_dict()[source]

Serialization into dict