Inversion: Excel export: Fix depth column shape and filename extention.
parent
8dd50f9373
commit
8c7c4cafbc
|
|
@ -1703,9 +1703,9 @@ class AcousticInversionTab(QWidget):
|
||||||
depth_data[k].shape[1]
|
depth_data[k].shape[1]
|
||||||
)
|
)
|
||||||
|
|
||||||
r = np.zeros((
|
r = np.zeros(
|
||||||
depth_data[k].shape[1] * time_data[k].shape[1], 1
|
depth_data[k].shape[1] * time_data[k].shape[1]
|
||||||
))
|
)
|
||||||
|
|
||||||
for i in range(time_data[k].shape[1]):
|
for i in range(time_data[k].shape[1]):
|
||||||
for j in range(depth_data[k].shape[1]):
|
for j in range(depth_data[k].shape[1]):
|
||||||
|
|
@ -1737,8 +1737,11 @@ class AcousticInversionTab(QWidget):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if os.path.splitext(filename)[1] != ".xlsx":
|
||||||
|
filename += ".xlsx"
|
||||||
|
|
||||||
with pd.ExcelWriter(
|
with pd.ExcelWriter(
|
||||||
os.path.join(dirname, filename + '.xlsx')
|
os.path.join(dirname, filename)
|
||||||
) as writer:
|
) as writer:
|
||||||
for k in range(self.combobox_acoustic_data_choice.count()):
|
for k in range(self.combobox_acoustic_data_choice.count()):
|
||||||
results[k].to_excel(
|
results[k].to_excel(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue