Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hard coded int vs variable int produce different slicing results in brain object #203

Open
pmdaly opened this issue Apr 30, 2020 · 0 comments

Comments

@pmdaly
Copy link
Contributor

pmdaly commented Apr 30, 2020

Screen Shot 2020-04-29 at 6 34 43 PM

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

Screen Shot 2020-04-29 at 6 44 09 PM

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant