Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy function input issues #1

Open
joakimsk opened this issue Jul 1, 2023 · 0 comments
Open

numpy function input issues #1

joakimsk opened this issue Jul 1, 2023 · 0 comments

Comments

@joakimsk
Copy link

joakimsk commented Jul 1, 2023

I had issues running this with python 3.11 and numpy 1.25.0. Seems that the functions need integers but get floats due to multiplication with float. Can be fixed by casting the whole result to integer.

Line 124: stretchedGrid = np.empty((0, int(len(npGrid) * isoStretchFactor)))
Fixed: stretchedGrid = np.empty((0, int(len(npGrid * isoStretchFactor))))

Line 126: y = np.linspace(0, len(column), len(column) * isoStretchFactor) #the required samples
Fixed: y = np.linspace(0, len(column), len(column * isoStretchFactor)) #the required samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant