Fixed an error where the ylabel of SPL plots would be indicated as 2 micropascal

This commit is contained in:
Thijs Hekman 2024-06-26 15:05:34 +02:00
parent 35dc6885aa
commit cdc3ffb84a
2 changed files with 2 additions and 2 deletions

View File

@ -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
)

View File

@ -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")