---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-1-96a8540cfb8d> in <module>()
7
8 holo = get_example_data('image0001.yaml')
----> 9 rec_vol = propagate(holo, linspace(4e-6, 10e-6, 7))
10 hp.show(rec_vol)
/Users/bmorris/anaconda/lib/python2.7/site-packages/holopy/propagation/convolution_propagation.pyc in propagate(data, d, gradient_filter)
79 ft = np.repeat(ft[:, :, np.newaxis,...], G.shape[2], axis=2)
80
---> 81 ft = apply_trans_func(ft, G)
82
83 res = ifft(ft, overwrite=True)
/Users/bmorris/anaconda/lib/python2.7/site-packages/holopy/propagation/convolution_propagation.pyc in apply_trans_func(ft, G)
117 # broadcasts correctly
118 G = G[...,np.newaxis]
--> 119 ft[(m/2-mm):(m/2+mm),(n/2-nn):(n/2+nn)] *= G[:(mm*2),:(nn*2)]
120
121 # Transfer function may not cover the whole image, any values
IndexError: invalid slice