diff --git a/pynxtools/dataconverter/readers/xps/reader.py b/pynxtools/dataconverter/readers/xps/reader.py index 746f4d884..154926f59 100644 --- a/pynxtools/dataconverter/readers/xps/reader.py +++ b/pynxtools/dataconverter/readers/xps/reader.py @@ -51,8 +51,8 @@ "version": "@version", "User": "USER[user]", "Instrument": "INSTRUMENT[instrument]", - "Source": "SOURCE[source]", - "Beam": "BEAM[beam]", + "Source": "SOURCE[source_probe]", + "Beam": "BEAM[beam_probe]", "Analyser": "ELECTRONANALYSER[electronanalyser]", "Collectioncolumn": "COLLECTIONCOLUMN[collectioncolumn]", "Energydispersion": "ENERGYDISPERSION[energydispersion]", @@ -389,7 +389,7 @@ def read( config_file = Path(file) with open(config_file, encoding="utf-8", mode="r") as cfile: - config_dict = json.load(cfile) + config_dict = parse_flatten_json(cfile) fill_template_with_xps_data(config_dict, xps_data_dict, template, ENTRY_SET) if eln_data_dict: