GRIDAPPSD / CIMHub

16 stars 10 forks source link

Consistent Handling of Special Characters in Names #23

Closed temcdrm closed 1 year ago

temcdrm commented 3 years ago

DistComponent.SafeName replaces a set of special characters with underscores, to make sure the names are valid for OpenDSS and GridLAB-D. This always bore a risk of making conflicts among names that were supposed to be unique, or of breaking valid references based on the names. The latter occurred in one of the IEEE low-voltage test cases. A workaround has been implemented for DistLinesSequenceZ, whereby the line configuration reference now uses a SafeName, which will exist but may not be unique.

A comprehensive solution would be robust, and also encompass other use cases of reference by name, which occur with lines, cables, wires, and transformers in many places.

temcdrm commented 2 years ago

Planning to resolve this with an option to use IdentifedObject.mRID in place of IdentifiedObject.name.

temcdrm commented 1 year ago

Fixed with https://github.com/GRIDAPPSD/CIMHub/commit/eccd33f94960f662d53173e7c16e6aea0df02846

use -d=2 command line option to use mRIDs in place of names