31
31
For further information see the specific function documentation
32
32
"""
33
33
34
- #%% Import modules
34
+ ## %% Import modules
35
35
from .classes import SignalObj , RecMeasure , FRFMeasure , PlayRecMeasure
36
36
from pytta import default
37
37
from scipy import signal
@@ -69,7 +69,7 @@ def sin(Arms = 0.5,
69
69
70
70
* samplingRate (int) (optional):
71
71
Nothing to say;
72
-
72
+
73
73
"""
74
74
if fftDegree != None :
75
75
timeLength = 2 ** (fftDegree )/ samplingRate
@@ -364,15 +364,15 @@ def measurement(kind = 'playrec',
364
364
365
365
Same as for (kind='playrec')
366
366
"""
367
- #%% Default Parameters
367
+ ## %% Default Parameters
368
368
if freqMin is None : freqMin = default .freqMin
369
369
if freqMax is None : freqMax = default .freqMax
370
370
if samplingRate is None : samplingRate = default .samplingRate
371
371
if device is None : device = default .device
372
372
if inChannel is None : inChannel = default .inChannel
373
373
if outChannel is None : outChannel = default .outChannel
374
374
375
- #%% Kind REC
375
+ ## %% Kind REC
376
376
if kind in ['rec' ,'record' ,'recording' ,'r' ]:
377
377
recordObj = RecMeasure (samplingRate = samplingRate ,
378
378
freqMin = freqMin ,
@@ -399,7 +399,7 @@ def measurement(kind = 'playrec',
399
399
recordObj .fftDegree = default .fftDegree
400
400
return recordObj
401
401
402
- #%% Kind PLAYREC
402
+ ## %% Kind PLAYREC
403
403
elif kind in ['playrec' ,'playbackrecord' ,'pr' ]:
404
404
if ('excitation' in kwargs ) or args :
405
405
signalIn = kwargs .get ('excitation' ) or args [0 ]
@@ -417,7 +417,7 @@ def measurement(kind = 'playrec',
417
417
** kwargs )
418
418
return playRecObj
419
419
420
- #%% Kind FRF
420
+ ## %% Kind FRF
421
421
elif kind in ['tf' ,'frf' ,'transferfunction' ,'freqresponse' ]:
422
422
if ('excitation' in kwargs ) or args :
423
423
signalIn = kwargs .get ('excitation' ) or args [0 ]
@@ -434,5 +434,4 @@ def measurement(kind = 'playrec',
434
434
outChannel = outChannel ,
435
435
** kwargs
436
436
)
437
- return frfObj
438
-
437
+ return frfObj
0 commit comments