-
Notifications
You must be signed in to change notification settings - Fork 17
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
Iteration is broken with chunking #44
Comments
Ah, ok this iteration fallback is annoying. The main problem is that we should actually never have to fall back to iteration, but you are right, getting a wrong answer is bad. I will see what is possible. Maybe just throwing an error for |
We should at least throw errors to force the use if another method. If we make a branch I can test against Rasters.jl and see if anything breaks |
I dived a bit into the code and first found out that we have already implemented iteration with stateful iterators (see iterators.jl). The main reason that |
Ahh fixing I also realised Rasters.jl does use DiskArrrays.jl iteration, such as in |
Iteration seems to be broken with chunking, so when fallbacks are used by base methods you just get the wrong answer, without an error. So e.g.
Array(diskarray)
currently uses iteration, and can give the wrong result:#37 may be a partial solution to this. But maybe also good to use other methods as much as possible so the iteration fallback isn't used.
The text was updated successfully, but these errors were encountered: