supereeg
supereeg copied to clipboard
implement a __contains__ method in model/brain object
This is will allow to test for locations in model or brain object e.g.
loc = [34, -20, 50]
loc in bo # returns True if present
loc in mo # returns True if present
Don't we already have something similar with helpers._count_overlapping?
Ah, I see what you mean-- you mean adding support for the in built-in
yup, just syntactic sugar ✨
Sweet