The following function is a part of a bigger program I am working on
def separateBands(IrawFFT,phaOff,bands,fac):
phaPerBand = np.int32((bands*2)-1)
phases = np.zeros(1,phaPerBand)
for p in range(phaPerBand):
phases[p]=(2*np.pi*(p))/phaPerBand + phaOff
separate=separateBands_final(IrawFFT,phases,bands,fac)
return separate```
With `phaPerBand=3`, I expected phases to be `array([0,0,0])`. But when I run this I get the error
`IndexError: index 1 is out of bounds for axis 0 with size 1`
Because for some unknown reason I am getting `phases = array([0])`. Help me