Skip to content

Instantly share code, notes, and snippets.

@OrkoHunter
Last active February 4, 2016 11:43
Show Gist options
  • Save OrkoHunter/3402f6ada0c26ffbb1ce to your computer and use it in GitHub Desktop.
Save OrkoHunter/3402f6ada0c26ffbb1ce to your computer and use it in GitHub Desktop.
Warnings generated in testing dipy
dipy.core.tests.test_geometry.test_sphere_cart((array(0.5), array(0.4999999999999999), array(0.7071067811865476)), array([ 0.5 , 0.5 , 0.70710678])) ... ok
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/core/geometry.py:128: RuntimeWarning: invalid value encountered in double_scalars
theta = np.arccos(z / r)
---
dipy.io.tests.test_io_gradients.test_read_bvals_bvecs ... ok
Doctest: dipy.reconst.benchmarks.bench_squash.old_squash ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/benchmarks/bench_squash.py:75: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
mask = arr != np.array(None)
ok
Doctest: dipy.reconst.cache.Cache.cache_set ... ok
---
Test the recursive response calibration method. ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/core/sphere.py:188: UserWarning: Vertices are not on the unit sphere.
warnings.warn("Vertices are not on the unit sphere.")
ok
dipy.reconst.tests.test_csdeconv.test_response_from_mask ... ok
---
dipy.reconst.tests.test_csdeconv.test_response_from_mask ... ok
dipy.reconst.tests.test_csdeconv.test_csdeconv ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/csdeconv.py:827: UserWarning: No voxel with a FA higher than 1 were found. Try a larger roi or a lower threshold.
warnings.warn(msg, UserWarning)
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/numpy/core/_methods.py:59: RuntimeWarning: Mean of empty slice.
warnings.warn("Mean of empty slice.", RuntimeWarning)
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/numpy/core/_methods.py:70: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/numpy/core/_methods.py:68: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
ok
dipy.reconst.tests.test_csdeconv.test_odfdeconv ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/csdeconv.py:314: RuntimeWarning: invalid value encountered in true_divide
odf_sh /= Z
ok
dipy.reconst.tests.test_csdeconv.test_odf_sh_to_sharp ... ok
---
dipy.reconst.tests.test_sfm.test_sfm_background ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/sfm.py:385: RuntimeWarning: divide by zero encountered in true_divide
flat_S = flat_data[..., ~self.gtab.b0s_mask] / flat_S0[..., None]
/home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/reconst/sfm.py:83: RuntimeWarning: divide by zero encountered in true_divide
to_fit = data_no_b0 / s0[..., None]
ok
dipy.reconst.tests.test_sfm.test_sfm_stick ... ok
---
dipy.reconst.tests.test_shore_odf.test_multivox_shore ... /home/travis/build/nipy/dipy/venv/lib/python3.5/site-packages/dipy/core/geometry.py:128: RuntimeWarning: invalid value encountered in true_divide
theta = np.arccos(z / r)
ok
dipy.reconst.tests.test_vec_val_vect.test_vec_val_vect ... ok
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment