MCPcopy Create free account
hub / github.com/PyTTaMaster/PyTTa / __init__

Method __init__

pytta/classes/analysis.py:955–971  ·  view source on GitHub ↗
(self, ir: SignalObj, nthOct: int = 1,
                 minFreq: float = 2e1, maxFreq: float = 2e4, *args,
                 plotLundeby: bool = False,
                 bypassLundeby: bool = False,
                 suppressWarnings: bool = True,
                 ircut: float = None, **kwargs)

Source from the content-addressed store, hash-verified

953 Rinaldi Petrolli, rinaldi.petrolli@eac.ufsm.br"""
954
955 def __init__(self, ir: SignalObj, nthOct: int = 1,
956 minFreq: float = 2e1, maxFreq: float = 2e4, *args,
957 plotLundeby: bool = False,
958 bypassLundeby: bool = False,
959 suppressWarnings: bool = True,
960 ircut: float = None, **kwargs):
961 _ir = ir.IR if type(ir) == ImpulsiveResponse else ir
962 minBand = freq_to_band(minFreq, nthOct, 1000, 10)
963 maxBand = freq_to_band(maxFreq, nthOct, 1000, 10)
964 nbands = maxBand - minBand + 1
965 super().__init__('mixed', nthOct, minFreq, maxFreq, nbands*[0], *args, **kwargs)
966 self.ir = crop_IR(_ir, ircut)
967 self._params, self.listEDC, self.fhSignal = self.estimate_energy_parameters(self.ir, self.bands, plotLundeby,
968 bypassLundeby, suppressWarnings,
969 nthOct=nthOct, minFreq=minFreq,
970 maxFreq=maxFreq)
971 return
972
973 @staticmethod
974 def estimate_energy_parameters(ir: SignalObj, bands: np.ndarray,

Callers

nothing calls this directly

Calls 4

freq_to_bandFunction · 0.90
crop_IRFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected