From cdc3ffb84adef143e694515df1fc12d47d571039 Mon Sep 17 00:00:00 2001 From: Thijs Hekman Date: Wed, 26 Jun 2024 15:05:34 +0200 Subject: [PATCH] Fixed an error where the ylabel of SPL plots would be indicated as 2 micropascal --- python_src/lasp/lasp_common.py | 2 +- python_src/lasp/lasp_measurement.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python_src/lasp/lasp_common.py b/python_src/lasp/lasp_common.py index c0c69ba..7a018fd 100644 --- a/python_src/lasp/lasp_common.py +++ b/python_src/lasp/lasp_common.py @@ -121,7 +121,7 @@ class SIQtys(Enum): unit_name='Pascal', unit_symb='Pa', level_unit=('dB SPL','dBPa'), - level_ref_name=('2 micropascal', '1 pascal',), + level_ref_name=('20 micropascal', '1 pascal',), level_ref_value=(P_REF, 1), cpp_enum = DaqChannel.Qty.AcousticPressure ) diff --git a/python_src/lasp/lasp_measurement.py b/python_src/lasp/lasp_measurement.py index 9fb3614..c4cb4be 100644 --- a/python_src/lasp/lasp_measurement.py +++ b/python_src/lasp/lasp_measurement.py @@ -1148,7 +1148,7 @@ class Measurement: raise RuntimeError("Illegal length of channelNames list given") if qtys is None: - qtys = [SIQtys.AP] * nchannels + qtys = [SIQtys.fromInt(1)] * nchannels # Acoustic pressure is default else: if len(qtys) != nchannels: raise RuntimeError("Illegal length of qtys list given")