From a137e70c7505b998ae04be1dc34123930a48bd66 Mon Sep 17 00:00:00 2001 From: Joni Herttuainen Date: Thu, 1 Feb 2024 18:13:46 +0100 Subject: [PATCH] add an example in group concept --- bluepysnap/nodes/node_population.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bluepysnap/nodes/node_population.py b/bluepysnap/nodes/node_population.py index 1b503a8a..c95c97b7 100644 --- a/bluepysnap/nodes/node_population.py +++ b/bluepysnap/nodes/node_population.py @@ -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' }]})