Open luiztauffer opened 4 years ago
@luiztauffer, PlaneSegmentation
is a column that concatenates all of the individual rows into columnar data. We don't have a way to concatenate DataChunkIterators, so this won't work. I'd be surprised if someone needed to iterator over a single cell of a table like this, but if this is needed there are ways of doing it by adding the column data directly.
pynwb==1.2.1
andhdmf==1.6.0
For a
PlaneSegmentation
object, when trying toadd_roi()
using aDataChunkIterator
it raises the error:TypeError: 'DataChunk' object does not support indexing
Here's a code for reproducing it:
The
TwoPhotonSeries
data usesDataChunkIterator
and gets properly stored, if rois are not passed. Rois are properly stored not usingDataChunkIterator
.Before writing, this prints for plane_segmentations['my_planeseg'].columns[1]:
[<hdmf.data_utils.DataChunk object at 0x0000015017864470>, <hdmf.data_utils.DataChunk object at 0x00000150178646D8>, <hdmf.data_utils.DataChunk object at 0x0000015017864780>, <hdmf.data_utils.DataChunk object at 0x00000150178647B8>]
and the full error track is: