Code Monkey home page Code Monkey logo

Comments (4)

mcabbott avatar mcabbott commented on June 3, 2024

It does try to get only the values to be printed (or a few more), in the making of fakearray here:
https://github.com/mcabbott/AxisKeys.jl/blob/master/src/show.jl#L80-L103
Do you think it ought to be further restricted somehow? Can it detect when this is or isn't going to be a problem?

from axiskeys.jl.

maxfreu avatar maxfreu commented on June 3, 2024

I typed so much text and now it jumped at me:
https://github.com/mcabbott/AxisKeys.jl/blob/master/src/show.jl#L84
is missing a size(A,2)-...! So it tries to get almost eeeeeverything along dim 2 ;-)

Also ind1 is one larger than h for even h I think, but thats maybe not so important.

from axiskeys.jl.

mcabbott avatar mcabbott commented on June 3, 2024

Oh well spotted, sorry about that. The intent was there!

from axiskeys.jl.

maxfreu avatar maxfreu commented on June 3, 2024

Hmmm something more is fishy here. I fixed it locally, but still get OOM errors. Probably the underlying driver is trying to load all the data in, since everything is bundled in one getindex call. So maybe one could split it up into four calls manually and reassemble it.

Seems like array accesses have to be contiguous for GDAL: vrt[[1,2],[1,2],:] works, but vrt[[1,end],[1,end],:] doesn't (where vrt is some large ArchGDAL.RasterDataset).

from axiskeys.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.