mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
Inversion: Excel export: Fix depth column shape and filename extention.
This commit is contained in:
1 parent
8dd50f9373
commit
8c7c4cafbc
1 file changed
+7
-4
@@ -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(
|
||||||
|
|||||||
Reference in new issue
Block a user