diff --git a/pynxtools_mpes/reader.py b/pynxtools_mpes/reader.py index 5238258..b51c024 100644 --- a/pynxtools_mpes/reader.py +++ b/pynxtools_mpes/reader.py @@ -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