Compare commits
2 Commits
965b222e65
...
f23dceb42b
| Author | SHA1 | Date |
|---|---|---|
|
|
f23dceb42b | |
|
|
3267ada1be |
|
|
@ -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,16 +1744,18 @@ 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[0]:
|
if name == '':
|
||||||
dirname = os.path.dirname(name[0])
|
return
|
||||||
filename = os.path.basename(name[0])
|
|
||||||
|
dirname = os.path.dirname(name)
|
||||||
|
filename = os.path.basename(name)
|
||||||
os.chdir(dirname)
|
os.chdir(dirname)
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue