Comments (10)
Thank you for the sample and presentation of problem. Will study it
from hdf5.node.
It is a variable length string attribute; I'm adding support for it. Should get it over the weekend
from hdf5.node.
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.
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.
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.
Looks nice, thanks !
from hdf5.node.
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.
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.
I managed to compile and test. It is working like a charm. Thank you !
from hdf5.node.
Oh great! I'll publish after getting a few more types handled
from hdf5.node.
Related Issues (20)
- Support for Single Writer Multiple Reader (SWMR)? HOT 7
- Getting dataset attribute (getDatasetAttribute) on a 32 bit floating point in NODE/javascript returns a totally different value HOT 6
- hdf5_home_win does not get set HOT 2
- Read dataset with 2d array stored fails on reading chunks HOT 10
- issues reading 4 dimensional dataset HOT 2
- SyntaxError: unsupported data type on compound datasets HOT 5
- Node 12? HOT 32
- Delete attribute HOT 6
- Tutorial: "Writing & Reading subsets" is not working. HOT 3
- Segfault reading HOT 4
- issue with appending to tables on windows 10
- Error: The specified procedure could not be found. (process.dlopen) HOT 1
- `hdf5.File is not a constructor` when bundled with webpack HOT 2
- cannot install HOT 3
- Win10+Node v14.15.5 Compilation errors HOT 6
- Getting data from Buffer
- Compile Error HOT 12
- install with yarn? HOT 2
- windows-build-tools / vs2017? HOT 37
- Error with handling variable length data (H5T_VLEN) HOT 6
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 hdf5.node.