-
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
vec(view(c, :, :, 1)) fails: reshape is restricted to adding singleton dimensions #149
Comments
|
The problem here is that this kind of view is inherently incompatible with |
What I meant was if you want to read the data anyway you could do |
Maybe the correct thing would be to overload # This happens also inside a function, that expects to work on any AbstractArray
# view is chosen, so that we can materialize/read the data as late as possible inside Makie
data = view(data_cube, :, :, 1)
# The below happens in WGLMakie serialization, since JS doesn't support Matrices.
# `vec` seems to be the ideal choice, since it best preserves the array type and can be allocation free without returning a view
vec(data) |
This is the problem, currently there is no sensible workaround. I think the only options would be to read the data (bad, because it might be large data) or to return the |
Ok, this seems to work on #146 after defining |
Instead of the full Unchunked(), this is where doing the minimum rechunking that can get sequential indices could help. |
The following fails:
any work around @rafaqz @meggart ?
The text was updated successfully, but these errors were encountered: