InfrastructureSystems.jl
InfrastructureSystems.jl copied to clipboard
`set_name!` with existing name errors
The IS companion to https://github.com/NREL-Sienna/PowerSystems.jl/issues/1161. If one sets a component's name to that component's existing name:
it is an error. I propose we add a special case in
set_name! to turn this into a no-op.
Why would this operation happen?
Why would this operation happen?
Seems unlikely for someone to intentionally do this as a one-off, but maybe it could occur as part of some batch process. Anyway, even if it is unlikely to happen, it still strikes me as buggy behavior we ought to fix.