G-Node / G-Node/nixpy

Error when saving empty list as annotation

Open
#272 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
22
Forks
29
PR merge metrics
No merged PRs in 30d

Description

```
from neo import Block, NixIO

bl = Block(empty_list=[])

with NixIO('test.nix','ow') as nio:
nio.write_block(bl)
```

results in

> File "nixpy/nixio/section.py", line 457, in __setitem__
val, [val[0].data_type]
IndexError: list index out of range

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.