diff options
-rw-r--r-- | src/frontEnd/Application.py | 4 | ||||
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 3ecf9941..92013409 100644 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -188,7 +188,7 @@ class Application(QtGui.QMainWindow): self.model.triggered.connect(self.open_modelEditor) self.subcircuit = QtGui.QAction( - QtGui.QIcon('images/subckt.png'),'<b>Subcircuit</b>', self + QtGui.QIcon('images/subckt.png'), '<b>Subcircuit</b>', self ) self.subcircuit.triggered.connect(self.open_subcircuit) @@ -518,7 +518,7 @@ class Application(QtGui.QMainWindow): # Fail Safe ===> count += 1 - if count >= 100: + if count >= 10: raise Exception( "Ngspice taking too long for simulation. " "Check netlist file to change simulation parameters." diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index 8a4d746d..b47f2c38 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -255,12 +255,7 @@ class MainWindow(QtGui.QWidget): check = 0 # Opening previous value file pertaining to the selected project - fw = open( - os.path.join( - projpath, - project_name + - "_Previous_Values.xml"), - 'w') + fw = os.path.join(projpath, project_name + "_Previous_Values.xml") if check == 0: attr_parent = ET.Element("KicadtoNgspice") |