Skip to content

Commit

Permalink
fix: define map_func
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-reimonn authored and nvictus committed Jan 30, 2024
1 parent 3f352b1 commit c55024a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cooler/cli/cload.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def tabix(
metadata = json.load(f)

try:
map_func = map
if nproc > 1:
pool = Pool(nproc)
logger.info(f"Using {nproc} cores")
Expand Down Expand Up @@ -312,6 +313,7 @@ def pairix(
metadata = json.load(f)

try:
map_func = map
if nproc > 1:
pool = Pool(nproc)
logger.info(f"Using {nproc} cores")
Expand Down

0 comments on commit c55024a

Please sign in to comment.