Published August 2, 2017
| Version pyspinw_3p0
Software
Open
tsdev/spinw: pySpinW 3.0
Description
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:
- install Python 3
- install zeroMQ (MacOS use
brew install zmq
, Linux check its website for instructions) - add the Python package transplant
pip3 install transplant
- install Matlab Runtime R2017a 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 submit an issue.
Files
tsdev/spinw-pyspinw_3p0.zip
Files
(19.4 MB)
Name | Size | Download all |
---|---|---|
md5:323c2cd26367168343f44acf3212b88a
|
19.4 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/tsdev/spinw/tree/pyspinw_3p0 (URL)