-
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
Error in plot of DiskArray
after cat
#185
Comments
Maybe it's because DD is permuting the dims or something in the plot recipe, and something breaks ConcatatDiskArray inside other wrapper disk arrays? Probably editing the DD heatmap implementation to show the array type and store it to a global will help debugging |
So this may be the actual bug: julia> collect(x for x in a_disk) == collect(x for x in a_ram)
false Generators are broken on the But this works: julia> collect(x for x in parent(a_disk)) == collect(x for x in a_ram)
true Probably DimensionalData should collect arrays before passing them to Makie as a failsafe, but this also needs to be fixed here in DiskArrays. |
This is the fix if someone wants to PR it to YAX: Base.Generator(f, A::YAXArray) = Base.Generator(f, parent(A)) And we need the same in Rasters.jl. Unfortunately this is going to clash with the DimensionalData.jl |
I guess this is fixed through #198 as well. |
Plotting of a concatenated
YAXArray
returns a wrong pattern in its plot. However, everything is fine on in-memory arrays and using comparison operations (e.g.all(a .== b)
).Tested on Julia 1.10.4 with YAXArrays v0.5.10, DimensionalData v0.27.7
The text was updated successfully, but these errors were encountered: