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
+7
-4
@@ -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,11 +1786,12 @@ 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]
|
||||||
|
|
||||||
d_id += np.repeat(k, depth_shape * time_shape).tolist()
|
d_id += np.repeat(k, depth_shape * time_shape).tolist()
|
||||||
|
|
||||||
tmp_t = np.repeat(
|
tmp_t = np.repeat(
|
||||||
time_data[k][stg.frequency_for_inversion[1]],
|
time_data[k][stg.frequency_for_inversion[1]],
|
||||||
depth_shape
|
depth_shape
|
||||||
@@ -1816,10 +1818,11 @@ class AcousticInversionTab(QWidget):
|
|||||||
stg.SSC_fine[k] = np.zeros(tmp_r.shape[0])
|
stg.SSC_fine[k] = np.zeros(tmp_r.shape[0])
|
||||||
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_fine += np.reshape( stg.SSC_fine[k], tmp_r.shape[0], 'F' ).tolist()
|
||||||
ssc_sand += stg.SSC_sand[k].reshape(tmp_r.shape[0]).tolist()
|
ssc_sand += np.reshape( stg.SSC_sand[k], tmp_r.shape[0], 'F' ).tolist()
|
||||||
|
|
||||||
results = pd.DataFrame(
|
results = pd.DataFrame(
|
||||||
{
|
{
|
||||||
'acoustic data': d_id,
|
'acoustic data': d_id,
|
||||||
|
|||||||
Reference in new issue
Block a user