Sediment calibration: Split 'read_calibration_file_and_fill_parameter'.
parent
d5d8fa026f
commit
34690264b1
|
|
@ -1641,9 +1641,10 @@ class SedimentCalibrationTab(QWidget):
|
|||
|
||||
self.compute_depth_2D()
|
||||
try:
|
||||
self.read_calibration_file_and_fill_parameter(
|
||||
parser(filename)
|
||||
)
|
||||
data = parser(filename)
|
||||
|
||||
self.fill_calibration_select_frequencies(data)
|
||||
self.fill_calibration_parameters(data)
|
||||
except Exception as e:
|
||||
logger.warning(f"read_calibration failed: {str(e)}")
|
||||
|
||||
|
|
@ -1713,7 +1714,7 @@ class SedimentCalibrationTab(QWidget):
|
|||
str('%.4f' % stg.kt_read[freq_2])
|
||||
)
|
||||
|
||||
def read_calibration_file_and_fill_parameter(self, data):
|
||||
def fill_calibration_select_frequencies(self, data):
|
||||
if stg.filename_calibration_file == "":
|
||||
return
|
||||
|
||||
|
|
@ -1757,6 +1758,7 @@ class SedimentCalibrationTab(QWidget):
|
|||
stg.calib_freq_1 = stg.frequencies_for_calibration[0][1]
|
||||
stg.calib_freq_2 = stg.frequencies_for_calibration[1][1]
|
||||
|
||||
def fill_calibration_parameters(self, data):
|
||||
self.lineEdit_ks_freq1.clear()
|
||||
self.lineEdit_ks_freq1.setText(
|
||||
str("%.5f" % float(data.iloc[0][0]))
|
||||
|
|
|
|||
Loading…
Reference in New Issue