FAIRmat-NFDI / pynxtools-xps

A pynxtools reader plugin for X-ray photoelectron spectroscopy (XPS) data
https://fairmat-nfdi.github.io/pynxtools-xps/
Apache License 2.0
2 stars 0 forks source link

[Bug]: Handling of links #2

Closed lukaspie closed 1 month ago

lukaspie commented 6 months ago

Contact Details

No response

What happened?

When having links of the form "group_a/field_a":" {"link": "group_b/field_b"}" in the config file, the XPS reader is supposed to populate the template with for an entry <entry1> with /ENTRY[<entry1>]/group_a/field_a: {'link': '/<entry1>/group_b/field_b'}.

However, when there are multiple entries (<entry1>,<entry2>), the template for <entry2> is filled with /ENTRY[<entry2>]/group_a/field_a: {'link': '/<entry1>/group_b/field_b'}. That is, it links back to <entry1> instead of <entry2>.

Relevant log output

No response