From a4f0a50dbb0a524669771f8539ffc1054f6c0740 Mon Sep 17 00:00:00 2001 From: Rubel Date: Fri, 1 Dec 2023 14:22:28 +0100 Subject: [PATCH] CI/CD --- pynxtools/dataconverter/readers/xrd/config.py | 4 ++-- tests/dataconverter/test_helpers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pynxtools/dataconverter/readers/xrd/config.py b/pynxtools/dataconverter/readers/xrd/config.py index 9c48120af..4d3757b10 100644 --- a/pynxtools/dataconverter/readers/xrd/config.py +++ b/pynxtools/dataconverter/readers/xrd/config.py @@ -78,8 +78,8 @@ "/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/k_alpha_two": {"xrdml_1.5": {"value": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha2", "@units": "/xrdMeasurements/xrdMeasurement/usedWavelength/kAlpha2/unit"}, }, - "/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/kbeta": {"xrdml_1.5": {"value": "", - "@units": ""}, + "/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/kbeta": {"xrdml_1.5": {"value": "/xrdMeasurements/xrdMeasurement/usedWavelength/kBeta", + "@units": "/xrdMeasurements/xrdMeasurement/usedWavelength/kBeta/unit"}, }, "/ENTRY[entry]/INSTRUMENT[instrument]/SOURCE[source]/ratio_k_alphatwo_k_alphaone": {"xrdml_1.5": {"value": "", "@units": ""} diff --git a/tests/dataconverter/test_helpers.py b/tests/dataconverter/test_helpers.py index 48be2c1e4..421f8ce9b 100644 --- a/tests/dataconverter/test_helpers.py +++ b/tests/dataconverter/test_helpers.py @@ -87,7 +87,7 @@ def listify_template(data_dict: Template): ('test', 'test'), (['59', '3.00005', '498E-36'], np.array([59.0, 3.00005, 4.98e-34])), ('23 34 444 5000', np.array([23., 34., 444., 5000.])), - ('xrd experiment','xrd experiment'), + ('xrd experiment', 'xrd experiment'), (None, None), ]) def test_transform_to_intended_dt(input_data, expected_output):