Skip to content

Commit 6c2aeed

Browse files
committed
[DOC] Improving reference documentation: pytta.ImpulsiveResponse
1 parent e46a65d commit 6c2aeed

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

pytta/classes.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,7 @@ def _calc_spectrogram( self, timeData = None, overlap=0.5, winType='hann', winS
661661

662662
##%% ImpulsiveResponse class
663663
class ImpulsiveResponse(PyTTaObj):
664-
"""
665-
ImpulsiveResponse
666-
=================
667-
664+
"""
668665
This class is a container of SignalObj, intended to provide a system's
669666
impulsive response along with the excitation signal and the recorded
670667
signal used to compute the response.
@@ -687,6 +684,7 @@ class ImpulsiveResponse(PyTTaObj):
687684
688685
Creation parameters:
689686
--------------------
687+
690688
* excitation (SignalObj):
691689
The signal-like object used as excitation signal on the
692690
measurement-like object;
@@ -766,6 +764,7 @@ class ImpulsiveResponse(PyTTaObj):
766764
767765
Attributes:
768766
-----------
767+
769768
* excitation | inputSignal:
770769
Both names are valid, returns the excitation signal given as
771770
parameter at the object instantiation;

pytta/generate.py

+7-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
For further information see the specific function documentation
3232
"""
3333

34-
#%% Import modules
34+
##%% Import modules
3535
from .classes import SignalObj, RecMeasure, FRFMeasure, PlayRecMeasure
3636
from pytta import default
3737
from scipy import signal
@@ -69,7 +69,7 @@ def sin(Arms = 0.5,
6969
7070
* samplingRate (int) (optional):
7171
Nothing to say;
72-
72+
7373
"""
7474
if fftDegree != None:
7575
timeLength = 2**(fftDegree)/samplingRate
@@ -364,15 +364,15 @@ def measurement(kind = 'playrec',
364364
365365
Same as for (kind='playrec')
366366
"""
367-
#%% Default Parameters
367+
##%% Default Parameters
368368
if freqMin is None: freqMin = default.freqMin
369369
if freqMax is None: freqMax = default.freqMax
370370
if samplingRate is None: samplingRate = default.samplingRate
371371
if device is None: device = default.device
372372
if inChannel is None: inChannel = default.inChannel
373373
if outChannel is None: outChannel = default.outChannel
374374

375-
#%% Kind REC
375+
##%% Kind REC
376376
if kind in ['rec','record','recording','r']:
377377
recordObj = RecMeasure(samplingRate = samplingRate,
378378
freqMin = freqMin,
@@ -399,7 +399,7 @@ def measurement(kind = 'playrec',
399399
recordObj.fftDegree = default.fftDegree
400400
return recordObj
401401

402-
#%% Kind PLAYREC
402+
##%% Kind PLAYREC
403403
elif kind in ['playrec','playbackrecord','pr']:
404404
if ('excitation' in kwargs) or args:
405405
signalIn = kwargs.get('excitation') or args[0]
@@ -417,7 +417,7 @@ def measurement(kind = 'playrec',
417417
**kwargs)
418418
return playRecObj
419419

420-
#%% Kind FRF
420+
##%% Kind FRF
421421
elif kind in ['tf','frf','transferfunction','freqresponse']:
422422
if ('excitation' in kwargs) or args:
423423
signalIn = kwargs.get('excitation') or args[0]
@@ -434,5 +434,4 @@ def measurement(kind = 'playrec',
434434
outChannel = outChannel,
435435
**kwargs
436436
)
437-
return frfObj
438-
437+
return frfObj

0 commit comments

Comments
 (0)