mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
Fixed the wrong ordering of the data when being exported to a .csv file.
This commit is contained in:
1 parent
9813ab7aae
commit
7a597c32b5
1 file changed
+5
-2
@@ -1775,6 +1775,7 @@ class AcousticInversionTab(QWidget):
|
|||||||
ssc_sand = []
|
ssc_sand = []
|
||||||
|
|
||||||
for k in range(self.combobox_acoustic_data_choice.count()):
|
for k in range(self.combobox_acoustic_data_choice.count()):
|
||||||
|
|
||||||
if stg.time_cross_section[k].shape != (0,):
|
if stg.time_cross_section[k].shape != (0,):
|
||||||
time_data = stg.time_cross_section
|
time_data = stg.time_cross_section
|
||||||
else:
|
else:
|
||||||
@@ -1785,6 +1786,7 @@ class AcousticInversionTab(QWidget):
|
|||||||
else:
|
else:
|
||||||
depth_data = stg.depth
|
depth_data = stg.depth
|
||||||
|
|
||||||
|
|
||||||
time_shape = time_data[k].shape[1]
|
time_shape = time_data[k].shape[1]
|
||||||
depth_shape = depth_data[k].shape[1]
|
depth_shape = depth_data[k].shape[1]
|
||||||
|
|
||||||
@@ -1817,8 +1819,9 @@ class AcousticInversionTab(QWidget):
|
|||||||
if stg.SSC_sand[k].shape == (0,):
|
if stg.SSC_sand[k].shape == (0,):
|
||||||
stg.SSC_sand[k] = np.zeros(tmp_r.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(
|
results = pd.DataFrame(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user