Skip to content

Commit

Permalink
Added number of connection statistics (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Jan 19, 2022
1 parent fd0ee3d commit 4daedb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bsb/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ class Statistics:
def __init__(self, scaffoldInstance):
self.scaffold = scaffoldInstance
self.cells_placed = {k: 0 for k in self.scaffold.configuration.cell_types}

@property
def connections(self):
return {cs.tag: len(cs) for cs in self.scaffold.get_connectivity_sets()}

0 comments on commit 4daedb9

Please sign in to comment.