Skip to content

Commit

Permalink
resolve links again after filling template from data or attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Feb 22, 2024
1 parent 2d58a05 commit dae454e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pynxtools_mpes/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ def read( # pylint: disable=too-many-branches
f"Skipping the entry.",
)

# after filling, resolve links again:
if isinstance(template[key], str) and template[key].startswith(
"@link:"
):
template[key] = {"link": template[key][6:]}

else:
# Fills in the fixed metadata
template[key] = value
Expand Down

0 comments on commit dae454e

Please sign in to comment.