Skip to content

Commit

Permalink
add an example in group concept
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Herttuainen committed Feb 1, 2024
1 parent bcb921c commit a137e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bluepysnap/nodes/node_population.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
>>> nodes.ids(group={ Node.LAYER: 2}) # returns list of IDs matching layer==2
>>> nodes.ids(group={ Node.LAYER: [2, 3]}) # returns list of IDs with layer in [2,3]
>>> nodes.ids(group={ Node.X: (0, 1)}) # returns list of IDs with 0 < x < 1
>>> # returns list of IDs of biophysical node populations
>>> nodes.ids(group={ "population_type": "biophysical"})
>>> # returns list of IDs matching one of the queries inside the 'or' list
>>> nodes.ids(group={'$or': [{ Node.LAYER: [2, 3]},
>>> { Node.X: (0, 1), Node.MTYPE: 'L1_SLAC' }]})
Expand Down

0 comments on commit a137e70

Please sign in to comment.