asoroosh/DVARS

Recasting data type as double

parekhpravesh opened this issue · 1 comments

Hi,

When running fMRIDiag_plot, an error pops up if the data type is int16 (when demeaning the data; line 386); it would be best if the input data is recast as double type so that all processing becomes compatible. The error does not happen if the NIfTI files are read using SPM (but load_untouch_nii may return data in int16 type).

Added line below:

Y = double(Y);

Thanks for your comment.