Description, motivation and use case
Add a clear() and remove_device method to ElementHolder to allow to remove elements that have been added using fill_device.
Proposed solution
In one of the tutorials we currently have:
simulator._MAGNETS.pop("QF_001", None)
simulator._ALL.pop("QF_001", None)
to be able to remove a magnet that has been attached.
It would be good to have a clear() and a remove_device method to have an easier syntax to remove a specific or all elements from the ElementHolder.
Checklist
Description, motivation and use case
Add a
clear()andremove_devicemethod toElementHolderto allow to remove elements that have been added usingfill_device.Proposed solution
In one of the tutorials we currently have:
to be able to remove a magnet that has been attached.
It would be good to have a
clear()and aremove_devicemethod to have an easier syntax to remove a specific or all elements from the ElementHolder.Checklist