Inversion: Excel export: Fix depth column shape and filename extention.

dev-brahim
Pierre-Antoine 2025-03-11 16:05:50 +01:00
parent 8dd50f9373
commit 8c7c4cafbc
1 changed files with 7 additions and 4 deletions

View File

@ -1703,9 +1703,9 @@ class AcousticInversionTab(QWidget):
depth_data[k].shape[1]
)
r = np.zeros((
depth_data[k].shape[1] * time_data[k].shape[1], 1
))
r = np.zeros(
depth_data[k].shape[1] * time_data[k].shape[1]
)
for i in range(time_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(
os.path.join(dirname, filename + '.xlsx')
os.path.join(dirname, filename)
) as writer:
for k in range(self.combobox_acoustic_data_choice.count()):
results[k].to_excel(