Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Change raising error to warning
  • Loading branch information
xuyumeng authored and Yumeng Xu committed May 3, 2024
1 parent 6881c8b commit bcd0850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def makedir(path):
if hasattr(multiprocessing, 'set_start_method'):
multiprocessing.set_start_method('fork')
elif multiprocessing.get_start_method() != 'fork':
raise ValueError("PyCBC requires the use of the 'fork' start method for multiprocessing")
warnings.warn("PyCBC requires the use of the 'fork' start method for multiprocessing, "
"it is currently set to {}".format(multiprocessing.get_start_method()))
else:
HAVE_OMP = True

Expand Down

0 comments on commit bcd0850

Please sign in to comment.