Trying to generate the FODs was throwing this warning:
phantomas/utils/shm.py:200: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 30 but corresponding boolean dimension is 1
H[ms != 0] *= np.sqrt(2)
Probably a behaviour change in more recent numpy:
H is (#points x #sh_coef), ms is (1 x #sh_coef)
H[ms != 0] was incorrectly indexing H[ 0, (ms != 0)[0] ] instead of H[ :, (ms != 0)[0] ]
Trying to generate the FODs was throwing this warning:
phantomas/utils/shm.py:200: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 30 but corresponding boolean dimension is 1 H[ms != 0] *= np.sqrt(2)
Probably a behaviour change in more recent numpy:
H is (#points x #sh_coef), ms is (1 x #sh_coef) H[ms != 0] was incorrectly indexing H[ 0, (ms != 0)[0] ] instead of H[ :, (ms != 0)[0] ]
Also, fixed a small save path irregularity