You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call rvic.parameters.parameters with multiple cores in Python 2.7.11, I get the following error:
INFO:parameters>> On Outlet 1 of 1
ERROR:write>> Traceback (most recent call last):
ERROR:write>> File "run_rvic.py", line 62, in
ERROR:write>> main()
ERROR:write>> File "run_rvic.py", line 56, in main
ERROR:write>> rvic.parameters.parameters(param_cfg_name, numofproc=cores)
ERROR:write>> File "/d6/eclark/miniconda2/envs/otl_env/lib/python2.7/site-packages/rvic-1.1.0-py2.7-linux-x86_64.egg/rvic/parameters.py", line 73, in parameters
ERROR:write>> error_callback=error)
ERROR:write>> TypeError
ERROR:write>> :
ERROR:write>> apply_async() got an unexpected keyword argument 'error_callback'
Apparently error_callback is not a keyword option for apply_async in python 2 (ref). In this case, it looks like nothing happens if there is an error; the callback just isn't called. I can think of 3 options for how to handle this:
Put in a python version check that disables multiprocessing for python 2.
Make a function that only uses error_callback if user is using python 3. Set up an error check in the stat return value of apply_async to show if the job completed or not. The problem, of course, being that you don't get the error code from gen_uh_run.
When I call
rvic.parameters.parameters
with multiple cores in Python 2.7.11, I get the following error:Apparently
error_callback
is not a keyword option forapply_async
in python 2 (ref). In this case, it looks like nothing happens if there is an error; the callback just isn't called. I can think of 3 options for how to handle this:error_callback
if user is using python 3. Set up an error check in thestat
return value ofapply_async
to show if the job completed or not. The problem, of course, being that you don't get the error code fromgen_uh_run
.gen_uh_run
.The text was updated successfully, but these errors were encountered: