Giter Club home page Giter Club logo

Comments (8)

timholy avatar timholy commented on May 29, 2024

Array types are definitely supported (see the examples in test/), and JLD supports saving a loading Julia types (which are compound objects). However, our support for HDF5 compound objects is still poor, largely because C structure support is still unfinished in Julia itself JuliaLang/julia#2818.

Am I correct in guessing that you have an HDF5 file written by other software that you want to read into Julia? If you can email me a small test file, I'd be happy to play with this a bit.

from hdf5.jl.

rezahousseini avatar rezahousseini commented on May 29, 2024

I sent you a small dataset

from hdf5.jl.

timholy avatar timholy commented on May 29, 2024

Thanks, got it. Indeed we don't yet support the fixed-size H5T_ARRAY type. I've looked into it a bit, and it's not entirely trivial, because Julia doesn't support fixed-size arrays. The hdf5_to_julia infrastructure might need a little reworking.

Because my ability to work on this over the next couple of weeks will be limited, I've started a branch called h5array that contains my initial efforts. If you or anyone else wants to take a stab at this, be my guest. Otherwise I'll plug away as time allows, but my guess is that not much will happen until near the end of this month. If you're up to it, it would be a great contribution.

from hdf5.jl.

timholy avatar timholy commented on May 29, 2024

The h5ex_t_array.h5 example on http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-c.html is relevant, and slightly simpler than the file you sent me (since it doesn't involve nesting array types inside a compound object).

from hdf5.jl.

rezahousseini avatar rezahousseini commented on May 29, 2024

Thanks a lot Tim. I'm not sure sure if I have the ability to proceed on this. I tried a workaround with PyCall and the python module h5py but it was unbelievable slow and couldn't handle integer conversion.

from hdf5.jl.

timholy avatar timholy commented on May 29, 2024

I fully understand. I will get to this as soon as I can. In the meantime, is there an option to convert the files to a different saving style? For example, instead of a compound type can you use 3 different variables, and instead of a fixed-size array can you use the (more common) variable-length arrays?

from hdf5.jl.

timholy avatar timholy commented on May 29, 2024

We're halfway there, see 5679103.

from hdf5.jl.

kleinhenz avatar kleinhenz commented on May 29, 2024

closed by #592.

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