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

MethodError: Cannot convert an object of type CartesianIndex{3} to an object of type Int64 #233

Closed
antoine-levitt opened this issue Mar 10, 2020 · 2 comments

Comments

@antoine-levitt
Copy link
Contributor

The reproducer is a bit involved, but basically IsFiniteException only accepts Vector{Int} although indices can be more general. Solution is to just untype the indices field?

@PearsonCHEN
Copy link

Do you solve this problem yet? This error was thrown for the first time I called the function. In the second call, the error disappears. However, it happens all the time when I was debugging.

@pkofod
Copy link
Member

pkofod commented Dec 16, 2020

I untyped it. Thanks

@pkofod pkofod closed this as completed Dec 16, 2020
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

3 participants