Avoid re-running ltspice

This commit is contained in:
Danila Fedorin 2021-01-14 19:57:37 -08:00
parent 61b22fffdf
commit 5ce4719a1b

View File

@ -129,9 +129,10 @@ def run_sim(script, model, mos, callback):
f.write(simulations[model][1].format(simulations[model][0]))
if mos is not None: f.write(moss[mos])
f.write(script)
# sp = os.popen("wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceXVII/XVIIx64.exe -b {}.cir -ascii"
# .format(scriptname))
# sp.read()
if not os.path.exists(scriptname + ".raw"):
sp = os.popen("wine ~/.wine/drive_c/Program\ Files/LTC/LTspiceXVII/XVIIx64.exe -b {}.cir -ascii"
.format(scriptname))
sp.read()
l = ltspice.Ltspice(scriptname + ".raw")
l.parse()