AthenaEPI / dmipy

The open source toolbox for reproducible diffusion MRI-based microstructure estimation
MIT License
96 stars 30 forks source link

Fitting a signal #122

Open StefaniaOliviero opened 1 year ago

StefaniaOliviero commented 1 year ago

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/modelingframework.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