Skip to content

Commit

Permalink
Update bsb/simulation/targetting.py
Browse files Browse the repository at this point in the history
shortcut

Co-authored-by: Robin De Schepper <[email protected]>
  • Loading branch information
danilobenozzo and Helveg authored Dec 16, 2024
1 parent a6bd5ab commit b911b7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bsb/simulation/targetting.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ class CellTypeFilter:
only_local: bool = config.attr(type=bool, default=True)

def get_targets(self, adapter, simulation, simdata):
chunks = simdata.chunks
if not self.only_local:
chunks = None
chunks = simdata.chunks if self.only_local else None
return {
cell_name: cell_type.get_placement_set(chunks=chunks)
for cell_name, cell_type in simulation.scaffold.cell_types.items()
Expand Down

0 comments on commit b911b7a

Please sign in to comment.