Skip to content

CGMES export shouldn't alter the network #3632

@rcourtier

Description

@rcourtier

Describe the current behavior

CGMES export relies on the presence of aliases and properties to identify the exported CGMES objects. However, these aliases and properties are not always present, for instance if the network doesn't come from a CGMES import, or if the network has been expanded with the addition of new elements. That's why currently, a method: addIidmMappings is called at the very begin of the export process to ensure these properties and aliases are present. In the case they are not present, they are added, which constitutes a modification of the network and that is something that needs to be avoided.

Describe the expected behavior

CGMES export doesn't alter the network. If properties or aliases to identify CGMES objects are missing, they should be generated in the export classes themselves on the fly and not be stored in the network. Ultimately, the addIidmMappings method should be removed.

Describe the motivation

The network should remain unchanged by any export or serialization process.

Extra Information

No response

Metadata

Metadata

Assignees

Projects

Status

TODO

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions