Skip to content

Commit

Permalink
Fix energy reading in XPS reader
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Jan 22, 2024
1 parent 2f9242c commit 2d0baa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pynxtools/dataconverter/readers/xps/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ def fill_data_group(key, key_part, entries_values, config_dict, template):

if key_part == "energy":
energy_field_key = f"{data_group_key}/energy"
binding_energy = np.array(xr_data.coords)
template[energy_field_key] = binding_energy
energy = np.array(xr_data.coords["energy"].values)
print(energy)
template[energy_field_key] = energy

else:
# Define energy axis and energy_indices
Expand Down

0 comments on commit 2d0baa7

Please sign in to comment.