Compare commits
No commits in common. "965b222e65f446ddb0532a58244e0949d8e52ca8" and "0e657106ce8d86c8f30cd14c25bff14765bc8a41" have entirely different histories.
965b222e65
...
0e657106ce
|
|
@ -213,7 +213,7 @@ class CreateTableForSaveAs:
|
|||
def save(self):
|
||||
start = time.time()
|
||||
self.create_table()
|
||||
logger.info(f"end : {time.time() - start} sec")
|
||||
print(f"end : {time.time() - start} sec")
|
||||
|
||||
def open_file_dialog(self):
|
||||
name, _ = QFileDialog.getSaveFileName(
|
||||
|
|
|
|||
|
|
@ -1202,32 +1202,50 @@ class AcousticDataTab(QWidget):
|
|||
msgBox.exec()
|
||||
|
||||
self.lineEdit_distance_from_ABS_to_free_surface.setText("0.00")
|
||||
return
|
||||
|
||||
def refresh_distance_from_ABS_to_free_surface(self):
|
||||
self.pushbutton_distance_from_ABS_to_free_surface.blockSignals(True)
|
||||
|
||||
data_id = self.fileListWidget.currentRow()
|
||||
|
||||
previous = stg.distance_from_ABS_to_free_surface[data_id]
|
||||
new = (
|
||||
else:
|
||||
stg.distance_from_ABS_to_free_surface[
|
||||
self.fileListWidget.currentRow()
|
||||
] = (
|
||||
float(
|
||||
self.lineEdit_distance_from_ABS_to_free_surface\
|
||||
.text().replace(",", ".")
|
||||
)
|
||||
)
|
||||
self.lineEdit_distance_from_ABS_to_free_surface.setText(f"{new}")
|
||||
|
||||
logger.debug(f"prev: {previous}, new: {new}")
|
||||
self.lineEdit_distance_from_ABS_to_free_surface.setText(
|
||||
str(
|
||||
"%4s" % stg.distance_from_ABS_to_free_surface[
|
||||
self.fileListWidget.currentRow()
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
stg.depth[data_id] = stg.depth[data_id] - previous
|
||||
stg.depth_reshape[data_id] = stg.depth_reshape[data_id] - previous
|
||||
def refresh_distance_from_ABS_to_free_surface(self):
|
||||
self.pushbutton_distance_from_ABS_to_free_surface.blockSignals(True)
|
||||
|
||||
stg.depth[data_id] = stg.depth[data_id] + new
|
||||
stg.depth_reshape[data_id] = stg.depth_reshape[data_id] + new
|
||||
if self.combobox_ABS_system_choice.currentIndex() == 1:
|
||||
acoustic_data = AcousticDataLoader(
|
||||
stg.path_BS_raw_data[self.fileListWidget.currentRow()] + "/" +
|
||||
stg.filename_BS_raw_data[self.fileListWidget.currentRow()]
|
||||
)
|
||||
elif self.combobox_ABS_system_choice.currentIndex() == 2:
|
||||
acoustic_data = AcousticDataLoaderUBSediFlow(
|
||||
stg.path_BS_raw_data[self.fileListWidget.currentRow()] + "/" +
|
||||
stg.filename_BS_raw_data[self.fileListWidget.currentRow()]
|
||||
)
|
||||
|
||||
stg.depth_cross_section[data_id] = stg.depth[data_id]
|
||||
stg.distance_from_ABS_to_free_surface[data_id] = new
|
||||
stg.depth[self.fileListWidget.currentRow()] = acoustic_data._r
|
||||
stg.depth_reshape[self.fileListWidget.currentRow()] = acoustic_data.reshape_r()
|
||||
|
||||
stg.depth[self.fileListWidget.currentRow()] = (
|
||||
stg.depth[self.fileListWidget.currentRow()] +
|
||||
stg.distance_from_ABS_to_free_surface[self.fileListWidget.currentRow()])
|
||||
|
||||
stg.depth_reshape[self.fileListWidget.currentRow()] = (
|
||||
stg.depth_reshape[self.fileListWidget.currentRow()] +
|
||||
stg.distance_from_ABS_to_free_surface[self.fileListWidget.currentRow()])
|
||||
|
||||
stg.depth_cross_section[self.fileListWidget.currentRow()] = stg.depth[self.fileListWidget.currentRow()]
|
||||
|
||||
self.fill_table()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue