Lenty / SLiCAP_python

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

makeNetlist doesn't work with native LTSpice in OS X #26

Closed ArthurAdmiraal closed 2 years ago

ArthurAdmiraal commented 3 years ago

Problem

makeNetlist doesn't work in OS X with native LTSpice. The Linux wine commands might work for wine users, but a significant part of the userbase will have the native version. This will fail for two reasons:

Proposed solution

In setup.py, differentiate a case for OS X and make searching for a native LTSpice the default behaviour. If it isn't found, fall back to the Linux commands. In SLiCAP.py, differentiate a case for OS X with native LTSpice. Either store whether LTSpice is native or detect from path (preferred).

ArthurAdmiraal commented 3 years ago

Sadly, the OS X LTSpice executable doesn't seem to have the same capabilities as the windows executable. Specifically, there doesn't seem to be a way to automatically generate a netlist, as mentioned here. This makes this issue significantly more difficult. The infrastructure required for #25 could be expanded to generate netlists from within SLiCAP though, which is the solution I'll be pursuing from now on.

ArthurAdmiraal commented 3 years ago

As a bonus, this has the potential to remove the LTSpice dependency.

antonmontagne commented 2 years ago

Hi Arthur, As far as I know, the mac version of LTspice doesn't support batch netlist generation. That's why it has not been implemented.