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

Fitting a signal #122

Open
StefaniaOliviero opened this issue Sep 21, 2022 · 0 comments
Open

Fitting a signal #122

StefaniaOliviero opened this issue Sep 21, 2022 · 0 comments

Comments

@StefaniaOliviero
Copy link

Hi, I’m @StefaniaOliviero and I'm a new user of DMIPY
I’m interested in fitting some simulated signals created in Camino (generated in .Bfloat and converted in .nii).
I'm loading the acq_scheme from Camino and I'm trying to fit by executing the commands above, using data in .Bfloat or in .nii,
but, in both the way, It does not work:

data = 'N_B_p00_g70.nii'
dataCam = 'N_B_p00_g70.Bfloat'
NODDI_fit = NODDI_mod.fit(acq_scheme_mipy, data)
Traceback (most recent call last):
File "", line 1, in
File "/home/soliviero/anaconda3/envs/env/lib/python3.8/site-packages/dmipy/core/modeling_framework.py", line 1157, in fit
S0 = np.mean(data_[..., self.scheme.b0_mask], axis=-1)
IndexError: boolean index did not match indexed array along dimension 1; dimension is 1 but corresponding boolean dimension is 273

NOTE: acquisition scheme has 273 directions
Do you have any suggestions to help me?

Best

Stefania

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

1 participant