Starts reproducing the excitation signal and recording at the same time Outputs the transferfunction ImpulsiveResponse
(self)
| 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 |
nothing calls this directly
no test coverage detected