GithubHelp home page GithubHelp logo

Comments (4)

rafaqz avatar rafaqz commented on July 17, 2024

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.

meggart avatar meggart commented on July 17, 2024

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.

rafaqz avatar rafaqz commented on July 17, 2024

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.

rafaqz avatar rafaqz commented on July 17, 2024

Closing, not actually a DiskArrays.jl problem

from diskarrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.