Skip to content

Commit

Permalink
Update pool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz authored Feb 23, 2024
1 parent 3d696e7 commit 3cf1b48
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pycbc/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ def broadcast(self, fcn, args):

def map(self, f, items):
return [f(a) for a in items]


# This is single core, so imap and map
# would not behave differently. This is defined
# so that the general pool interfaces can use
# imap irrespective of the pool type.
imap = map

def use_mpi(require_mpi=False, log=True):
Expand Down

0 comments on commit 3cf1b48

Please sign in to comment.