diff options
author | rahulp13 | 2020-02-26 16:10:58 +0530 |
---|---|---|
committer | rahulp13 | 2020-02-26 16:10:58 +0530 |
commit | 4fce8a8c01e2892b12cd194cb90ca999822eb6c5 (patch) | |
tree | ccbf2fd0f303fd8e9474c9abe7d5069d0758cf01 /src | |
parent | de3096c51107371de2361921dca8ee785e643fc3 (diff) | |
download | eSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.tar.gz eSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.tar.bz2 eSim-4fce8a8c01e2892b12cd194cb90ca999822eb6c5.zip |
minor updates
Diffstat (limited to 'src')
-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") |