Avoid re-running ltspice
This commit is contained in:
parent
61b22fffdf
commit
5ce4719a1b
@ -129,9 +129,10 @@ def run_sim(script, model, mos, callback):
|
|||||||
f.write(simulations[model][1].format(simulations[model][0]))
|
f.write(simulations[model][1].format(simulations[model][0]))
|
||||||
if mos is not None: f.write(moss[mos])
|
if mos is not None: f.write(moss[mos])
|
||||||
f.write(script)
|
f.write(script)
|
||||||
# sp = os.popen("wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceXVII/XVIIx64.exe -b {}.cir -ascii"
|
if not os.path.exists(scriptname + ".raw"):
|
||||||
# .format(scriptname))
|
sp = os.popen("wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceXVII/XVIIx64.exe -b {}.cir -ascii"
|
||||||
# sp.read()
|
.format(scriptname))
|
||||||
|
sp.read()
|
||||||
l = ltspice.Ltspice(scriptname + ".raw")
|
l = ltspice.Ltspice(scriptname + ".raw")
|
||||||
l.parse()
|
l.parse()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user