mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
Corrected the error when loading the pulse duration. Added lines to print information on data when being loaded (these lines must be uncommented to become active).
This commit is contained in:
1 parent
6ea28d4dd8
commit
ab66158a60
1 file changed
+33
-2
@@ -1392,6 +1392,7 @@ class AcousticDataTab(QWidget):
|
||||
try:
|
||||
self.load_BS_acoustic_raw_data()
|
||||
except ValueError as e:
|
||||
print("Error: ", e)
|
||||
msgBox = QMessageBox()
|
||||
msgBox.setWindowTitle("Download Error")
|
||||
msgBox.setIcon(QMessageBox.Warning)
|
||||
@@ -1606,7 +1607,7 @@ class AcousticDataTab(QWidget):
|
||||
|
||||
def initiate_setting_parameters(self, acoustic_data):
|
||||
# --- The acoustic variables are field with loaded data ---
|
||||
|
||||
|
||||
stg.ABS_name.append(self.combobox_ABS_system_choice.currentText())
|
||||
stg.BS_raw_data.append(acoustic_data._BS_raw_data)
|
||||
stg.BS_raw_data_reshape.append(acoustic_data.reshape_BS_raw_data())
|
||||
@@ -1624,7 +1625,7 @@ class AcousticDataTab(QWidget):
|
||||
stg.nb_profiles_per_sec.append(acoustic_data._nb_profiles_per_sec)
|
||||
stg.nb_cells.append(acoustic_data._nb_cells)
|
||||
stg.cell_size.append(acoustic_data._cell_size)
|
||||
stg.pulse_length.append(acoustic_data._cell_size)
|
||||
stg.pulse_length.append(acoustic_data._pulse_length)
|
||||
stg.nb_pings_per_sec.append(acoustic_data._nb_pings_per_sec)
|
||||
stg.nb_pings_averaged_per_profile.append(acoustic_data._nb_pings_averaged_per_profile)
|
||||
if self.combobox_ABS_name.currentIndex() == 1:
|
||||
@@ -1635,6 +1636,36 @@ class AcousticDataTab(QWidget):
|
||||
stg.gain_tx.append(acoustic_data._gain_tx)
|
||||
stg.water_attenuation.append([])
|
||||
|
||||
'''
|
||||
# Print stuff (for debugging)
|
||||
print("type(acoustic_data._BS_raw_data) = ", type(acoustic_data._BS_raw_data) )
|
||||
print("acoustic_data._BS_raw_data.shape = ", acoustic_data._BS_raw_data.shape)
|
||||
|
||||
print("stg.BS_raw_data_reshape[-1].shape = ", stg.BS_raw_data_reshape[-1].shape)
|
||||
|
||||
print("type(acoustic_data._r) = ", type(acoustic_data._r) )
|
||||
print("acoustic_data._r.shape = ", acoustic_data._r.shape)
|
||||
|
||||
print("type(acoustic_data._time) = ", type(acoustic_data._time) )
|
||||
print("acoustic_data._time.shape = ", acoustic_data._time.shape)
|
||||
|
||||
print("type(acoustic_data._freq) = ", type(acoustic_data._freq) )
|
||||
print("acoustic_data._freq.shape = ", acoustic_data._freq.shape)
|
||||
|
||||
print("type(acoustic_data._freq_text) = ", type(acoustic_data._freq_text) )
|
||||
print("type(acoustic_data._date) = ", type(acoustic_data._date) )
|
||||
print("type(acoustic_data._hour) = ", type(acoustic_data._hour) )
|
||||
print("type(acoustic_data._nb_profiles) = ", type(acoustic_data._nb_profiles) )
|
||||
print("type(acoustic_data._nb_profiles_per_sec) = ", type(acoustic_data._nb_profiles_per_sec) )
|
||||
print("type(acoustic_data._nb_cells) = ", type(acoustic_data._nb_cells) )
|
||||
print("type(acoustic_data._cell_size) = ", type(acoustic_data._cell_size) )
|
||||
print("type(acoustic_data._pulse_length) = ", type(acoustic_data._pulse_length) )
|
||||
print("type(acoustic_data._nb_pings_per_sec) = ", type(acoustic_data._nb_pings_per_sec) )
|
||||
print("type(acoustic_data._nb_pings_averaged_per_profile) = ", type(acoustic_data._nb_pings_averaged_per_profile) )
|
||||
print("type(acoustic_data._gain_rx) = ", type(acoustic_data._gain_rx) )
|
||||
print("type(acoustic_data._gain_tx) = ", type(acoustic_data._gain_tx) )
|
||||
'''
|
||||
|
||||
self.initiate_setting_parameters_new_others()
|
||||
|
||||
def initiate_setting_parameters_new_others(self):
|
||||
|
||||
Reference in new issue
Block a user