Skip to content

Commit

Permalink
try to fix resource contention
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-fan-wang committed Jul 15, 2024
1 parent cead383 commit 5551d9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/bank/pycbc_brute_bank
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ class TriangleBank(object):
inc = Shrinker(r*1, args.nprocesses)
while 1:
j = inc.pop()
print(j)
if j is None:
hp.matches = matches[r]
hp.indices = r
Expand All @@ -233,7 +232,7 @@ class TriangleBank(object):
return False

match_cache = {}
pool = pycbc.pool.choose_pool(args.nprocesses)
pool = pycbc.pool.choose_pool(min(len(j), args.nprocesses))
for return_idx, return_m in pool.imap_unordered(
match_wrapper,
({'idx': idx,
Expand Down

0 comments on commit 5551d9d

Please sign in to comment.