Commit 7e86880a authored by sfritschi's avatar sfritschi
Browse files

Correct counting of throatsLeft

parent e07a1ae8
......@@ -872,13 +872,11 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
for cpore in copies[pore]:
cellList.expel(cpore)
throatCount = 0
# Copy throats back to original pores and update #throats left
# and compute remaining (reduced) pores
nextPores = []
for pore in poresRemain:
poreTtbr = ttbrs[pore.index]
throatCount += len(poreTtbr)
pore.throats = poreTtbr.copy()
if len(poreTtbr) > 0:
......@@ -897,11 +895,11 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
displs = [0]
displs += accumulate(loads)
throatsLeft = throatCount // 2
throatsLeft = totalThroats - len(throats)
iterCount += 1
# Unrealized throats
nunrealized = totalThroats - len(throats)
nunrealized = throatsLeft
# Free memory associated with cellList (not needed anymore)
del cellList
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment