From df6ef440e01f94d09b427e8b412e730890471d05 Mon Sep 17 00:00:00 2001 From: arewedreaming Date: Mon, 21 Sep 2026 15:22:42 -0700 Subject: [PATCH 1/2] Small fix that adds ece.time --- omas/machine_mappings/d3d.json | 3 +++ omas/machine_mappings/d3d.py | 1 + omas/version | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/omas/machine_mappings/d3d.json b/omas/machine_mappings/d3d.json index e37bbf2b3..dad343b66 100644 --- a/omas/machine_mappings/d3d.json +++ b/omas/machine_mappings/d3d.json @@ -462,6 +462,9 @@ "ece.line_of_sight.second_point.z": { "PYTHON": "electron_cyclotron_emission_hardware(ods, {pulse}, {fast_ece!r})" }, + "ece.time": { + "PYTHON": "electron_cyclotron_emission_hardware(ods, {pulse}, {fast_ece!r})" + }, "gas_injection.pipe.:": { "PYTHON": "gas_injection_hardware(ods, {pulse})" }, diff --git a/omas/machine_mappings/d3d.py b/omas/machine_mappings/d3d.py index 8dad563ab..ae5ca36e8 100644 --- a/omas/machine_mappings/d3d.py +++ b/omas/machine_mappings/d3d.py @@ -1249,6 +1249,7 @@ def electron_cyclotron_emission_data(ods, pulse=133221, fast_ece=False, _measure ece_uncertainty[key] = np.sqrt(np.abs(ece_data[key] * 1.e3)) + 70 * np.abs(ece_data[key]) ods['ece.ids_properties.homogeneous_time'] = 0 + ods['ece.time'] = ece_map['TIME'] * 1.0e-3 # Not in MDSplus if not _measurements: points = [{}, {}] diff --git a/omas/version b/omas/version index ac37076b3..7245ec2e2 100644 --- a/omas/version +++ b/omas/version @@ -1 +1 @@ -0.97.3 +0.97.4 From 46b50c870582f1c2fb8a41ee7467e07bda987958 Mon Sep 17 00:00:00 2001 From: Torrin <1843540+torrinba@users.noreply.github.com> Date: Mon, 21 Sep 2026 18:14:03 -0700 Subject: [PATCH 2/2] Update omas/machine_mappings/d3d.py Co-authored-by: Severin Denk <60154343+AreWeDreaming@users.noreply.github.com> --- omas/machine_mappings/d3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omas/machine_mappings/d3d.py b/omas/machine_mappings/d3d.py index ae5ca36e8..678bab80f 100644 --- a/omas/machine_mappings/d3d.py +++ b/omas/machine_mappings/d3d.py @@ -1248,7 +1248,7 @@ def electron_cyclotron_emission_data(ods, pulse=133221, fast_ece=False, _measure # Assumes 7% calibration error (optimisitic) + Poisson uncertainty ece_uncertainty[key] = np.sqrt(np.abs(ece_data[key] * 1.e3)) + 70 * np.abs(ece_data[key]) - ods['ece.ids_properties.homogeneous_time'] = 0 + ods['ece.ids_properties.homogeneous_time'] = 1 ods['ece.time'] = ece_map['TIME'] * 1.0e-3 # Not in MDSplus if not _measurements: