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

This commit is contained in:
parouby committed 2025-03-11 16:15:06 +01:00
1 parent 8dd50f9373
commit 8c7c4cafbc
1 file changed
+7 -4
+7 -4
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(