Fixed an error where the ylabel of SPL plots would be indicated as 2 micropascal
This commit is contained in:
parent
35dc6885aa
commit
cdc3ffb84a
@ -121,7 +121,7 @@ class SIQtys(Enum):
|
|||||||
unit_name='Pascal',
|
unit_name='Pascal',
|
||||||
unit_symb='Pa',
|
unit_symb='Pa',
|
||||||
level_unit=('dB SPL','dBPa'),
|
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),
|
level_ref_value=(P_REF, 1),
|
||||||
cpp_enum = DaqChannel.Qty.AcousticPressure
|
cpp_enum = DaqChannel.Qty.AcousticPressure
|
||||||
)
|
)
|
||||||
|
@ -1148,7 +1148,7 @@ class Measurement:
|
|||||||
raise RuntimeError("Illegal length of channelNames list given")
|
raise RuntimeError("Illegal length of channelNames list given")
|
||||||
|
|
||||||
if qtys is None:
|
if qtys is None:
|
||||||
qtys = [SIQtys.AP] * nchannels
|
qtys = [SIQtys.fromInt(1)] * nchannels # Acoustic pressure is default
|
||||||
else:
|
else:
|
||||||
if len(qtys) != nchannels:
|
if len(qtys) != nchannels:
|
||||||
raise RuntimeError("Illegal length of qtys list given")
|
raise RuntimeError("Illegal length of qtys list given")
|
||||||
|
Loading…
Reference in New Issue
Block a user