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

Problem Generating 3D Plots #276

Open
xtian26 opened this issue Jul 31, 2024 · 3 comments
Open

Problem Generating 3D Plots #276

xtian26 opened this issue Jul 31, 2024 · 3 comments

Comments

@xtian26
Copy link

xtian26 commented Jul 31, 2024

Thank you for the great work you put into TractSeg.

I was running plot_tractometry_results and I am able to produce the graphs where significant difference among subjects are along the tract.

I want to see it on a 3d plot so I tried it but it returns the following error:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (1000,) + inhomogeneous part.

I registered my images to MNI space as suggested in the documentation. I also tried changing the number of fibers, but it won't still work and would return the error. Any help would be greatly appreciated. Thanks!

image

@FHannan-UWO
Copy link

Were you able to find a solution to this problem? I am getting the same issue

@xtian26
Copy link
Author

xtian26 commented Sep 27, 2024 via email

@andy1764
Copy link

andy1764 commented Oct 4, 2024

Thanks for sharing, this was super helpful for my debugging. It turns out the --plot-3D metric flag no longer works for newer version of numpy. I downgraded from 1.26.4 to 1.23.5 and I was able to output the 3D plots. Appreciate the amazing work by the devs and this useful thread!

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

3 participants