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

Cannot interpret float as int when using nr_verts argument #4

Open
tomfrankkirk opened this issue Aug 28, 2023 · 0 comments
Open

Cannot interpret float as int when using nr_verts argument #4

tomfrankkirk opened this issue Aug 28, 2023 · 0 comments

Comments

@tomfrankkirk
Copy link

When using the nr_verts argument to icosphere(), I get a np error that a "Float64 cannot be interpreted as an integer".

I think what is happening is that line 60 returns a float value, which is then used to define the shape of an empty array in line 119. Numpy will raise an exception when a float is used to define the shape of an array.

I changed line 61 to read nu = int(max(nu, nu_min)) and this seems to solve the issue, but I haven't tested this completely.

tomfrankkirk added a commit to tomfrankkirk/icosphere that referenced this issue Aug 30, 2023
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