Open jd-lara opened 3 years ago
This is certainly not a good idea unless the user understands the internals. If the generators are not attached to a system then they need to change the name and change the UUID (set_name!
and IS.assign_new_uuid!
). If they are attached to a system then many things will not work correctly. The user will never be able to retrieve the copied generators from the system.
We should add code to ensure that duplicate UUIDs are never added to a system. We currently only check for duplicate names. We would have to add new tracking.
Based on the implementation of Base.deepcopy
It might be possible to block the function if the component is attached to a system.
I recently saw this pattern in a package using PowerSystems.
What happens with gens?