Get started¶
First off, get yourself a functioning Python environment, I use Anaconda to manage environments and mainly work with Python 3.
Second, install SplitWavePy with the following terminal command.
pip install splitwavepy
Tip
Ensure you have the latest release.
pip install -U --no-deps splitwavepy
Now try the code.
import splitwavepy as sw
m = sw.EigenM( split=(50, 1.9), delta=0.05, noise=0.04)
m.plot()
Save your measurement to disk.
>>> m.save('temp.eigm')
Check your working directory for a file called temp.eigm. Is it there? How big is it? It should be less than 200K. It’s a backup of your measurement together with the input data. The idea is to help make reproducibility as easy as possible.
Hint
To check your file size in a Unix style operating system:
du -sh temp.eigm
Without closing your python session, load the data from the disk and check it’s the same as that on memory.
>>> n = sw.load('temp.eigm')
>>> n == m
... True
>>> n is m
... False
Try plotting n. Does it look the same as m?
If you’ve made it to here, great, you seem to have a working version of SplitWavePy.
Now check out the Tutorial.