Currently the code multiplies and then divides by 2π when generating the direction array. This unnecessary operation casts the result to float, which raises an error in np.linspace. Removing the multiply/divide keeps the original dtype from EP['dres'] which should be int.
Currently the code multiplies and then divides by 2π when generating the direction array. This unnecessary operation casts the result to float, which raises an error in
np.linspace
. Removing the multiply/divide keeps the original dtype fromEP['dres']
which should be int.