Skip to content

Commit

Permalink
hotfix prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Oct 18, 2023
1 parent 1f5b873 commit 48e29eb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bsb/placement/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ def queue(self, pool, chunk_size):
def place(self, chunk, indicators):
for indicator in indicators.values():
cell_type = indicator.cell_type
# Pass the voxelset if it exists
voxels = getattr(p, "voxelset", None)
# Guess total number, not chunk number, as entities bypass chunking.
n = sum(np.sum(indicator.guess(voxels=voxels)) for p in self.partitions)
n = sum(
# Pass the voxelset if it exists
np.sum(indicator.guess(voxels=getattr(p, "voxelset", None)))
for p in self.partitions
)
self.scaffold.create_entities(cell_type, n)

0 comments on commit 48e29eb

Please sign in to comment.