Fixed the wrong ordering of the data when being exported to a .csv file.
parent
9813ab7aae
commit
7a597c32b5
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue