GithubHelp home page GithubHelp logo

Comments (5)

oruebel avatar oruebel commented on July 17, 2024

From the traceback it looks like this fails when it tries to read the first element of the data set data = zarr_obj[0] and it looks like the error occurs in numcodec rather than Zarr. What confuses me is the error ValueError: buffer source array is read-only, which seems to indicate that blosc wants write access even when reading from file. I'm wondering whether this may be an issue in Zarr or numcodec instead of hdmf_zarr

A couple of things to try:

  • Change the mode during reading to a instead of r to see if that fixes the issue, i.e., change this line to with BACKEND_NWB_IO[backend](path=nwbfile_path, mode="a") as io:. If that works, then I think this may be an issue in Zarr.
  • Can you also try reading the file with just Zarr, i.e,. open the file and try to read data = zarr_obj[0] from the dataset that causes the issue? If that works, another thing to try is to open with consolidated metadata (because hdmf_zarr uses consolidated metadata by default)

from hdmf-zarr.

oruebel avatar oruebel commented on July 17, 2024

@mavaylon1 can you take this from here.

from hdmf-zarr.

mavaylon1 avatar mavaylon1 commented on July 17, 2024

@oruebel I can, but I probably won't take a look till earliest end of next week. Does that fit your timeline?

from hdmf-zarr.

mavaylon1 avatar mavaylon1 commented on July 17, 2024

Possibly related: #195

from hdmf-zarr.

mavaylon1 avatar mavaylon1 commented on July 17, 2024

This seems to have been resolved by my fix and release in #195

from hdmf-zarr.

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.