Giter VIP home page Giter VIP logo

Comments (10)

rimmartin avatar rimmartin commented on July 22, 2024

Thank you for the sample and presentation of problem. Will study it

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

It is a variable length string attribute; I'm adding support for it. Should get it over the weekend

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

Beginning to read. Have to think how to keep the difference of the string type in javascript to be able retain type when flushing back to the h5.

And i see you have array of doubles also as an attribute. I'll add more support for attributes in general including when they are arrays

from hdf5.node.

fmanso avatar fmanso commented on July 22, 2024

Great, thank you so much.

El vie., 17 jun. 2016 15:23, rimmartin [email protected] escribió:

Beginning to read. Have to think how to keep the difference of the string
type in javascript to be able retain type when flushing back to the h5.

Also i see you have array of doubles also as an attribute. I'll add more
support for attributes in general including when they are arrays


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AApF0JfdCrAJNRoogFlYkfi9zb3UMwM3ks5qMp_HgaJpZM4I3Loo
.

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

For where the type needs to be preserved I'm putting in string objects when writing and returning string objects with the type.

reading

var hdf5Group = hdf5File.openGroup("neuron_layer_0");
hdf5Group.refresh();
var type=hdf5Group.name.type;
console.dir(hdf5Group.name);

where type will be "variable-length" and name is "mflayer"

For writing

var hdf5Group = hdf5File.openGroup("neuron_layer_0");
var name=new String("mflayer");
name.type="variable-length";
hdf5Group.name=name;

Hopefully a few more evenings

from hdf5.node.

fmanso avatar fmanso commented on July 22, 2024

Looks nice, thanks !

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

There is now a test that creates an h5 with attributes similar to yours:
https://github.com/HDF-NI/hdf5.node/blob/master/test/test_attributes.js

mocha --harmony --require should --require co-mocha ./test/test_attributes.js #2> /dev/null

adding other changes and tests before publishing so you might want to clone from here. Especially if you have other as yet unsupported h5's.

from hdf5.node.

fmanso avatar fmanso commented on July 22, 2024

Thanks. I will be able to try it on next monday, but I am not sure I am going to know how to build from cloned repo. Please tell me when it is available in npm. Thanks.

from hdf5.node.

fmanso avatar fmanso commented on July 22, 2024

I managed to compile and test. It is working like a charm. Thank you !

from hdf5.node.

rimmartin avatar rimmartin commented on July 22, 2024

Oh great! I'll publish after getting a few more types handled

from hdf5.node.

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.