Resolving confilct
parent
0df253d70f
commit
b84f58ca2c
|
|
@ -1802,13 +1802,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# --- Read calibration file ---
|
# --- Read calibration file ---
|
||||||
data = pd.read_csv(
|
data = pd.read_csv(os.path.join(stg.path_calibration_file, stg.filename_calibration_file), header=0, index_col=0)
|
||||||
os.path.join(
|
|
||||||
stg.path_calibration_file,
|
|
||||||
stg.filename_calibration_file
|
|
||||||
),
|
|
||||||
header=0, index_col=0
|
|
||||||
)
|
|
||||||
|
|
||||||
# --- Fill spinboxes of calibration parameter ---
|
# --- Fill spinboxes of calibration parameter ---
|
||||||
self.label_temperature.clear()
|
self.label_temperature.clear()
|
||||||
|
|
@ -2142,6 +2136,7 @@ class SedimentCalibrationTab(QWidget):
|
||||||
]
|
]
|
||||||
|
|
||||||
for i in range(self.combobox_acoustic_data_choice.count()):
|
for i in range(self.combobox_acoustic_data_choice.count()):
|
||||||
|
|
||||||
J_cross_section_freq1 = np.array([])
|
J_cross_section_freq1 = np.array([])
|
||||||
J_cross_section_freq2 = np.array([])
|
J_cross_section_freq2 = np.array([])
|
||||||
|
|
||||||
|
|
@ -2225,25 +2220,19 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.lineEdit_alphas_freq2.setText(str("%.5f" % alpha_s_freq2))
|
self.lineEdit_alphas_freq2.setText(str("%.5f" % alpha_s_freq2))
|
||||||
|
|
||||||
if (alpha_s_freq1 < 0) or (alpha_s_freq2 < 0):
|
if (alpha_s_freq1 < 0) or (alpha_s_freq2 < 0):
|
||||||
|
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
msgBox.setWindowTitle("Alpha computation error")
|
msgBox.setWindowTitle("Alpha computation error")
|
||||||
msgBox.setIconPixmap(
|
msgBox.setIconPixmap(QPixmap(self._path_icon("no_approved.png")).scaledToHeight(32, Qt.SmoothTransformation))
|
||||||
QPixmap(
|
|
||||||
self._path_icon("no_approved.png")
|
|
||||||
).scaledToHeight(32, Qt.SmoothTransformation)
|
|
||||||
)
|
|
||||||
msgBox.setText("Sediment sound attenuation is negative !")
|
msgBox.setText("Sediment sound attenuation is negative !")
|
||||||
msgBox.setStandardButtons(QMessageBox.Ok)
|
msgBox.setStandardButtons(QMessageBox.Ok)
|
||||||
msgBox.exec()
|
msgBox.exec()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
msgBox = QMessageBox()
|
msgBox = QMessageBox()
|
||||||
msgBox.setWindowTitle("Alpha computation validation")
|
msgBox.setWindowTitle("Alpha computation validation")
|
||||||
msgBox.setIconPixmap(
|
msgBox.setIconPixmap(QPixmap(self._path_icon("approved.png")).scaledToHeight(32, Qt.SmoothTransformation))
|
||||||
QPixmap(
|
|
||||||
self._path_icon("approved.png")
|
|
||||||
).scaledToHeight(32, Qt.SmoothTransformation)
|
|
||||||
)
|
|
||||||
msgBox.setText("Sediment sound attenuation is positive.")
|
msgBox.setText("Sediment sound attenuation is positive.")
|
||||||
msgBox.setStandardButtons(QMessageBox.Ok)
|
msgBox.setStandardButtons(QMessageBox.Ok)
|
||||||
msgBox.exec()
|
msgBox.exec()
|
||||||
|
|
@ -2744,3 +2733,4 @@ class SedimentCalibrationTab(QWidget):
|
||||||
self.lineEdit_slider_FCB.setText(
|
self.lineEdit_slider_FCB.setText(
|
||||||
str(stg.time[self.combobox_acoustic_data_choice.currentIndex()][
|
str(stg.time[self.combobox_acoustic_data_choice.currentIndex()][
|
||||||
self.combobox_frequency_FCB.currentIndex(), self.slider_FCB.value()-1]))
|
self.combobox_frequency_FCB.currentIndex(), self.slider_FCB.value()-1]))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue