Compare commits

...

2 Commits

1 changed files with 9 additions and 7 deletions

View File

@ -492,7 +492,7 @@ class AcousticInversionTab(QWidget):
msgBox.setWindowTitle("Alpha computation error")
msgBox.setIconPixmap(
QPixmap(
self.path_icon + "no_approved.png"
self._path_icon("no_approved.png")
).scaledToHeight(32, Qt.SmoothTransformation)
)
msgBox.setText("Sediment sound attenuation is negative !")
@ -503,7 +503,7 @@ class AcousticInversionTab(QWidget):
msgBox.setWindowTitle("Alpha computation error")
msgBox.setIconPixmap(
QPixmap(
self.path_icon + "no_approved.png"
self._path_icon("no_approved.png")
).scaledToHeight(32, Qt.SmoothTransformation)
)
msgBox.setText("Sediment sound attenuation is infinite !")
@ -1744,16 +1744,18 @@ class AcousticInversionTab(QWidget):
def save_result_in_excel_file(self):
if self.combobox_acoustic_data_choice.count() > 0:
name = QFileDialog.getSaveFileName(
name, _ = QFileDialog.getSaveFileName(
caption="Save As - Inversion results",
directory="",
filter="Excel Files (*.xlsx)",
options=QFileDialog.DontUseNativeDialog
)
if name[0]:
dirname = os.path.dirname(name[0])
filename = os.path.basename(name[0])
if name == '':
return
dirname = os.path.dirname(name)
filename = os.path.basename(name)
os.chdir(dirname)
results = []