How should we do tests.py
I've seen issues using tests.py on my laptop. Using a clean pull from master
I fail the test with the cached data, see trace below.
I suggest that we replace this equality with checking that they are the same with some precision. The chance of getting the same phasing to 3 or 4 significant figures by chance is surely negligible and must be down to software/hardware differences.
ctal0001@MU00101717X peyote (master) $ git pull
Enter passphrase for key '/Users/ctal0001/.ssh/id_rsa':
Already up to date.
ctal0001@MU00101717X peyote (master) $ python setup.py install
running install
running build
running build_py
copying peyote/detector.py -> build/lib/peyote
copying peyote/utils.py -> build/lib/peyote
copying peyote/likelihood.py -> build/lib/peyote
running install_lib
copying build/lib/peyote/detector.py -> /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote
copying build/lib/peyote/utils.py -> /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote
copying build/lib/peyote/likelihood.py -> /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote
byte-compiling /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote/detector.py to detector.pyc
byte-compiling /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote/utils.py to utils.pyc
byte-compiling /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote/likelihood.py to likelihood.pyc
running install_egg_info
Removing /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote-0.1-py2.7.egg-info
Writing /Users/ctal0001/anaconda2/lib/python2.7/site-packages/peyote-0.1-py2.7.egg-info
ctal0001@MU00101717X peyote (master) $ python tests.py
.F
======================================================================
FAIL: test_make_standard_data (__main__.Test)
Load in the saved standard data and compare with new data
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 46, in test_make_standard_data
all(self.msd['hf_signal_and_noise'] == hf_signal_and_noise_saved))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 2 tests in 0.073s
FAILED (failures=1)