Sitelet https://github.com/openscd/scl-lib/issues/70
Skip to content

tIED: Avoid unnecessary datatype duplication #70

Description

@danyill

Using insertIED:

  1. We import an IED A with DataType y
  2. We import another IED B with DataType z in it's datamodel which has the same id but it is different from the previous DataType y (different objects defined).
  3. When we use the extension we get a separate datatype created for B.
  4. If we import another IED which is from the same ICD file as B then we get another set of DataTypeTemplates created.

This behaviour is currently by design but requires icd files to have their DataTypeTemplate ids to be "pre-segregated" to get a good outcome.

The describe function in scl-diff could be used along with cataloguing the existing datatypes to resolve this, but at the cost of CPU cycles and it might become a little slow in large files when insertIED is used on multiple IEDs (as I currently do in oscd-import-templates)

(from danyill/oscd-import-templates#3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions