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

Plot3D error #236

Open
Hmc1231 opened this issue May 1, 2023 · 1 comment
Open

Plot3D error #236

Hmc1231 opened this issue May 1, 2023 · 1 comment

Comments

@Hmc1231
Copy link

Hmc1231 commented May 1, 2023

When running Plot3D I get this error:

python3.8/site-packages/fury/utils.py:288: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
cols_arr = np.asarray(colors)

The function will run but consistently produces images where the tracts are outside of the phantom. This is despite the DWI file being registered to MNI space and using the --tck option at the tracking, tractometry and plotting stages. Im sure the .tck files line up with the mask file because I have manually checked them with Fibernavigator. This issue only started for me after the --preprocess flag was removed at the TOM stage. any advice would be greatly appreciated.

I've attached an image of what CC_1 below:

prevspost_mc_3D_CC_1_3D

@wasserth
Copy link
Collaborator

wasserth commented May 2, 2023

I would recommend not using the --preprocess flag at all. Instead do the registration to MNI space before yourself. Then only use those images in MNI space for TractSeg. Then it might work.

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