Skip to content

[Bug]: Appending to ElectrodesTable in Zarr #268

Open
@oruebel

Description

@oruebel

What happened?

This issue was originally raised on PyNWB here NeurodataWithoutBorders/pynwb#2055 (comment) by @FrancescoNegri

I would like to reopen this issue as we switched to the zarr backend @stephprince.

In that case, according to my understanding, there is no maxshape attribute to edit. The append_data function in data_utils.py called by add_electrode works by appending a new row to the data object of type ZarrArray (the dataset to modify). Unluckily, data.read_only is set to True, even if I opened the .nwb file with mode="r+".

I double checked the same ZarrArray by opening it via the zarr module and read_only == False, making the dataset editable. Is this behaviour expected? Is there a workaround I could exploit to add new electrodes to an existing electrode table?

Thanks in advance to everyone!

Steps to Reproduce

See https://github.com/NeurodataWithoutBorders/pynwb/issues/2055

Traceback

None

Operating System

macOS

Python Version

3.13

Package Versions

No response

Metadata

Metadata

Assignees

Labels

category: bugerrors in the code or code behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions