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]))
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user