Bugfix: exportAsWave() normalization failed when dtypes of data and maxabs were different
This commit is contained in:
parent
0d6d72fb35
commit
4db90e3885
@ -654,7 +654,7 @@ class Measurement:
|
||||
if normalize:
|
||||
# Scale back to maximum of absolute value
|
||||
maxabs = np.max(np.abs(data))
|
||||
data /= maxabs
|
||||
data = data / maxabs # "data /= maxabs" fails if dtpyes differ
|
||||
|
||||
if newsampwidth is not None:
|
||||
# Convert to floats, then to new sample width
|
||||
|
Loading…
Reference in New Issue
Block a user