Compare commits

..

No commits in common. "f23dceb42b2a853c36fd41dbd15adb6001cc062d" and "965b222e65f446ddb0532a58244e0949d8e52ca8" have entirely different histories.

1 changed files with 7 additions and 9 deletions

View File

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