BlueBrain / snap

The Blue Brain Pythonic Simulation and Network Analysis Productivity layer
https://bluebrainsnap.readthedocs.io/
GNU Lesser General Public License v3.0
19 stars 10 forks source link

`get` and `ids` functions do not work with tuples #256

Closed joni-herttuainen closed 9 months ago

joni-herttuainen commented 9 months ago

Did not test with Edges/EdgePopulation but I would assume the issue is the same as with Nodes/NodePopulation:

>>> circuit.nodes['sscx_neurons'].ids({'region': ['mc2_Column', 'mc3_Column']})
array([     0,      2,      7, ..., 163519, 163521, 163523])

>>> circuit.nodes['sscx_neurons'].ids({'region': ('mc2_Column', 'mc3_Column')})
array([], dtype=int64)

I am unsure if we explicitly specify that the input for OR needs to be given as a list but I'd expect it to work with other iterables, too.