InfrastructureSystems.jl icon indicating copy to clipboard operation
InfrastructureSystems.jl copied to clipboard

`set_name!` with existing name errors

Open GabrielKS opened this issue 1 year ago • 2 comments

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: Screenshot 2024-09-12 at 5 25 50 PM it is an error. I propose we add a special case in set_name! to turn this into a no-op.

GabrielKS avatar Sep 12 '24 23:09 GabrielKS

Why would this operation happen?

jd-lara avatar Sep 13 '24 16:09 jd-lara

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.

GabrielKS avatar Sep 18 '24 20:09 GabrielKS