Merge branch 'develop' of ssh://code.ascee.nl:12001/ASCEE/lasp into develop
This commit is contained in:
commit
ea14ce9699
@ -157,6 +157,14 @@ class AudioStream:
|
|||||||
return 1
|
return 1
|
||||||
self.aframectr += 1
|
self.aframectr += 1
|
||||||
|
|
||||||
|
# TODO: Fix this. This gives bug on Windows, the threading lock does
|
||||||
|
# give a strange erro.
|
||||||
|
try:
|
||||||
|
if not self.running():
|
||||||
|
return 1
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
|
||||||
rv = self.processCallback(self, indata, outdata)
|
rv = self.processCallback(self, indata, outdata)
|
||||||
if rv != 0:
|
if rv != 0:
|
||||||
self.running <<= False
|
self.running <<= False
|
||||||
|
@ -246,7 +246,7 @@ class Measurement:
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
# If quantity data is not available, this is an 'old'
|
# If quantity data is not available, this is an 'old'
|
||||||
# measurement file.
|
# measurement file.
|
||||||
logging.debug('Physical quantity data not available in measurement file. Assuming {SIQtys.default}')
|
logging.debug(f'Physical quantity data not available in measurement file. Assuming {SIQtys.default}')
|
||||||
self._qtys = [SIQtys.default for i in range(self.nchannels)]
|
self._qtys = [SIQtys.default for i in range(self.nchannels)]
|
||||||
|
|
||||||
def setAttribute(self, atrname, value):
|
def setAttribute(self, atrname, value):
|
||||||
|
@ -84,6 +84,7 @@ def smoothSpectralData(freq, M, sw: SmoothingWidth,
|
|||||||
assert Noct > 0, "'Noct' must be absolute positive"
|
assert Noct > 0, "'Noct' must be absolute positive"
|
||||||
if Noct < 1: raise Warning('Check if \'Noct\' is entered correctly')
|
if Noct < 1: raise Warning('Check if \'Noct\' is entered correctly')
|
||||||
assert len(freq)==len(M), 'f and M should have equal length'
|
assert len(freq)==len(M), 'f and M should have equal length'
|
||||||
|
|
||||||
if st == SmoothingType.ps:
|
if st == SmoothingType.ps:
|
||||||
assert np.min(M) >= 0, 'absolute magnitude M cannot be negative'
|
assert np.min(M) >= 0, 'absolute magnitude M cannot be negative'
|
||||||
if st == SmoothingType.levels and isinstance(M.dtype, complex):
|
if st == SmoothingType.levels and isinstance(M.dtype, complex):
|
||||||
|
Loading…
Reference in New Issue
Block a user