For an identical python script in separate directories, in one directory it recognizes .shape as a property and np.pi as a constant, while in the other directory it recognizes .shape and np.pi as functions, which is wrong. Functions, such as np.fft.fft, are recognized in both directories.
Any advice on what could be the root of this? Why would an identical script work differently just because of the directory?
I have tried copying the file from the working directory into the non-working directory
superbadtunacan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.