Compare commits

...

2 Commits

2 changed files with 17 additions and 45 deletions

View File

@ -625,7 +625,9 @@ class SignalProcessingTab(QWidget):
self.compute_average_profile_tail() self.compute_average_profile_tail()
if stg.noise_method[data_id] == 0: if stg.noise_method[data_id] == 0:
if stg.filename_BS_noise_data[data_id] != "": if stg.filename_BS_noise_data[data_id] == "":
return
if len(stg.BS_noise_raw_data) == 0: if len(stg.BS_noise_raw_data) == 0:
self.load_noise_data_and_compute_SNR() self.load_noise_data_and_compute_SNR()
else: else:
@ -920,8 +922,6 @@ class SignalProcessingTab(QWidget):
self.compute_average_profile_tail() self.compute_average_profile_tail()
logger.debug(f"stg.SNR_filter_value: {stg.SNR_filter_value}")
self.lineEdit_profile_tail_value.setText( self.lineEdit_profile_tail_value.setText(
str(stg.noise_value[data_id]) str(stg.noise_value[data_id])
) )
@ -1649,7 +1649,6 @@ class SignalProcessingTab(QWidget):
BS_data_ppa = stg.BS_raw_data_pre_process_average BS_data_ppa = stg.BS_raw_data_pre_process_average
for i in range(len(BS)): for i in range(len(BS)):
bs = BS[i] bs = BS[i]
logger.debug(f"BS data shape {bs[data_id].shape}")
if bs[data_id].shape == (0,): if bs[data_id].shape == (0,):
continue continue
@ -1658,7 +1657,6 @@ class SignalProcessingTab(QWidget):
BS_data_ppa = BS_ppa[i] BS_data_ppa = BS_ppa[i]
break break
logger.debug(f"BS_data: {BS_data[data_id].shape}")
# BS_data_ppa[data_id] = deepcopy(BS_data[data_id]) # BS_data_ppa[data_id] = deepcopy(BS_data[data_id])
# #
@ -1687,10 +1685,10 @@ class SignalProcessingTab(QWidget):
BS_data_ppa[data_id] = np.array([temp_list[0]]) BS_data_ppa[data_id] = np.array([temp_list[0]])
for j in range(stg.freq[data_id].shape[0]-1): for j in range(stg.freq[data_id].shape[0]-1):
BS_data_ppa[data_id] = np.append(BS_data_ppa[data_id], np.array([temp_list[j+1]]), axis=0) BS_data_ppa[data_id] = np.append(
BS_data_ppa[data_id],
logger.debug( np.array([temp_list[j+1]]),
f"BS_data_ppa: {BS_data_ppa[data_id].shape}" axis=0
) )
def plot_pre_processed_profile(self): def plot_pre_processed_profile(self):

View File

@ -1,41 +1,15 @@
astropy==6.1.7 astropy==6.1.7
astropy-iers-data==0.2025.3.3.0.34.45
contourpy==1.0.7
cycler==0.11.0
defusedxml==0.7.1
et-xmlfile==1.1.0
fonttools==4.38.0
importlib-resources==5.12.0
joblib==1.2.0
kiwisolver==1.4.4
llvmlite==0.39.1
matplotlib==3.6.3 matplotlib==3.6.3
numba==0.56.4 numba==0.56.4
numpy==1.23.5 numpy==1.23.5
odfpy==1.4.1
openpyxl==3.0.10
packaging==23.0
pandas==1.5.3 pandas==1.5.3
Pillow==9.4.0
profilehooks==1.12.0
pyerfa==2.0.1.5
pyparsing==3.0.9
pyqt-checkbox-table-widget==0.0.14
pyqt-file-list-widget==0.0.1
pyqt-files-already-exists-dialog==0.0.1
pyqt-tooltip-list-widget==0.0.1
PyQt5==5.15.9 PyQt5==5.15.9
PyQt5-Qt5==5.15.2 PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.0 PyQt5-sip==12.11.0
python-dateutil==2.8.2 python-dateutil==2.8.2
pytz==2022.7.1
PyYAML==6.0.2
scikit-learn==1.2.1 scikit-learn==1.2.1
scipy==1.10.0 scipy==1.10.0
simplePyQt5==0.0.1 odfpy==1.4.1
six==1.16.0 openpyxl==3.0.10
threadpoolctl==3.1.0 pyinstaller==6.12.0
utm==0.7.0 pyqt_file_list_widget==0.0.1
xlrd==2.0.1
xmltodict==0.13.0
zipp==3.15.0