Releases: tsdev/spinw
Releases · tsdev/spinw
pySpinW 3.0
Use these executables to call SpinW from Python without MATLAB® license. Some functionality of the original code might be missing.
To use these files you will need to do the following (MacOs, Linux):
- install Python 3
- install zeroMQ (MacOS use
brew install zmq
, Linux check its website for instructions) - add the Python package transplant
pip3 install git+https://github.com/bastibe/transplant.git
- install Matlab Runtime R2017a from here: https://www.mathworks.com/products/compiler/mcr.html
To use these files in Windows do the following:
- install Anaconda (for Python 3 from here: https://www.continuum.io/downloads)
- install zeroMQ (binary from here: http://zeromq.org/intro:get-the-software)
- add the Python package transplant in Anaconda Command Line
pip install git+https://github.com/bastibe/transplant.git
- install Matlab Runtime R2016b from here: https://www.mathworks.com/products/compiler/mcr.html
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 check first the GitHub page of Transplant or submit an issue here.
MATLAB® is copyright of the Mathworks.