Git Product home page Git Product logo

Comments (14)

bsrdjan avatar bsrdjan commented on August 11, 2024 1

Thanks, it works for me now, both the installation and dataset attributes reading.

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Yea anything that gives me an idea of what is going on would help; I will work on this project on the weekend(work days are loaded)

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

It's an array of variable sized strings?

from hdf5.node.

bsrdjan avatar bsrdjan commented on August 11, 2024

Thank you so much @rimmartin for your work on this module and fast response.

Please find sample data attached and the output of reading attribute with group.getDatasetAttributes:

scada/active_power
{ initial_time: '�c@\u0003\u0001',
  time_step: '�`@\u0003\u0001',
  unit: '�w@\u0003\u0001' }

scada/generator_speed
{ initial_time: '��@\u0003\u0001',
  time_step: '',
  unit: 'P�@\u0003\u0001' }

sample.zip

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Ok, we'll see over the weekend

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

It's reading from your sample.h5 now. Thanks for it. I haven't published to npm yet; you can use "hdf5": "HDF-NI/hdf5.node", in your project's package.json to pull it from github. If you need it published I'll do it in the next couple of days.

from hdf5.node.

bsrdjan avatar bsrdjan commented on August 11, 2024

Thanks @rimmartin, experimental release is just fine.

Installation works on Linux and fails on OSX, probably because of the compiler flag required for "mac":

../src/h5_file.cc:201:22: error: extra tokens at end of #ifdef directive [-Werror,-Wextra-tokens]
#ifdef  H5_VERSION_GE(1,10,0)
                     ^
                     //
1 error generated.

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

Ah that is something new I was adding for Single-Write-Multi-Read enabling for 1.10.x versions; I'll test on a mac tonight as well if it skips that code for 1.8.x version of node

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

I commented the #ifdef H5_VERSION_GE(1,10,0) segement temporarily so it should build on darwin

from hdf5.node.

bsrdjan avatar bsrdjan commented on August 11, 2024

Thank you @rimmartin . I tested and got following output on Mac now:

  CXX(target) Release/obj.target/hdf5/src/h5_group.o
  SOLINK_MODULE(target) Release/h5im.node
  SOLINK_MODULE(target) Release/h5pt.node
  SOLINK_MODULE(target) Release/h5ds.node
../src/methods.cc:581:40: error: unused variable 'idx' [-Werror,-Wunused-variable]
      hsize_t                          idx = args[0]->Int32Value();
                                       ^
../src/methods.cc:583:36: error: unused variable 'argc' [-Werror,-Wunused-variable]
      const unsigned               argc = 2;
                                   ^
2 errors generated.
make: *** [Release/obj.target/hdf5/src/methods.o] Error 1
make: *** Waiting for unfinished jobs....
../src/h5_file.cc:201:11: error: unused variable 'file' [-Werror,-Wunused-variable]
    File* file = ObjectWrap::Unwrap<File>(args.This());
          ^
1 error generated.

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

ah warnings are set to error; let me comment that out or move it within the commneted segment...

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

pushed another try

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

oh there are more ok wait ...

from hdf5.node.

rimmartin avatar rimmartin commented on August 11, 2024

ok got all three

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.