Currently the following error occurs. I believe the problem is due to this code been written for python 2.X and not working in my current version of python 3.8.3
self.zz=np.zeros(self.nhalf,'f') TypeError: 'float' object cannot be interpreted as an integer
References to self.zz and self.nhalf in the program are shown below
self.nhalf=0
self.nhalf=self.num_fft/2
self.zz=[]
self.zz=self.zz[n1:n2]
I wonder is there simple adjustment required to remove the error?
numpydocs:numpy.zeros(shape, dtype=float, order='C')shape : int or tuple of ints --/returns a float.../operator does regular division, meaning the result could be a float. If you want floor division, you can use the//operator.type(4/2). Thanks, learned something new :)4/2is2.0which gives a hint of its type ^_^