Skip to content

Commit

Permalink
allow None processes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernaldis committed May 19, 2022
1 parent ef0d217 commit 91c8db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datajoint/autopopulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def handler(signum, frame):
return

if processes > 1:
processes = min(processes, nkeys, mp.cpu_count())
processes = min(*(_ for _ in (processes, nkeys, mp.cpu_count()) if _))

error_list = []
populate_kwargs = dict(
Expand Down

0 comments on commit 91c8db4

Please sign in to comment.