From 964dc4dd66f49056a01f99657992ed11f9f6fc41 Mon Sep 17 00:00:00 2001 From: Benjamin CHARMES Date: Fri, 17 Jan 2025 14:06:43 +0000 Subject: [PATCH] DataBlockUI not support NMR block --- webapp/src/components/DataBlockUI.vue | 115 +++++++++++++++++++++++++- webapp/src/resources.js | 5 ++ 2 files changed, 118 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/DataBlockUI.vue b/webapp/src/components/DataBlockUI.vue index 7740a0e85..ff3e51581 100644 --- a/webapp/src/components/DataBlockUI.vue +++ b/webapp/src/components/DataBlockUI.vue @@ -166,11 +166,101 @@

Window size for the Savitzky-Golay filter to apply to the derivatives.

+
+
+
+ + +
+
+ + +
+
+ {{ block_data.topspin_title }} +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
nucleus
pulse program{{ block_data.pulse_program_name }}
Data shape + {{ block_data.processed_data_shape }} (d = + {{ block_data.processed_data_shape.length }}) +
probe{{ block_data.probe_name }} s
# of scans{{ block_data.nscans }}
recycle delay{{ block_data.recycle_delay }} s
carrier frequency{{ block_data.carrier_frequency_MHz }} MHz
carrier offset + {{ + (block_data.carrier_offset_Hz / block_data.carrier_frequency_MHz).toFixed(1) + }} + ppm +
cnst31{{ block_data.CNST31 }}
+
diff --git a/webapp/src/resources.js b/webapp/src/resources.js index 1274f0d99..999ee30fe 100644 --- a/webapp/src/resources.js +++ b/webapp/src/resources.js @@ -95,11 +95,16 @@ export const blockTypes = { eis: { description: "Electrochemical Impedance Spectroscopy", component: DataBlockUI, + properties: { bokehPlot: true }, name: "EIS", }, nmr: { description: "Nuclear Magnetic Resonance Spectroscopy", component: DataBlockUI, + properties: { + bokehPlot: true, + processNumber: { label: "Process number:" }, + }, name: "NMR", }, ms: { description: "Mass Spectrometry", component: DataBlockUI, name: "Mass Spectrometry" },