Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using dipy_horizon #1756

guaje opened this issue Mar 7, 2019 · 2 comments · Fixed by #1814


Copy link

commented Mar 7, 2019


I'm getting the following error using dipy_horizon:

Traceback (most recent call last):
  File "/Users/guaj0/.virtualenvs/phd-dipy/bin/dipy_horizon", line 7, in <module>
    exec(compile(, __file__, 'exec'))
  File "/Users/guaj0/Work/PhD/dipy/bin/dipy_horizon", line 10, in <module>
  File "/Users/guaj0/Work/PhD/dipy/dipy/workflows/", line 91, in run_flow
  File "/Users/guaj0/Work/PhD/dipy/dipy/workflows/", line 87, in run
    out_png=pjoin(out_dir, out_stealth_png))
  File "/Users/guaj0/Work/PhD/dipy/dipy/viz/", line 515, in horizon
  File "/Users/guaj0/Work/PhD/dipy/dipy/viz/", line 224, in build_show
  File "/Users/guaj0/.virtualenvs/phd-dipy/lib/python3.7/site-packages/numpy/core/", line 32, in _amin
    return umr_minimum(a, axis, None, out, keepdims, initial)
ValueError: zero-size array to reduction operation minimum which has no identity

Using the following command:

dipy_horizon --cluster --cluster_thr 5 filename.nii.gz

I have tried that command on both MacOS and Linux (Ubuntu).

Way to reproduce

run dipy_horizon using --cluster args but use a nifti image instead of a .trk file.


This comment has been minimized.

Copy link

commented Mar 12, 2019

Thank @guaje for this report


This comment has been minimized.

Copy link

commented Mar 12, 2019

Yes, you need to provide a .trk file as input. And we need to catch the error when you do not have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.