From 38a08a782b10c57f5e2fa2e6643f600e5bdd5700 Mon Sep 17 00:00:00 2001 From: ilkilic Date: Mon, 8 Jul 2024 16:10:16 +0200 Subject: [PATCH] support custom node set defined in simulation config --- bluecellulab/circuit/circuit_access/sonata_circuit_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluecellulab/circuit/circuit_access/sonata_circuit_access.py b/bluecellulab/circuit/circuit_access/sonata_circuit_access.py index 48ac0337..bff1c087 100644 --- a/bluecellulab/circuit/circuit_access/sonata_circuit_access.py +++ b/bluecellulab/circuit/circuit_access/sonata_circuit_access.py @@ -191,7 +191,7 @@ def is_valid_group(self, group: str) -> bool: @lru_cache(maxsize=16) def get_target_cell_ids(self, target: str) -> set[CellId]: - ids = self._circuit.nodes.ids(target) + ids = self._circuit.nodes.ids(self.config.impl.node_sets[target]) return {CellId(x.population, x.id) for x in ids} @lru_cache(maxsize=100)