summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Model.py
diff options
context:
space:
mode:
authorFahim2015-07-28 10:04:11 +0530
committerFahim2015-07-28 10:04:11 +0530
commit1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36 (patch)
treefb80c62ab8d751631a7cde77c4fdbfe6c26ec02c /src/kicadtoNgspice/Model.py
parent87c8704e95e25ee5070d22b51ca50cca51b5e9f7 (diff)
parenta0a17b4f1f11dfac201a6d660cbb94eac1cfc4a4 (diff)
downloadeSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.gz
eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.tar.bz2
eSim-1c21a0ad49a75671a9fd775463ab6e6e6f3a8e36.zip
Merge pull request #43 from FOSSEE-Manipal/master
Kicad to NgSpice conversion window opens in Dock area and other changes
Diffstat (limited to 'src/kicadtoNgspice/Model.py')
-rw-r--r--src/kicadtoNgspice/Model.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/kicadtoNgspice/Model.py b/src/kicadtoNgspice/Model.py
index d1edd5a6..c7ca7b47 100644
--- a/src/kicadtoNgspice/Model.py
+++ b/src/kicadtoNgspice/Model.py
@@ -13,12 +13,12 @@ class Model(QtGui.QWidget):
The widgets are created dynamically in the Model Tab.
"""
- def __init__(self,schematicInfo,modelList):
+ def __init__(self,schematicInfo,modelList,clarg1):
QtGui.QWidget.__init__(self)
#Processing for getting previous values
- kicadFile = sys.argv[1]
+ kicadFile = clarg1
(projpath,filename)=os.path.split(kicadFile)
project_name=os.path.basename(projpath)
#print "PROJECT NAME---------",project_name
@@ -125,7 +125,14 @@ class Model(QtGui.QWidget):
'''
#This keeps the track of Model Tab Widget
- self.obj_trac.modelTrack.append([line[0],line[1],line[2],line[3],line[4],line[5],line[6],self.start,self.end,tag_dict])
+ lst=[line[0],line[1],line[2],line[3],line[4],line[5],line[6],self.start,self.end,tag_dict]
+ check=0
+ for itr in self.obj_trac.modelTrack:
+ if itr==lst:
+ check=1
+
+ if check==0:
+ self.obj_trac.modelTrack.append(lst)
print "The tag dictionary : ",tag_dict