Comments (4)
Ahh no, this is when the generic method is used on a wrapper array type.
It's annoying that we have to handle this in all wrappers by explicitly forwarding show
.
from diskarrays.jl.
Yes, I find this annoying as well indeed. I have no idea how to solve this though as long as there are no Array traits that are accepted by show
for Abstract Arrays in Julia Base. Do you happen to know how the gpu people are solving this when dealing e.g. with CuArrays? They should have pretty slow random access as well (but probably not as slow as compressed arrays on disk/in the cloud).
from diskarrays.jl.
Yeah we should look at what CuArrays do. Since they have allowscalar
too they would have to avoid that error somehow on show?
Thats how I found this, setting DiskArrays.allowscalar(false)
means show
breaks if you have e.g. a vector of wrapped disk arrays.
I'll handle it in Rasters.jl by adding show
without MIME and checking if the parent array is disk based. But automatically forwarding a trait to parent would be best long term, somehow or other.
from diskarrays.jl.
Closing, not actually a DiskArrays.jl problem
from diskarrays.jl.
Related Issues (20)
- optimization for var[:,:,[1,2]], wrong result with indexing with two vectors and the type-stability issue HOT 22
- `cat` should work for iterators of Ints
- Very slow performance indexing into netcdf with a vector HOT 1
- Don't load whole chunk when you don't need to, e.g. with NetCDF HOT 7
- Indxing type stability HOT 5
- Indexing with vectors can give the wrong result HOT 1
- Remove length from Stateful Iterators HOT 3
- map is broken, includeing missing collect_similar for DiskGenerator HOT 3
- vec(view(c, :, :, 1)) fails: reshape is restricted to adding singleton dimensions HOT 7
- NetCDF tests fail on DiskArray main HOT 1
- Indexing with not enough dimensions does not error HOT 2
- Add a lazy `stack` method HOT 1
- @assume_effects :removable breaks compilation on Julia 1.9. HOT 5
- ArchGDAL tests on julia 1.6 fail because `@kwdef` is not defined HOT 9
- Profile inference for DiskArrays indexing and other tasks. HOT 2
- numind and CartesianIndex HOT 1
- copyto! fails when one of the axes has a zero length index
- `setindex_disk_nobatch!` writes `undef` values for `StepRange` indices
- `zip` triggers lots of invalidations HOT 7
- Add `IntvertibleBroadcastDiskArray`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diskarrays.jl.