From 7a597c32b5a0b7cd6bab0a956eeb21542282d756 Mon Sep 17 00:00:00 2001 From: Bjarne Vincent Date: Mon, 13 Oct 2025 18:27:08 +0200 Subject: [PATCH] Fixed the wrong ordering of the data when being exported to a .csv file. --- View/acoustic_inversion_tab.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/View/acoustic_inversion_tab.py b/View/acoustic_inversion_tab.py index 35f63b6..823fe03 100644 --- a/View/acoustic_inversion_tab.py +++ b/View/acoustic_inversion_tab.py @@ -1775,6 +1775,7 @@ class AcousticInversionTab(QWidget): ssc_sand = [] for k in range(self.combobox_acoustic_data_choice.count()): + if stg.time_cross_section[k].shape != (0,): time_data = stg.time_cross_section else: @@ -1785,11 +1786,12 @@ class AcousticInversionTab(QWidget): else: depth_data = stg.depth + time_shape = time_data[k].shape[1] depth_shape = depth_data[k].shape[1] d_id += np.repeat(k, depth_shape * time_shape).tolist() - + tmp_t = np.repeat( time_data[k][stg.frequency_for_inversion[1]], depth_shape @@ -1816,10 +1818,11 @@ class AcousticInversionTab(QWidget): stg.SSC_fine[k] = np.zeros(tmp_r.shape[0]) if stg.SSC_sand[k].shape == (0,): stg.SSC_sand[k] = np.zeros(tmp_r.shape[0]) + - ssc_fine += stg.SSC_fine[k].reshape(tmp_r.shape[0]).tolist() - ssc_sand += stg.SSC_sand[k].reshape(tmp_r.shape[0]).tolist() - + ssc_fine += np.reshape( stg.SSC_fine[k], tmp_r.shape[0], 'F' ).tolist() + ssc_sand += np.reshape( stg.SSC_sand[k], tmp_r.shape[0], 'F' ).tolist() + results = pd.DataFrame( { 'acoustic data': d_id,