weldx.CoordinateSystemManager.delete_cs#

CoordinateSystemManager.delete_cs(coordinate_system_name, delete_children=False)#

Delete a coordinate system from the coordinate system manager.

If the Coordinate system manager has attached sub system, there are multiple possible consequences.

  • All subsystems attached to the deleted coordinate system or one of its child systems are removed from the coordinate system manager

  • If the coordinate system is part of a subsystem and belongs to the systems that were present when the subsystem was merged, the subsystem is removed and can not be restored using subsystems or unmerge. Coordinate systems of the subsystem that aren’t a child of the deleted coordinate system will remain in the coordinate system manager

  • If the coordinate system is part of a subsystem but was added after merging, only the systems and its children are removed. The subsystem remains in the coordinate system manager.

Parameters:
  • coordinate_system_name (str) – Name of the coordinate system that should be deleted.

  • delete_children (bool) – If False, an exception is raised if the coordinate system has one or more children since deletion would cause them to be disconnected to the root. If True, all children are deleted as well.