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 CSD model on data #1405

Closed
cbinhb opened this issue Jan 25, 2018 · 8 comments
Closed

Error using CSD model on data #1405

cbinhb opened this issue Jan 25, 2018 · 8 comments

Comments

@cbinhb
Copy link

cbinhb commented Jan 25, 2018

A bit new to using DiPy with fibertracking but keep getting this error when trying to use the CSD model on my data. Any clues as to what might be wrong?

/ifshome/cboyle/anaconda3/lib/python3.6/site-packages/dipy/reconst/csdeconv.py:130: UserWarning: Number of parameters required for the fit are more than the actual data points
warnings.warn(msg, UserWarning)

@arokem
Copy link
Contributor

arokem commented Jan 25, 2018 via email

@cbinhb
Copy link
Author

cbinhb commented Jan 25, 2018

Actually I think it was causing a problem when I used this line first (from the Dipy examples for CSD to calibrate response/ratio etc) and in turn used "response" in my csd_fit line.

response, ratio = auto_response(gtab, data, roi_radius=10, fa_thr=0.7)

It's indicating the "parameters" or arguments for the function are too many correct? So took "response" out of my CSD equation. Does this make sense?

You did give me some information I need with regard to sh_order since I wasn't sure what that was. How do you specify the default since I do have 45 (HARDI) directions?

@cbinhb
Copy link
Author

cbinhb commented Jan 25, 2018

it does give me error saying sh_order must be an even number when I try 45. Maybe it's 46?

@cbinhb
Copy link
Author

cbinhb commented Jan 25, 2018

The documentation is a bit confusing.

@cbinhb
Copy link
Author

cbinhb commented Jan 25, 2018

oops maybe you were right - getting the error again. My data has 46 directions, what should my csd_model equation have as parameters?

@cbinhb
Copy link
Author

cbinhb commented Jan 26, 2018

ok! reduced sh_order to 4 and it worked. I obviously need to figure out what SH number should be but for now I'm good. Thank you!

@arokem arokem closed this as completed Jan 26, 2018
@arokem
Copy link
Contributor

arokem commented Jan 26, 2018 via email

@cbinhb
Copy link
Author

cbinhb commented Jan 26, 2018 via email

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