Skip to content

Commit

Permalink
Fix unmanaged partitions not being laid out (#717)
Browse files Browse the repository at this point in the history
* Fixed unmanaged partitions not being included in the layout process

* Update bsb/config/_config.py
  • Loading branch information
Helveg committed May 10, 2023
1 parent 2d1d7b3 commit 66e9c7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bsb/config/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def _bootstrap(self, scaffold):
start = self.network.origin.copy()
net = self.network
end = [start[0] + net.x, start[1] + net.y, start[2] + net.z]
scaffold.topology = topology = create_topology(regions, start, end)
# If there are any partitions not part of the topology, raise an error
if unmanaged := set(self.partitions.values()) - get_partitions([topology]):
# If there are any partitions not part of the topology, add them to a group
if unmanaged := set(self.partitions.values()) - get_partitions(regions):
p = "', '".join(p.name for p in unmanaged)
r = scaffold.regions.add(
"__unmanaged__", RegionGroup(children=builtins.list(unmanaged))
)
topology.children.append(r)
regions.append(r)
scaffold.topology = create_topology(regions, start, end)

def _update_storage_node(self, storage):
if self.storage.engine != storage.format:
Expand Down

0 comments on commit 66e9c7c

Please sign in to comment.