Software Open Access
Use these executables to call SpinW from Python without MATLAB license. Windows version is under development. Some functionality of the original code might be missing.
To use these files you will need to do the following:
brew install zmq, Linux check its website for instructions)
pip3 install transplant
Now in Python you can call the pySpinW executable:
from transplant import Matlab m = Matlab(executable='full path to pyspinw.sh') m.disp('Hello World') tri = m.sw_model('triAF',1.) tri.plot() m.waitforgui()
The waitforgui() function enables interaction with Matlab figures. If you have problems or question submit an issue.