diff options
author | Fahim | 2015-09-15 14:13:43 +0530 |
---|---|---|
committer | Fahim | 2015-09-15 14:13:43 +0530 |
commit | a44c3cb65fb2103324c056c6ad8b65c486580f1a (patch) | |
tree | ee93cd51d9837a00e3ed082700382aeed9f82e57 | |
parent | f0e1cac6d736e2d80119f5380f5be8c8322d04b1 (diff) | |
download | eSim-a44c3cb65fb2103324c056c6ad8b65c486580f1a.tar.gz eSim-a44c3cb65fb2103324c056c6ad8b65c486580f1a.tar.bz2 eSim-a44c3cb65fb2103324c056c6ad8b65c486580f1a.zip |
Bug fixing for Sub circuit
-rw-r--r-- | src/kicadtoNgspice/KicadtoNgspice.py | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/src/kicadtoNgspice/KicadtoNgspice.py b/src/kicadtoNgspice/KicadtoNgspice.py index 7351138e..a3e41a5f 100644 --- a/src/kicadtoNgspice/KicadtoNgspice.py +++ b/src/kicadtoNgspice/KicadtoNgspice.py @@ -52,6 +52,14 @@ class MainWindow(QtGui.QWidget): self.kicadFile = clarg1 self.clarg1=clarg1 self.clarg2=clarg2 + + #Create object of track widget + self.obj_track = TrackWidget.TrackWidget() + + #Clear dictionary item of sub circuit + self.obj_track.subcircuitList.clear() + self.obj_track.subcircuitTrack.clear() + #Object of Processing obj_proc = PrcocessNetlist() @@ -60,7 +68,7 @@ class MainWindow(QtGui.QWidget): # Construct parameter information param = obj_proc.readParamInfo(kicadNetlist) - + # Replace parameter with values netlist,infoline = obj_proc.preprocessNetlist(kicadNetlist,param) @@ -92,14 +100,7 @@ class MainWindow(QtGui.QWidget): print "Unknown Model List",unknownModelList print "Multiple Model List",multipleModelList print "Model List",modelList - """ - args=[clarg1,clarg2] - app = QtGui.QApplication(args) - kingWindow = MainWindow() - sys.exit(app.exec_()) - """ - #Create object of track widget - self.obj_track = TrackWidget.TrackWidget() + """ Checking if any unknown model is used in schematic which is not recognized by NgSpice. Also if the two model of same name is present under modelParamXML directory @@ -146,14 +147,7 @@ class MainWindow(QtGui.QWidget): self.setLayout(self.vbox) self.setWindowTitle("Kicad To NgSpice Converter") self.show() - - """ - def closeCancel(self): - self.obj_track.modelTrack[:]=[] - self.obj_track.subcircuitList[:]=[] - self.close() - """ - + def createcreateConvertWidget(self): global obj_analysis self.convertWindow = QtGui.QWidget() |