Commit 2c8ad2d7 authored by Daniel Scheffler's avatar Daniel Scheffler Committed by Daniel Scheffler
Browse files

Fixed not working COREG_LOCAL.CPUs parameter.

parent d9076ae8
Pipeline #1143 passed with stages
in 8 minutes and 48 seconds
......@@ -3,7 +3,7 @@
import warnings
import os
from copy import copy
from six import PY3
from six import PY2
# custom
......@@ -152,7 +152,7 @@ class COREG_LOCAL(object):
warnings.warn("'-out_gsd' is ignored because '-match_gsd' is set.\n")
if out_gsd:
assert isinstance(out_gsd, list) and len(out_gsd) == 2, 'out_gsd must be a list with two values.'
if (not PY3 and CPUs is None) or (isinstance(CPUs, int) and CPUs > 1):
if PY2 and (CPUs is None or (isinstance(CPUs, int) and CPUs > 1)):
CPUs = 1
warnings.warn('Multiprocessing is currently not supported under Python 2. Using singleprocessing.')
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