spydrnet.Definition.add_cable

Definition.add_cable(cable, position=None)[source]

Add a cable to the definition.

The cable must not already be a member of another definition.

Parameters:
  • cable - (Cable) the cable to be added

  • position - (int, default None) the position in the cable list at which to add the cable