diff --git a/examples/phi/SnO2_10nm.spe.nxs b/examples/phi/SnO2_10nm.spe.nxs index f00fc7ce..e3bfdb6b 100644 Binary files a/examples/phi/SnO2_10nm.spe.nxs and b/examples/phi/SnO2_10nm.spe.nxs differ diff --git a/examples/phi/SnO2_10nm_1.pro.nxs b/examples/phi/SnO2_10nm_1.pro.nxs index aa374886..ca5a4526 100644 Binary files a/examples/phi/SnO2_10nm_1.pro.nxs and b/examples/phi/SnO2_10nm_1.pro.nxs differ diff --git a/examples/phi/eln_data_phi.yaml b/examples/phi/eln_data_phi.yaml index 0ef7e938..93f3e8d3 100644 --- a/examples/phi/eln_data_phi.yaml +++ b/examples/phi/eln_data_phi.yaml @@ -149,7 +149,7 @@ sample: unit: g/mol cas_number: 18282-10-5 molecular_formula_hill: SnO2 - sample_history: + history: sample_preparation: start_time: 2022-01-22T12:48:00.200Z end_time: 2022-01-22T13:18:00.200Z diff --git a/examples/regenerate_examples.sh b/examples/regenerate_examples.sh index d5b407b9..1a08df26 100644 --- a/examples/regenerate_examples.sh +++ b/examples/regenerate_examples.sh @@ -1,12 +1,15 @@ #!/bin/bash +READER=xps +NXDL=NXmpes + function update_phi_examples { echo "Update Phi examples" cd phi/ echo "Update .spe (single spectrum) examples" - dataconverter SnO2_10nm.spe eln_data_phi.yaml --reader xps --nxdl NXmpes --output SnO2_10nm.spe.nxs + dataconverter SnO2_10nm.spe eln_data_phi.yaml --reader $READER --nxdl $NXDL --output SnO2_10nm.spe.nxs echo echo "Update .pro (depth_profiling) examples" - dataconverter SnO2_10nm_1.pro eln_data_phi.yaml --reader xps --nxdl NXmpes --output SnO2_10nm_1.pro.nxs + dataconverter SnO2_10nm_1.pro eln_data_phi.yaml --reader $READER --nxdl $NXDL --output SnO2_10nm_1.pro.nxs cd .. echo } @@ -15,7 +18,7 @@ function update_scienta_examples { echo "Update scienta examples" cd scienta/ echo "Update .txt example" - dataconverter Cu-HHTP_*.txt eln_data.yaml --reader xps --nxdl NXmpes --output Cu-HHTP.nxs + dataconverter Cu-HHTP_*.txt eln_data.yaml --reader $READER --nxdl $NXDL --output Cu-HHTP.nxs cd .. echo } diff --git a/examples/scienta/Cu-HHTP.nxs b/examples/scienta/Cu-HHTP.nxs index bc6fd256..50cd9420 100644 Binary files a/examples/scienta/Cu-HHTP.nxs and b/examples/scienta/Cu-HHTP.nxs differ diff --git a/examples/scienta/eln_data.yaml b/examples/scienta/eln_data.yaml index be4c08bf..9d8afba2 100644 --- a/examples/scienta/eln_data.yaml +++ b/examples/scienta/eln_data.yaml @@ -160,7 +160,7 @@ sample: chemical_formula: Cu description: Cu-HHTP/Glass on standard sample holder situation: vacuum - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:25:00.200Z end_time: 2022-04-08T11:45:00.200Z diff --git a/examples/sle/Au_25_mbar_O2_no_align.nxs b/examples/sle/Au_25_mbar_O2_no_align.nxs index 20be331a..39774e85 100644 Binary files a/examples/sle/Au_25_mbar_O2_no_align.nxs and b/examples/sle/Au_25_mbar_O2_no_align.nxs differ diff --git a/examples/sle/eln_data_sle.yaml b/examples/sle/eln_data_sle.yaml index 454d50c4..94756e22 100644 --- a/examples/sle/eln_data_sle.yaml +++ b/examples/sle/eln_data_sle.yaml @@ -25,14 +25,14 @@ instrument: resolution: value: 0.2 unit: eV - source_probe: + source_xray: type: Fixed Tube X-ray probe: photon device_information: vendor: SPECS GmbH model: µFOCUS 500 identifier: null - beam_probe: + beam_xray: distance: value: 0.0 unit: mm @@ -152,7 +152,7 @@ sample: unit: g/mol cas_number: 7440-57-5 molecular_formula_hill: Au - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:25:00.200Z end_time: 2022-04-08T11:45:00.200Z diff --git a/pynxtools_xps/config/config_phi.json b/pynxtools_xps/config/config_phi.json index 4efa3e2c..94a9190d 100644 --- a/pynxtools_xps/config/config_phi.json +++ b/pynxtools_xps/config/config_phi.json @@ -37,7 +37,9 @@ "resolution":"@eln", "resolution/@units":"@eln" }, + "depends_on": "/entry/instrument/source_xray/transformations/source_analyser_angle", "TRANSFORMATIONS[transformations]": { + "AXISNAME[source_analyser_angle]/@depends_on":".", "AXISNAME[source_analyser_angle]":"@xps_token/source_analyser_angle", "AXISNAME[source_analyser_angle]/@transformation_type": "rotation", "AXISNAME[source_analyser_angle]/@units":"@xps_token/source_analyser_angle/@units", @@ -47,7 +49,7 @@ 1 ] }, - "source_TYPE[source_xray]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@xps_token:xray_source/name", "probe":"@eln", @@ -73,9 +75,11 @@ "power/@units":"@xps_token:xray_source/xray_power/@units", "offset":"@xps_token:xray_source/xray_offset", "offset/@units":"@xps_token:xray_source/xray_offset/@units", + "rotation":"@xps_token:xray_source/xray_rotation", + "rotation/@units":"@xps_token:xray_source/xray_rotation/@units", "voltage":"@xps_token:xray_source/xray_high_voltage", "voltage/@units":"@xps_token:xray_source/xray_high_voltage/@units", - "associated_beam":"@link:/entry/instrument/beam_xray", + "associated_beam":"/entry/instrument/beam_xray", "LENS_EM[blanking_lens]":{ "name":"blanking lens", "voltage":"@xps_token:xray_source/xray_blanking_voltage", @@ -108,20 +112,9 @@ "offset_x/@units":"@xps_token:xray_source/xray_stigmator_x/@units", "offset_y":"@xps_token:xray_source/xray_stigmator_y", "offset_y/@units":"@xps_token:xray_source/xray_stigmator_y/@units" - }, - "depends_on": "/entry/instrument/source_xray/transformations/trans_z", - "TRANSFORMATIONS[transformations]": { - "AXISNAME[xray_rotation]":"@xps_token:xray_source/xray_rotation", - "AXISNAME[xray_rotation]/@transformation_type": "rotation", - "AXISNAME[xray_rotation]/@units":"@xps_token:xray_source/xray_rotation/@units", - "AXISNAME[xray_rotation]/@vector": [ - 0, - 0, - 1 - ] } }, - "beam_TYPE[beam_xray]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/xray_energy", @@ -132,9 +125,9 @@ "incident_polarization/@units":"None", "extent":"@xps_token:beam/xray_beam_diameter", "extent/@units":"@xps_token:beam/xray_beam_diameter/@units", - "associated_source":"@link:/entry/instrument/source_xray" + "associated_source":"/entry/instrument/source_xray" }, - "source_TYPE[source_flood_gun]":{ + "sourceTYPE[source_flood_gun]":{ "current":"@xps_token:flood_gun/flood_gun_current", "current/@units":"@xps_token:flood_gun/flood_gun_current/@units", "energy":"@xps_token:flood_gun/flood_gun_energy", @@ -161,7 +154,7 @@ "voltage/@units":"@xps_token:flood_gun/extractor_voltage/@units" } }, - "source_TYPE[source_gas_cluster_ion_beam]":{ + "sourceTYPE[source_gas_cluster_ion_beam]":{ "description":"@eln", "cluster_size":"@xps_token:gcib/gcib_cluster_size", "cluster_size/@units":"@xps_token:gcib/gcib_cluster_size/@units", @@ -207,7 +200,7 @@ "voltage/@units":"@xps_token:gcib/gcib_objective/@units" } }, - "source_TYPE[source_neutral_ion_gun]":{ + "sourceTYPE[source_neutral_ion_gun]":{ "description":"@eln", "current":"@xps_token:neutral_ion_gun/neutral_current", "current/@units":"@xps_token:neutral_ion_gun/neutral_current/@units", @@ -252,7 +245,7 @@ "voltage/@units":"@xps_token:neutral_ion_gun/neutral_objective_lens_voltage/@units" } }, - "source_TYPE[source_sputter_gun]":{ + "sourceTYPE[source_sputter_gun]":{ "description":"@eln", "current":"@xps_token:sputter_gun/sputter_current", "current/@units":"@xps_token:sputter_gun/sputter_current/@units", @@ -520,7 +513,7 @@ "value":"@link:/entry/instrument/source_flood_gun/current" } }, - "/ENTRY[entry]/PROCESS[process]":{ + "/ENTRY[entry]/PROCESS_MPES[process]":{ "energy_calibration":"None", "energy_referencing":{ "level":"None", @@ -547,7 +540,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_scienta_txt.json b/pynxtools_xps/config/config_scienta_txt.json index 0ea35c63..a52dbea1 100644 --- a/pynxtools_xps/config/config_scienta_txt.json +++ b/pynxtools_xps/config/config_scienta_txt.json @@ -36,7 +36,7 @@ "resolution":"@xps_token:region/step_size", "resolution/@units":"@xps_token:region/step_size/@units" }, - "source_TYPE[source_xray]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@eln", "probe":"photon", @@ -45,9 +45,9 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_xray" + "associated_beam":"/entry/instrument/beam_xray" }, - "beam_TYPE[beam_xray]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -57,7 +57,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_xray" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default":"detector0", @@ -232,7 +232,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_sle_specs.json b/pynxtools_xps/config/config_sle_specs.json index 48ad4fc2..05dd80f5 100644 --- a/pynxtools_xps/config/config_sle_specs.json +++ b/pynxtools_xps/config/config_sle_specs.json @@ -36,7 +36,7 @@ "resolution":"@eln", "resolution/@units":"@eln" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@xps_token:source/name", "probe":"@eln", @@ -49,9 +49,9 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_probe" + "associated_beam":"/entry/instrument/beam_xray" }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -61,7 +61,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_probe" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default": "detector0", @@ -272,7 +272,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_specs_xy.json b/pynxtools_xps/config/config_specs_xy.json index 07a270f3..ac4bd724 100644 --- a/pynxtools_xps/config/config_specs_xy.json +++ b/pynxtools_xps/config/config_specs_xy.json @@ -35,7 +35,7 @@ "resolution":"@xps_token:data/step_size", "resolution/@units":"eV" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name": "@xps_token:source/source_label", "probe":"photon", @@ -44,9 +44,9 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_probe" + "associated_beam":"/entry/instrument/beam_xray" }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -56,7 +56,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_probe" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default": "detector0", @@ -238,7 +238,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_txt_vamas_export.json b/pynxtools_xps/config/config_txt_vamas_export.json index cfe328e0..5ecb5320 100644 --- a/pynxtools_xps/config/config_txt_vamas_export.json +++ b/pynxtools_xps/config/config_txt_vamas_export.json @@ -36,7 +36,7 @@ "resolution":"@xps_token:data/step_size", "resolution/@units":"@eln" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@eln", "probe":"photon", @@ -45,9 +45,9 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_probe" + "associated_beam":"/entry/instrument/beam_xray" }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -57,7 +57,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_probe" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default": "detector0", @@ -209,7 +209,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_vms.json b/pynxtools_xps/config/config_vms.json index 5ee12c98..fc904ffa 100644 --- a/pynxtools_xps/config/config_vms.json +++ b/pynxtools_xps/config/config_vms.json @@ -36,7 +36,7 @@ "resolution":"@xps_token:data/step_size", "resolution/@units":"eV" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@xps_token:source/source_label", "probe":"photon", @@ -45,11 +45,21 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_probe", - "source_analyzer_angle":"source_analyzer_angle", - "source_analyzer_angle/@units":"degree" + "associated_beam":"/entry/instrument/beam_xray", + "depends_on": "/entry/instrument/source_xray/transformations/source_analyzer_angle", + "TRANSFORMATIONS[transformations]": { + "AXISNAME[source_analyzer_angle]/@depends_on":".", + "AXISNAME[source_analyzer_angle]":"@xps_token:source/source_analyzer_angle", + "AXISNAME[source_analyzer_angle]/@transformation_type": "rotation", + "AXISNAME[source_analyzer_angle]/@units":"degree", + "AXISNAME[source_analyzer_angle]/@vector": [ + 0, + 0, + 1 + ] + } }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -59,7 +69,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_probe" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default":"detector0", @@ -242,7 +252,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/config_xml_specs.json b/pynxtools_xps/config/config_xml_specs.json index 7df556d1..a8de7781 100644 --- a/pynxtools_xps/config/config_xml_specs.json +++ b/pynxtools_xps/config/config_xml_specs.json @@ -34,7 +34,7 @@ "resolution":"@xps_token:region/scan_delta", "resolution/@units":"eV" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"@eln", "name":"@xps_token:source_info/name", "probe":"@eln", @@ -43,9 +43,9 @@ "identifier":"@eln", "model":"@eln" }, - "associated_beam":"@link:/entry/instrument/beam_probe" + "associated_beam":"/entry/instrument/beam_xray" }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"@eln", "distance/@units":"@eln", "incident_energy":"@xps_token:beam/excitation_energy", @@ -55,7 +55,7 @@ "incident_polarization":"None", "incident_polarization/@units":"None", "extent":"None", - "associated_source":"@link:/entry/instrument/source_probe" + "associated_source":"/entry/instrument/source_xray" }, "ELECTRONANALYSER[electronanalyser]":{ "@default": "detector0", @@ -207,7 +207,7 @@ "cas_number":"@eln", "molecular_formula_hill":"@eln" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"@eln", "end_time":"@eln", diff --git a/pynxtools_xps/config/template.json b/pynxtools_xps/config/template.json index d303c31b..790e2e69 100644 --- a/pynxtools_xps/config/template.json +++ b/pynxtools_xps/config/template.json @@ -26,7 +26,7 @@ "resolution":"None", "resolution/@units":"None" }, - "source_TYPE[source_probe]":{ + "sourceTYPE[source_xray]":{ "type":"None", "type_other":"None", "name":"None", @@ -38,7 +38,7 @@ }, "associated_beam":"None" }, - "beam_TYPE[beam_probe]":{ + "beamTYPE[beam_xray]":{ "distance":"None", "distance/@units":"None", "incident_energy":"None", @@ -210,7 +210,7 @@ "SUBSTANCE[substance]":{ "molecular_formula_hill":"None" }, - "sample_history":{ + "history":{ "sample_preparation":{ "start_time":"None", "end_time":"None", diff --git a/pynxtools_xps/phi/spe_pro_phi.py b/pynxtools_xps/phi/spe_pro_phi.py index 6b9936f7..526b0d59 100644 --- a/pynxtools_xps/phi/spe_pro_phi.py +++ b/pynxtools_xps/phi/spe_pro_phi.py @@ -1446,13 +1446,14 @@ def _map_to_list(value: str): def _map_to_xy(value: str): """Map items in value to a dictionary with keys x and y.""" x, y = value.split(" ") - return {"x": x, "y": y} + + return {"x": float(x), "y": float(y)} def _map_to_xy_with_units(value: str): """Map items in value to a dictionary with keys x .""" x, y, unit = value.split(" ") - return {"x": x, "x_units": unit, "y": y, "y_units": unit} + return {"x": float(x), "x_units": unit, "y": float(y), "y_units": unit} def _convert_experimental_technique(value: str): diff --git a/pynxtools_xps/reader.py b/pynxtools_xps/reader.py index 936dd2a2..661ef834 100644 --- a/pynxtools_xps/reader.py +++ b/pynxtools_xps/reader.py @@ -314,6 +314,9 @@ def fill_template_with_value(key, value, template): # Reset link to original value[LINK_TOKEN] = initial_link_text.replace("/entry/", f"/{entry}/") + if isinstance(value, str) and "/entry/" in value: + value = value.replace("/entry/", f"/{entry}/") + modified_key = key.replace("/ENTRY[entry]/", f"/ENTRY[{entry}]/") # Do for all detectors @@ -331,6 +334,9 @@ def fill_template_with_value(key, value, template): # link. link_text = link_text.replace("/detector/", f"/{detector}/") value = {LINK_TOKEN: link_text} + + if isinstance(value, str) and "/detector/" in value: + value = value.replace("/detector/", f"/{detector}/") template[detr_key] = value else: diff --git a/tests/data/pro/eln_data_phi_pro.yaml b/tests/data/pro/eln_data_phi_pro.yaml index 0ef7e938..93f3e8d3 100644 --- a/tests/data/pro/eln_data_phi_pro.yaml +++ b/tests/data/pro/eln_data_phi_pro.yaml @@ -149,7 +149,7 @@ sample: unit: g/mol cas_number: 18282-10-5 molecular_formula_hill: SnO2 - sample_history: + history: sample_preparation: start_time: 2022-01-22T12:48:00.200Z end_time: 2022-01-22T13:18:00.200Z diff --git a/tests/data/scienta_txt/eln_data.yaml b/tests/data/scienta_txt/eln_data.yaml index e402ce40..1ff63337 100644 --- a/tests/data/scienta_txt/eln_data.yaml +++ b/tests/data/scienta_txt/eln_data.yaml @@ -160,7 +160,7 @@ sample: chemical_formula: Au description: Au foil on standard sample holder situation: vacuum - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:25:00.200Z end_time: 2022-04-08T11:45:00.200Z diff --git a/tests/data/spe/eln_data_phi_pro.yaml b/tests/data/spe/eln_data_phi_spe.yaml similarity index 99% rename from tests/data/spe/eln_data_phi_pro.yaml rename to tests/data/spe/eln_data_phi_spe.yaml index 0ef7e938..93f3e8d3 100644 --- a/tests/data/spe/eln_data_phi_pro.yaml +++ b/tests/data/spe/eln_data_phi_spe.yaml @@ -149,7 +149,7 @@ sample: unit: g/mol cas_number: 18282-10-5 molecular_formula_hill: SnO2 - sample_history: + history: sample_preparation: start_time: 2022-01-22T12:48:00.200Z end_time: 2022-01-22T13:18:00.200Z diff --git a/tests/data/vms_irregular/eln_data_vms_irregular.yaml b/tests/data/vms_irregular/eln_data_vms_irregular.yaml index 54475cbb..26e69a8d 100644 --- a/tests/data/vms_irregular/eln_data_vms_irregular.yaml +++ b/tests/data/vms_irregular/eln_data_vms_irregular.yaml @@ -19,14 +19,14 @@ instrument: resolution: value: 0.2 unit: eV - source_probe: + source_xray: type: Synchrotron X-ray Source probe: x-ray device_information: vendor: null model: null identifier: null - beam_probe: + beam_xray: distance: value: 0.0 unit: mm @@ -138,7 +138,7 @@ sample: substance: molecular_formula_hill: (C42H62S4)n situation: vacuum - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:02:38.0200Z end_time: 2022-04-08T11:06:42.200Z diff --git a/tests/data/vms_regular/eln_data_vms_regular.yaml b/tests/data/vms_regular/eln_data_vms_regular.yaml index 54475cbb..26e69a8d 100644 --- a/tests/data/vms_regular/eln_data_vms_regular.yaml +++ b/tests/data/vms_regular/eln_data_vms_regular.yaml @@ -19,14 +19,14 @@ instrument: resolution: value: 0.2 unit: eV - source_probe: + source_xray: type: Synchrotron X-ray Source probe: x-ray device_information: vendor: null model: null identifier: null - beam_probe: + beam_xray: distance: value: 0.0 unit: mm @@ -138,7 +138,7 @@ sample: substance: molecular_formula_hill: (C42H62S4)n situation: vacuum - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:02:38.0200Z end_time: 2022-04-08T11:06:42.200Z diff --git a/tests/data/xml/eln_data_xml.yaml b/tests/data/xml/eln_data_xml.yaml index 5abaeca1..77435874 100644 --- a/tests/data/xml/eln_data_xml.yaml +++ b/tests/data/xml/eln_data_xml.yaml @@ -19,14 +19,14 @@ instrument: resolution: value: 0.2 unit: eV - source_probe: + source_xray: type: Synchrotron X-ray Source probe: x-ray device_information: vendor: null model: null identifier: null - beam_probe: + beam_xray: distance: value: 0.0 unit: mm @@ -137,7 +137,7 @@ sample: substance: molecular_formula_hill: (C42H62S4)n situation: vacuum - sample_history: + history: sample_preparation: start_time: 2022-04-08T11:02:38.0200Z end_time: 2022-04-08T11:06:42.200Z