Lenty / SLiCAP_python

Open-source version of SLiCAP, implemented in python
Other
33 stars 15 forks source link

makenetlist path finding issue #19

Closed sebas-bouw closed 2 years ago

sebas-bouw commented 3 years ago

could not open the correct ltspice file, the extension is not "asc" i am a windows 10 user, the path dash is different than Linux \ /

image

sebas-bouw commented 3 years ago

found issue, if there is only "xx.asc" file name the make netlist does not work,
but if you run ltspice--> view--> spice Netlist, and then close the window, is does work.

but does not generate a new netlist on its own (ltspice XVII(x64)

Lenty commented 3 years ago

While it is maybe not directly causing the issue, I have altered the filename to use os.path.abspath() which should make it more robust across different operating systems. In addition, I have moved from the os.system to subprocess.run in order to be more robust in the makeNetlist command.

Does the issue persist if you update your SLiCAP installation?

sebas-bouw commented 3 years ago

what is the easiest way to update the slicap installation

Lenty commented 3 years ago

Updating SLiCAP consists of two steps; updating the codebase you have locally and then re-running setup.py. This can be done in the following steps:

  1. Either do:

Or download the zip from the master by:

  1. In the updated SLiCAP_python directory run: python setup.py install --user or python setup.py install depending on whether you want to do a local installation of an installation for everyone.

If anything is unclear please do not hesistate to ask for clarification!