Skip to content

Commit

Permalink
read nested configs in XPS reader
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Jan 18, 2024
1 parent 920fb28 commit 0db2ddb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pynxtools/dataconverter/readers/xps/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0db2ddb

Please sign in to comment.