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

Method run

pytta/classes/measurement.py:805–836  ·  view source on GitHub ↗

Starts reproducing the excitation signal and recording at the same time Outputs the transferfunction ImpulsiveResponse

(self)

Source from the content-addressed store, hash-verified

803 pass
804
805 def run(self):
806 """
807 Starts reproducing the excitation signal and recording at the same time
808 Outputs the transferfunction ImpulsiveResponse
809 """
810 # Code snippet to guarantee that generated object name is
811 # the declared at global scope
812 # for frame, line in traceback.walk_stack(None):
813 for framenline in traceback.walk_stack(None):
814 # varnames = frame.f_code.co_varnames
815 varnames = framenline[0].f_code.co_varnames
816 if varnames == ():
817 break
818 # creation_file, creation_line, creation_function, \
819 # creation_text = \
820 extracted_text = \
821 traceback.extract_stack(framenline[0], 1)[0]
822 # traceback.extract_stack(frame, 1)[0]
823 # creation_name = creation_text.split("=")[0].strip()
824 creation_name = extracted_text[3].split("=")[0].strip()
825
826 recording = super().run()
827 transferfunction = ImpulsiveResponse(self.excitation,
828 recording,
829 self.method,
830 self.winType,
831 self.winSize,
832 self.overlap,
833 self.regularization)
834 transferfunction.timeStamp = recording.timeStamp
835 transferfunction.creation_name = creation_name
836 return transferfunction
837
838
839# Sub functions

Callers

nothing calls this directly

Calls 3

ImpulsiveResponseClass · 0.90
splitMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected