Skip to content

Commit

Permalink
Merge pull request #8 from FAIRmat-NFDI/angular_resolution_rewrite
Browse files Browse the repository at this point in the history
Angular resolution rewrite
  • Loading branch information
rettigl authored Apr 5, 2024
2 parents c1ecb70 + 7c624b3 commit 288161d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pynxtools_mpes/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ def iterate_dictionary(dic, key_string):
"momentum_resolution": "RESOLUTION[momentum_resolution]/resolution",
"temporal_resolution": "RESOLUTION[temporal_resolution]/resolution",
"spatial_resolution": "RESOLUTION[spatial_resolution]/resolution",
"angular_resolution": "RESOLUTION[angular_resolution]/resolution",
"sample_temperature": "temperature_sensor/value",
"drain_current": "drain_current_amperemeter/value",
}

REPLACE_NESTED = {
Expand All @@ -191,12 +193,18 @@ def iterate_dictionary(dic, key_string):
"beam_TYPE[beam]/Probe": "beam_TYPE[beam_probe]",
"beam_TYPE[beam]/Pump": "beam_TYPE[beam_pump]",
"sample_history": "sample_history/notes",
"ELECTRONANALYSER[electronanalyser]/RESOLUTION[energy_resolution]": (
"ELECTRONANALYSER[electronanalyser]/energy_resolution"
),
"ELECTRONANALYSER[electronanalyser]/RESOLUTION[momentum_resolution]": (
"ELECTRONANALYSER[electronanalyser]/momentum_resolution"
),
"ELECTRONANALYSER[electronanalyser]/RESOLUTION[spatial_resolution]": (
"ELECTRONANALYSER[electronanalyser]/spatial_resolution"
),
"ELECTRONANALYSER[electronanalyser]/RESOLUTION[angular_resolution]": (
"ELECTRONANALYSER[electronanalyser]/angular_resolution"
),
"SAMPLE[sample]/gas_pressure": "INSTRUMENT[instrument]/pressure_gauge/value",
"SAMPLE[sample]/temperature": (
"INSTRUMENT[instrument]/MANIPULATOR[manipulator]/temperature_sensor/value"
Expand Down

0 comments on commit 288161d

Please sign in to comment.