def series_fft(exp_num): fft_test = ProcessSignal(f'{exp_num}') types = fft_test.read_type_file() csv_signals = types['signal_files'] #csv_signals = ['str097.csv'] csv_signal_nums = types['signal_nums'] excel_results = fft_test.read_excel(csv_signal_nums)['numbers'] noise_nums = excel_results['noise'] #magnetron_nums = excel_results['magnetron'] magnetron_nums = [f'{i:03d}' for i in range(131, 187, 1)] print('Magnetron nums are', magnetron_nums) print('Noise nums are:', noise_nums) fft_test.part_fft(csv_signals, interest_nums=magnetron_nums, part_nums=noise_nums, fft_type='full', block_full=False, block_part=False, peak=True, noise=False)
def single_signal_defpart_fft(): fft_test = ProcessSignal('210302', series_meas=False) csv_file = fft_test.csv_files() csv_num = csv_file[0][0:-4] fft_test.part_fft(csv_file, interest_nums=csv_num, part_nums=csv_num, fft_type='part')