summaryrefslogtreecommitdiff
path: root/src/kicadtoNgspice/Convert.py
diff options
context:
space:
mode:
authorfahim-oscad2016-06-07 16:02:28 +0530
committerfahim-oscad2016-06-07 16:02:28 +0530
commitdcba6eb93704e5684feb868ddfafed52a57d01e3 (patch)
treecc17cca4429afd1605dc50c8bd3982233d87fb21 /src/kicadtoNgspice/Convert.py
parentd065d4854293d2d896fbabf8fd06c31a3b7c1c24 (diff)
downloadeSim-dcba6eb93704e5684feb868ddfafed52a57d01e3.tar.gz
eSim-dcba6eb93704e5684feb868ddfafed52a57d01e3.tar.bz2
eSim-dcba6eb93704e5684feb868ddfafed52a57d01e3.zip
Modified code for Transformer as its details were not fecthing properly
Diffstat (limited to 'src/kicadtoNgspice/Convert.py')
-rw-r--r--src/kicadtoNgspice/Convert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kicadtoNgspice/Convert.py b/src/kicadtoNgspice/Convert.py
index 0454e1a5..f02435d2 100644
--- a/src/kicadtoNgspice/Convert.py
+++ b/src/kicadtoNgspice/Convert.py
@@ -219,10 +219,10 @@ class Convert:
else:
bh_array = "H_array = [-1000 -500 -375 -250 -188 -125 -63 0 63 125 188 250 375 500 1000] B_array = [-3.13e-3 -2.63e-3 -2.33e-3 -1.93e-3 -1.5e-3 -6.25e-4 -2.5e-4 0 2.5e-4 6.25e-4 1.5e-3 1.93e-3 2.33e-3 2.63e-3 3.13e-3]"
area=str(self.obj_track.model_entry_var[start+2].text())
- length=str(self.obj_track.model_entry_var[start+4].text())
+ length=str(self.obj_track.model_entry_var[start+3].text())
if area=="": area="1"
if length=="":length="0.01"
- num_turns2=str(self.obj_track.model_entry_var[start+3].text())
+ num_turns2=str(self.obj_track.model_entry_var[start+4].text())
if num_turns2=="": num_turns2="620"
addmodelLine=".model "+line[3]+"_primary lcouple (num_turns= "+num_turns+")"
modelParamValue.append([line[0],addmodelLine,"*primary lcouple"])