Acoused: Minor change.
parent
9857615a12
commit
1fe6b6a1e1
|
|
@ -815,6 +815,7 @@ class AcousticDataTab(QWidget):
|
|||
self.fill_table()
|
||||
self.compute_tmin_tmax()
|
||||
self.compute_rmin_rmax()
|
||||
# self.compute_time_cross_section()
|
||||
self.update_frequency_combobox()
|
||||
# self.fileListWidget.itemSelectionChanged.connect(self.plot_backscattered_acoustic_signal_recording)
|
||||
# self.fileListWidget.itemSelectionChanged.connect(self.plot_profile)
|
||||
|
|
@ -825,8 +826,13 @@ class AcousticDataTab(QWidget):
|
|||
self.fileListWidget.blockSignals(False)
|
||||
|
||||
def print_selected_file(self):
|
||||
print(f"Selected file in list widget : {self.fileListWidget.selectedItems()}")
|
||||
print("self.fileListWidget.selectedItems()[1:] : ", self.fileListWidget.selectedItems()[1:])
|
||||
logger.debug(
|
||||
f"Selected file in list widget : {self.fileListWidget.selectedItems()}"
|
||||
)
|
||||
logger.debug(
|
||||
"self.fileListWidget.selectedItems()[1:] : "
|
||||
+ f"{self.fileListWidget.selectedItems()[1:]}"
|
||||
)
|
||||
if len(self.fileListWidget.selectedItems()) > self.max_selected_file:
|
||||
self.fileListWidget.setSelectionMode(1)
|
||||
|
||||
|
|
@ -1244,6 +1250,7 @@ class AcousticDataTab(QWidget):
|
|||
self.fill_table()
|
||||
|
||||
self.compute_rmin_rmax()
|
||||
self.compute_time_cross_section()
|
||||
self.compute_depth_cross_section()
|
||||
self.set_range_for_spinboxes_bathymetry()
|
||||
|
||||
|
|
@ -1448,13 +1455,6 @@ class AcousticDataTab(QWidget):
|
|||
self.fileListWidget.blockSignals(False)
|
||||
|
||||
def rename_file_in_ListWidget(self, event):
|
||||
if event == QEvent.MouseButtonPress:
|
||||
print("c'est bon")
|
||||
if event.button == Qt.RightButton:
|
||||
print("Right button clicked")
|
||||
elif event.button == Qt.LeftButton:
|
||||
print("Left button clicked")
|
||||
|
||||
if event.type() == QEvent.ContextMenu:
|
||||
menu = QMenu()
|
||||
menu.addAction('Rename')
|
||||
|
|
@ -2143,17 +2143,6 @@ class AcousticDataTab(QWidget):
|
|||
self.tableModel = TableModel(stg.DataFrame_acoustic)
|
||||
self.tableView.setModel(self.tableModel)
|
||||
|
||||
def export_table(self):
|
||||
if self.tableWidget.columnCount() == 10:
|
||||
msgBox = QMessageBox()
|
||||
msgBox.setWindowTitle("Export table Error")
|
||||
msgBox.setIcon(QMessageBox.Warning)
|
||||
msgBox.setText("Fill table before export table")
|
||||
msgBox.setStandardButtons(QMessageBox.Ok)
|
||||
msgBox.exec()
|
||||
else:
|
||||
print("export table")
|
||||
|
||||
def transect_xaxis_choice(self):
|
||||
if self.groupbox_xaxis_time.isChecked() == True:
|
||||
self.groupbox_xaxis_space.setChecked(False)
|
||||
|
|
|
|||
|
|
@ -301,7 +301,6 @@ class Ui_MainWindow(object):
|
|||
msg_box.exec()
|
||||
|
||||
def about_window(self):
|
||||
print("about")
|
||||
aw = AboutWindow()
|
||||
aw.exec()
|
||||
|
||||
|
|
@ -314,7 +313,6 @@ class Ui_MainWindow(object):
|
|||
)
|
||||
|
||||
def open_doc_file(self, filename):
|
||||
print(self.current_file_path("filename.pdf"))
|
||||
QtGui.QDesktopServices.openUrl(
|
||||
QtCore.QUrl(
|
||||
f"file://{self.current_file_path(filename)}"
|
||||
|
|
@ -335,15 +333,11 @@ class Ui_MainWindow(object):
|
|||
name = QtWidgets.QFileDialog.getExistingDirectory(
|
||||
caption="Select Directory - Acoustic BS raw data Table"
|
||||
)
|
||||
print("name table to save ", name)
|
||||
|
||||
# --- Save the raw acoustic backscatter data from a
|
||||
# --- Dataframe to csv file ---
|
||||
|
||||
t0 = time.time()
|
||||
print("len(stg.BS_raw_data_reshape) ",
|
||||
len(stg.BS_raw_data_reshape))
|
||||
|
||||
if name:
|
||||
for i in range(len(stg.BS_raw_data_reshape)):
|
||||
header_list = []
|
||||
|
|
@ -393,8 +387,7 @@ class Ui_MainWindow(object):
|
|||
)
|
||||
|
||||
t1 = time.time() - t0
|
||||
print("time duration export BS ", t1)
|
||||
print("table of BS value Export finished")
|
||||
logger.debug(f"Time duration export BS {t1}")
|
||||
|
||||
def retranslateUi(self):
|
||||
_translate = QtCore.QCoreApplication.translate
|
||||
|
|
|
|||
|
|
@ -2003,9 +2003,6 @@ class SedimentCalibrationTab(QWidget):
|
|||
bs_data = data
|
||||
break
|
||||
|
||||
print(f"{stg.depth_2D[i].shape}")
|
||||
print(f"{stg.depth_2D[i]}")
|
||||
|
||||
J_cross_section_freq1 = self.inv_hc.j_cross_section(
|
||||
BS = bs_data[i][
|
||||
stg.frequencies_for_calibration[0][1], :, :
|
||||
|
|
|
|||
|
|
@ -909,7 +909,7 @@ class SignalProcessingTab(QWidget):
|
|||
|
||||
stg.BS_stream_bed_pre_process_SNR[data_id] = np.array([])
|
||||
stg.BS_stream_bed_pre_process_average[data_id] = np.array([])
|
||||
print("stg.noise_method[data_id]", stg.noise_method[data_id])
|
||||
|
||||
if stg.noise_method[data_id] == 0:
|
||||
self.lineEdit_noise_file.clear()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue