nixpy
nixpy copied to clipboard
Python library for NIX
deads link for the examples source files. http://g-node.github.io/nixpy/tutorial.html in the `doc/source/tutorial.rst` reference is correct.
Hopefully I read the documentation thoroughly enough, but I was wondering if nix supports boolean mask ROI tagging for images? Thanks!
``` 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...
Hi Here is an example with nixio v1.3.0 import nixio as nix import numpy as np nixFile = nix.File.open('test.h5') blk = nixFile.create_block('TestBlock', 'Test') da = blk.create_data_array('TestDA', 'Test', data=np.random.rand(50)) da.unit =...
There are some inconsistencies, I believe, in sections/properties. When accessing an item from a section by key, e.g. `section['name']`, the returned value is treated differently depending whether the key is...
I've been looking into supporting string type data in DataArrays (see old issue #82). I think this is doable but there's one decision to consider and I would like some...
Look here: ``` python import nix fd = nix.File.open('test.h5', nix.FileMode.Overwrite) b = fd.create_block('b', 'notype') d = b.create_data_array('da', 'stillnotype') d = b.create_data_array('da', 'stillnotype', nix.DataType.Double, (0,0)) d[:, :] = np.ones((23, 42)) d[...]...
Id like to suggest methods which receive a value and return all sections/blocks/data_arrays that contain that value. Something like: ``` python def get_sections_by_value(value, nix_file): return nix_file.find_sections(lambda x:any([any([value in i for...