From 1b412ce9c3508449fc450323cc68990850eee35f Mon Sep 17 00:00:00 2001 From: rettigl Date: Wed, 6 Mar 2024 11:52:37 +0100 Subject: [PATCH 1/2] add energy and angular resolution rewrite rules --- pynxtools_mpes/reader.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pynxtools_mpes/reader.py b/pynxtools_mpes/reader.py index 003fb77..3642146 100644 --- a/pynxtools_mpes/reader.py +++ b/pynxtools_mpes/reader.py @@ -181,6 +181,7 @@ 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", } @@ -191,12 +192,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" From 7c624b3208795594d387cca11276b9ed8cc5d3be Mon Sep 17 00:00:00 2001 From: rettigl Date: Wed, 6 Mar 2024 12:37:27 +0100 Subject: [PATCH 2/2] add drain current --- pynxtools_mpes/reader.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pynxtools_mpes/reader.py b/pynxtools_mpes/reader.py index 3642146..213df8f 100644 --- a/pynxtools_mpes/reader.py +++ b/pynxtools_mpes/reader.py @@ -183,6 +183,7 @@ def iterate_dictionary(dic, key_string): "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 = {