Skip to content

Commit

Permalink
adapter.xml: rename XMLConstructables.GLOBAL_REFERENCE
Browse files Browse the repository at this point in the history
`GlobalReference` has been renamed to `ExternalReference` in V3, but
this enum member has been missed in the rename.
  • Loading branch information
jkhsjdhjs committed Mar 13, 2024
1 parent d7a2283 commit 7ca9dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ class XMLConstructables(enum.Enum):
KEY = enum.auto()
REFERENCE = enum.auto()
MODEL_REFERENCE = enum.auto()
GLOBAL_REFERENCE = enum.auto()
EXTERNAL_REFERENCE = enum.auto()
ADMINISTRATIVE_INFORMATION = enum.auto()
QUALIFIER = enum.auto()
SECURITY = enum.auto()
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def read_aas_xml_element(file: IO, construct: XMLConstructables, failsafe: bool
constructor = decoder_.construct_reference
elif construct == XMLConstructables.MODEL_REFERENCE:
constructor = decoder_.construct_model_reference
elif construct == XMLConstructables.GLOBAL_REFERENCE:
elif construct == XMLConstructables.EXTERNAL_REFERENCE:
constructor = decoder_.construct_external_reference
elif construct == XMLConstructables.ADMINISTRATIVE_INFORMATION:
constructor = decoder_.construct_administrative_information
Expand Down

0 comments on commit 7ca9dd4

Please sign in to comment.