Skip to content

Fitting a signal #122

@StefaniaOliviero

Description

@StefaniaOliviero

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions