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 estimating tensors on hcp dataset #511

Closed
gabknight opened this issue Dec 19, 2014 · 4 comments
Closed

Error estimating tensors on hcp dataset #511

gabknight opened this issue Dec 19, 2014 · 4 comments

Comments

@gabknight
Copy link
Contributor

I get the following error estimating tensors on the hcp data (mgh_1010):

Traceback (most recent call last):
  File "tenosrs.py", line 44, in <module>
    tenfit = tenmodel.fit(data[..., mask_bvals_1000])
  File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 677, in fit
    *self.args, **self.kwargs)
  File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 1113, in wls_fit_tensor
    min_signal, min_diffusivity)
  File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 1127, in _wls_iter
    min_signal = sig[sig > 0].min()
  File "/usr/lib/python2.7/dist-packages/numpy/core/_methods.py", line 14, in _amin
    out=out, keepdims=keepdims)
ValueError: zero-size array to reduction operation minimum which has no identity
@arokem
Copy link
Contributor

arokem commented Dec 19, 2014

Are you sure you are running the current master branch? A recent merge
should have fixed that.

On Fri, Dec 19, 2014 at 1:50 PM, Gabriel Girard notifications@github.com
wrote:

I get the following error estimating tensors on the hcp data (mgh_1010):

Traceback (most recent call last):
File "tenosrs.py", line 44, in
tenfit = tenmodel.fit(data[..., mask_bvals_1000])
File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 677, in fit
_self.args, *_self.kwargs)
File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 1113, in wls_fit_tensor
min_signal, min_diffusivity)
File "/home/ggirard/research/dipy/dipy/reconst/dti.py", line 1127, in _wls_iter
min_signal = sig[sig > 0].min()
File "/usr/lib/python2.7/dist-packages/numpy/core/_methods.py", line 14, in _amin
out=out, keepdims=keepdims)
ValueError: zero-size array to reduction operation minimum which has no identity


Reply to this email directly or view it on GitHub
#511.

@gabknight
Copy link
Contributor Author

I wasn't. thx. I retry it.

@gabknight
Copy link
Contributor Author

my bad. thx again. This can be close.

@arokem
Copy link
Contributor

arokem commented Dec 19, 2014

Whew. I was hoping I didn't have to go back to fix that up again. Spent so much time on it last week...

@arokem arokem closed this as completed Dec 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants