@@ -812,7 +812,7 @@ def save_spec(self, save_path):
812
812
self .S_stationarity_temp = None
813
813
pickle_save (save_path , self )
814
814
815
- def __store_single_spectrum (self , single_spectrum , order ):
815
+ def store_single_spectrum (self , single_spectrum , order ):
816
816
817
817
"""
818
818
Helper function to store the spectra of single frames afterwards used for calculation of errors and overlaps.
@@ -1012,9 +1012,10 @@ def fourier_coeffs_to_spectra(self, orders, a_w_all_gpu, f_max_ind, f_min_ind,
1012
1012
single_spectrum = c1 (a_w ) / self .config .delta_t / single_window .mean () / single_window .shape [0 ]
1013
1013
1014
1014
elif order == 2 :
1015
- print ('a_w_all_gpu:' , a_w_all_gpu .shape )
1016
- print (f_min_ind , f_max_ind )
1017
- a_w = af .lookup (a_w_all_gpu , af .Array (list (range (f_min_ind , f_max_ind ))), dim = 0 )
1015
+ if self .config .f_lists is None :
1016
+ a_w = af .lookup (a_w_all_gpu , af .Array (list (range (f_min_ind , f_max_ind ))), dim = 0 )
1017
+ else :
1018
+ a_w = a_w_all_gpu
1018
1019
1019
1020
if self .config .corr_data is not None :
1020
1021
a_w_all_corr = fft_r2c (window * chunk_corr_gpu , dim0 = 0 , scale = 1 )
@@ -1046,7 +1047,7 @@ def fourier_coeffs_to_spectra(self, orders, a_w_all_gpu, f_max_ind, f_min_ind,
1046
1047
1047
1048
single_spectrum = self .c4 (a_w , a_w_corr ) / (self .config .delta_t * (single_window ** order ).sum ())
1048
1049
1049
- self .__store_single_spectrum (single_spectrum , order )
1050
+ self .store_single_spectrum (single_spectrum , order )
1050
1051
1051
1052
def __prep_f_and_S_arrays (self , orders , f_all_in ):
1052
1053
"""
0 commit comments