Skip to content

Commit aee3eb1

Browse files
authored
Merge pull request #627 from FAIRmat-NFDI/update-defs-and-target
2 parents 964f58b + d87a715 commit aee3eb1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/pynxtools/dataconverter/validation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,11 @@ def startswith_with_variations(
828828
keys_to_remove = check_attributes_of_nonexisting_field(tree)
829829

830830
for not_visited_key in not_visited:
831+
# TODO: remove again if "@target"/"@reference" is sorted out by NIAC
832+
always_allowed_attributes = ("@target", "@reference")
833+
if not_visited_key.endswith(always_allowed_attributes):
834+
# If we want to support this in the future, we could check that the targetted field exists.
835+
continue
831836
if not_visited_key.endswith("/@units"):
832837
# check that parent exists
833838
if not_visited_key.rsplit("/", 1)[0] not in mapping.keys():

src/pynxtools/nexus-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2024.02-1960-g526d415a
1+
v2024.02-1962-g06c677c6

0 commit comments

Comments
 (0)