spydrnet.Cable.add_wire
- Cable.add_wire(wire, position=None)[source]
Adds a wire to the cable at the given position. This wire must not belong to a cable already
- Parameters:
wire - (Wire) the wire to be added to the cable. This wire must not belong to any other
cable.
position - (int, default None) the index in the wires list at which to add the wire.