Skip to content

'Segment' object has no attribute 'imagesequences' (neo 0.8.0) #779

@dizcza

Description

@dizcza

Dear neos,

I have a problem while filtering a block with neo 0.8.0. Previously, with neo 0.7.2, I don't have such a problem. The data is resting state if it makes any sense for you.

    fpath = os.path.join(DATA_DIR, "block_rst.pkl")
    f = neo.io.PickleIO(fpath)
    block = f.read_block()
    analog_signals = block.filter(objects="AnalogSignal")

Traceback

  File "/home/ulianych/PycharmProjects/elephant/examples/granger_example.py", line 207, in granger_example_resting_state
    analog_signals = block.filter(objects="AnalogSignal")
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 426, in filter
    children.extend(self.data_children_recur)
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/block.py", line 115, in data_children_recur
    return tuple(unique_objs(super(Block, self).data_children_recur))
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 350, in data_children_recur
    self.container_children]
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 349, in <listcomp>
    childs = [list(child.data_children_recur) for child in
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 351, in data_children_recur
    return self.data_children + tuple(sum(childs, []))
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 321, in data_children
    self._data_child_containers]
  File "/home/ulianych/anaconda3/envs/elephant/lib/python3.7/site-packages/neo/core/container.py", line 320, in <listcomp>
    childs = [list(getattr(self, attr)) for attr in
AttributeError: 'Segment' object has no attribute 'imagesequences'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions