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

Version/Attribute Issue at Template Creation (n is not an attribute of QballModel) #89

Open
ShivyaGupta14 opened this issue Jul 1, 2024 · 6 comments

Comments

@ShivyaGupta14
Copy link

Hello,

I am currently in the process of running the Template Creation Step for the dMRI Harmonization Pipeline. As part of the preparation, I executed ./pipeline_test.sh to verify that the template can be successfully created using the test data. I am using Python 3.12, and encountered some initial errors related to the get_data() function, which I resolved by updating the calls to get_fdata(). With these modifications, the script progressed smoothly and displayed the message "Template Creation Completed."

However, I encountered an error related to the QballModel. The error message indicates that "n" is not an attribute of QballModel. I attempted to use "sh_order_max" as a replacement, but this led to another error at a different line. Additionally, I attempted to use Python 3.6 to see if it would resolve the issue, but it resulted in errors related to ITK files, which were resolved when reverting to the latest Python version.

Could you please advise on the correct attribute name to replace "n" in the QballModel to ensure proper functionality?

Thank you for your assistance.

Best regards,
Shivya

Screenshot 2024-07-01 at 12 27 26 AM
@tashrifbillah
Copy link
Collaborator

tashrifbillah commented Jul 1, 2024

The error message indicates that "n" is not an attribute of QballModel

This means DIPY people have changed the arguments of their QballModel class/function.
:(

https://github.com/dipy/dipy/blob/master/dipy/reconst/shm.py#L840

@tashrifbillah
Copy link
Collaborator

Can you use dipy v1.1.1 that coincides with the time we developed this software?
https://github.com/dipy/dipy/tags?after=1.1.1

@ShivyaGupta14
Copy link
Author

ShivyaGupta14 commented Jul 1, 2024 via email

@tashrifbillah
Copy link
Collaborator

Thank you too. Were you able to install dipy v1.1.1?

@ShivyaGupta14
Copy link
Author

ShivyaGupta14 commented Jul 5, 2024 via email

@tashrifbillah
Copy link
Collaborator

Instead, I went to the QballModel function, where I changed my code according to the new code presented in that function (precisely for the value of L).

Can you tell us the change? We may be interested to adapt our program accordingly.

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