Commit 0a88711d authored by sfritschi's avatar sfritschi
Browse files

Minor refactoring

parent 15086ea5
......@@ -16,6 +16,7 @@ def main():
print("Avg. number of throats per pore: %f" % (sum(pore_throat_counts) / len(pore_throat_counts)))
target = [3, 3, 3]
print("Target size: {}".format(target))
cutoff = 0.5 * max([basenet.ub[i] - basenet.lb[i] \
for i in range(len(basenet.ub))])
......
......@@ -722,7 +722,6 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
workers = []
for _ in range(nthreads):
worker = mp.Process(target=cellList.par_find_candidates, args=(in_q, out_q))
worker.daemon = True
worker.start()
workers.append(worker)
......@@ -762,6 +761,7 @@ def generate_dendrogram(basenet: Network, targetsize: List[int], \
diff = abs(lt - ltc)
avg_throat_diff += diff
count += 1
lt = ltc
# Remove nbor from candidates
del candidates[nborIdx]
......
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