Sediment calibration: Fix crash at open study file.
parent
41132afa90
commit
19c2ae9b7f
|
|
@ -159,8 +159,10 @@ class ReadTableForOpen:
|
||||||
stg.water_attenuation.append(
|
stg.water_attenuation.append(
|
||||||
[x[4] for x in data1]
|
[x[4] for x in data1]
|
||||||
)
|
)
|
||||||
stg.kt_read.append([x[5] for x in data1])
|
|
||||||
|
stg.kt_read = [x[5] for x in data1]
|
||||||
stg.kt_corrected = [x[6] for x in data1]
|
stg.kt_corrected = [x[6] for x in data1]
|
||||||
|
|
||||||
stg.nb_profiles.append([x[7] for x in data1])
|
stg.nb_profiles.append([x[7] for x in data1])
|
||||||
stg.nb_profiles_per_sec.append([x[8] for x in data1])
|
stg.nb_profiles_per_sec.append([x[8] for x in data1])
|
||||||
stg.nb_cells.append([x[9] for x in data1])
|
stg.nb_cells.append([x[9] for x in data1])
|
||||||
|
|
@ -176,20 +178,20 @@ class ReadTableForOpen:
|
||||||
stg.gain_tx.append([x[15] for x in data1])
|
stg.gain_tx.append([x[15] for x in data1])
|
||||||
|
|
||||||
logger.debug("measure:")
|
logger.debug("measure:")
|
||||||
logger.debug(f"- {stg.acoustic_data}")
|
logger.debug(f"- stg.acoustic_data: {stg.acoustic_data}")
|
||||||
logger.debug(f"- {stg.freq}")
|
logger.debug(f"- stg.freq {stg.freq}")
|
||||||
logger.debug(f"- {stg.water_attenuation}")
|
logger.debug(f"- stg.water_attenuation {stg.water_attenuation}")
|
||||||
logger.debug(f"- {stg.kt_read}")
|
logger.debug(f"- stg.kt_read {stg.kt_read}")
|
||||||
logger.debug(f"- {stg.kt_corrected}")
|
logger.debug(f"- stg.kt_corrected {stg.kt_corrected}")
|
||||||
logger.debug(f"- {stg.nb_profiles}")
|
logger.debug(f"- stg.nb_profiles {stg.nb_profiles}")
|
||||||
logger.debug(f"- {stg.nb_profiles_per_sec}")
|
logger.debug(f"- stg.nb_profiles_per_sec {stg.nb_profiles_per_sec}")
|
||||||
logger.debug(f"- {stg.nb_cells}")
|
logger.debug(f"- stg.nb_cells {stg.nb_cells}")
|
||||||
logger.debug(f"- {stg.cell_size}")
|
logger.debug(f"- stg.cell_size {stg.cell_size}")
|
||||||
logger.debug(f"- {stg.pulse_length}")
|
logger.debug(f"- stg.pulse_length {stg.pulse_length}")
|
||||||
logger.debug(f"- {stg.nb_pings_per_sec}")
|
logger.debug(f"- stg.nb_pings_per_sec {stg.nb_pings_per_sec}")
|
||||||
logger.debug(f"- {stg.nb_pings_averaged_per_profile}")
|
logger.debug(f"- stg.nb_pings_averaged_per_profile {stg.nb_pings_averaged_per_profile}")
|
||||||
logger.debug(f"- {stg.gain_rx}")
|
logger.debug(f"- stg.gain_rx {stg.gain_rx}")
|
||||||
logger.debug(f"- {stg.gain_tx}")
|
logger.debug(f"- stg.gain_tx {stg.gain_tx}")
|
||||||
|
|
||||||
logger.debug(f"- {stg.date}")
|
logger.debug(f"- {stg.date}")
|
||||||
logger.debug(f"- {stg.hour}")
|
logger.debug(f"- {stg.hour}")
|
||||||
|
|
|
||||||
|
|
@ -1784,10 +1784,6 @@ class SedimentCalibrationTab(QWidget):
|
||||||
)
|
)
|
||||||
|
|
||||||
def update_label_kt_value_for_calibration(self):
|
def update_label_kt_value_for_calibration(self):
|
||||||
print("self.combobox_freq1.currentIndex() ",
|
|
||||||
self.combobox_freq1.currentIndex(),
|
|
||||||
self.combobox_freq1.currentText())
|
|
||||||
|
|
||||||
freq_1 = self.combobox_freq1.currentIndex()
|
freq_1 = self.combobox_freq1.currentIndex()
|
||||||
freq_2 = self.combobox_freq2.currentIndex()
|
freq_2 = self.combobox_freq2.currentIndex()
|
||||||
|
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -99,7 +99,7 @@ class MainApplication(QMainWindow):
|
||||||
self.acoustic_data_tab,
|
self.acoustic_data_tab,
|
||||||
self.signal_processing_tab,
|
self.signal_processing_tab,
|
||||||
self.sample_data_tab,
|
self.sample_data_tab,
|
||||||
# self.sediment_calibration_tab,
|
self.sediment_calibration_tab,
|
||||||
# self.acoustic_inversion_tab,
|
# self.acoustic_inversion_tab,
|
||||||
# self.note_tab
|
# self.note_tab
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue