Skip to content

Commit

Permalink
add return value to LtSpiceToLatex
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen-W committed Aug 8, 2022
1 parent 1203374 commit b24c71f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions LTspiceToTexConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,5 +478,9 @@ def CreateDevFromLib(name, scale=1/64):
f.write('\n\\end{document}')

f.close()
f = open(saveFile, "r")
temp = f.read()
f.close()

print('Congratulations. The run was successful.')
return temp
8 changes: 5 additions & 3 deletions simpleRun.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
fileName_input = 'Draft.asc'
print("input: ", fileName_input)

LtSpiceToLatex(filenameLTspice=fileName_input,
lt_spice_directory=os.path.expanduser(path_ltspice),
fullExample=1)
out = LtSpiceToLatex(filenameLTspice=fileName_input,
lt_spice_directory=os.path.expanduser(path_ltspice),
fullExample=1)

# print(out)

0 comments on commit b24c71f

Please sign in to comment.