Slicing a brain object with an int variable produces an empty brain object (no elecs, no data).
Slicing a brain object with an int variable wrapped in a list returns the correct brain object.
Slicing a brain object with an int returns the correct brain object.
the left pane shows a debugging breakpoint ("import ipdb; ipdb.set_trace()") but on the right pane you can see when the slicing is run, it doesn't trigger the breakpoint so it must be bypassing the method
Slicing a brain object with an int variable produces an empty brain object (no elecs, no data). Slicing a brain object with an int variable wrapped in a list returns the correct brain object. Slicing a brain object with an int returns the correct brain object.
__get_item__ method calls get_slice https://github.com/ContextLab/supereeg/blob/master/supereeg/brain.py#L325
which seems to wrap the int in a list
the left pane shows a debugging breakpoint ("import ipdb; ipdb.set_trace()") but on the right pane you can see when the slicing is run, it doesn't trigger the breakpoint so it must be bypassing the method