Skip to content

Releases: tsdev/spinw

pySpinW 3.0

02 Aug 09:52
Compare
Choose a tag to compare
pySpinW 3.0 Pre-release
Pre-release

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:

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.

SpinW 3.0.1

28 Apr 21:56
Compare
Choose a tag to compare

This is a stable release of SpinW 3.0.1. Download spinw3_R1376.zip and after unpacking add it to the Matlab® search path.

MATLAB® is copyright of the Mathworks.