finesse.components.wire module
Wire-type objects representing electrical connections between components.
- class finesse.components.wire.Wire(*args, **kwargs)[source]
Bases:
ConnectorA wire represents a flow of information between signal nodes. It connects two specific signal nodes. Signal nodes have a direction associated with them: input, output, or bidirectional. Depending on what direction each node has depends on what the wire will setup when it is connected. When connecting ports the wire will look at the name of each node in the port and connect nodes with the same name.
Parameters
- namestr, optional
Name of newly created wire.
- nodeA, nodeB
SignalNode Signal nodes to connect together.
- delayfloat, optional
A delay time for the signal to flow from A to B in seconds
- gainfloat, optional
A scaling factor that can be used to scale the output relative to the input.
- connect(A, B)[source]
Connects A to B signal nodes together with a
Wireelement. If A or B are ports then the first node is selected from the port to connect. If A or B have more than one node then you should specify.explicitly which one to use - an exception will be raised in this case.
Parameters
- A
SignalNodeorPort First signal node or Electrical port with a single node
- B
SignalNodeorPort Second signal node or Electrical port with a single node
- A
- property delay
delay : float, optional A delay time for the signal to flow from A to B in seconds
- property gain
gain : float, optional A scaling factor that can be used to scale the output relative to the input.
- class finesse.components.wire.WireWorkspace[source]
Bases:
ConnectorWorkspace