Commit 8dba1790 authored by sfritschi's avatar sfritschi
Browse files

minor fix

parent b3e3f720
...@@ -926,8 +926,7 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \ ...@@ -926,8 +926,7 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
# Expensive: Find alternative (multiprocessing) # Expensive: Find alternative (multiprocessing)
candidates = cellList.find_candidates(poreIdx) candidates = cellList.find_candidates(poreIdx)
while ttbr: for throatIdx in ttbr.copy():
throatIdx = ttbr.pop()
r = cellList.throatR[throatIdx] r = cellList.throatR[throatIdx]
targetLen = cellList.throatL[throatIdx] targetLen = cellList.throatL[throatIdx]
...@@ -973,6 +972,8 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \ ...@@ -973,6 +972,8 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
avg_throat_diff += diff avg_throat_diff += diff
count += 1 count += 1
# Remove throat from pore
ttbr.remove(throatIdx)
# Remove throat from neighbor # Remove throat from neighbor
nborTtbr.remove(nborThroatIdx) nborTtbr.remove(nborThroatIdx)
......
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