File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
modelica_fmi/src/modelica_fmi/gui Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 1- from PySide6 .QtWidgets import QDialog , QFileDialog , QMessageBox
2- from PySide6 .QtCore import QSettings
1+ from PySide6 .QtWidgets import QDialog , QFileDialog
32from modelica_fmi .gui .generated .ImportDialog import Ui_ImportDialog
4- from modelica_fmi .import_fmu_to_modelica import import_fmu_to_modelica
53
64
75class ImportDialog (QDialog ):
@@ -32,18 +30,3 @@ def selectModelPath(self):
3230 )
3331 if filename :
3432 self .ui .modelPathLineEdit .setText (filename )
35-
36- def importFMU (self ):
37- settings = QSettings ()
38- settings .setValue ("fmuPath" , self .ui .fmuPathLineEdit .text ())
39- settings .setValue ("modelPath" , self .ui .modelPathLineEdit .text ())
40-
41- try :
42- import_fmu_to_modelica (
43- fmu_path = self .ui .fmuPathLineEdit .text (),
44- model_path = self .ui .modelPathLineEdit .text (),
45- basic = self .ui .basicCheckBox .isChecked (),
46- hide_connectors = self .ui .hideConnectorsCheckBox .isChecked (),
47- )
48- except Exception as ex :
49- QMessageBox .critical (self , "Failed to import FMU" , str (ex ))
You can’t perform that action at this time.
0 commit comments