comp-imaging / ProxImaL

A domain-specific language for image optimization.
MIT License
112 stars 29 forks source link

Version breaking changes of Numexpr 2.8.5 #80

Closed antonysigma closed 1 year ago

antonysigma commented 1 year ago

Github CI reported python failure since ~2 weeks ago. Mitigation: refactor the code to use the new Numexpr APIs.

Error message:

test_prox_fn.py:240: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../prox_fns/prox_fn.py:102: in prox
    rho_hat = ne.evaluate('(rho + 2 * gamma) / (alpha * beta**2)', global_dict=symbols)
../../sandbox/lib/python3.8/site-packages/numexpr/necompiler.py:941: in evaluate
    return re_evaluate(local_dict=local_dict, _frame_depth=_frame_depth)
../../sandbox/lib/python3.8/site-packages/numexpr/necompiler.py:969: in re_evaluate
    args = getArguments(argnames, local_dict, _frame_depth=_frame_depth)
E                   KeyError: 'alpha'

../../sandbox/lib/python3.8/site-packages/numexpr/necompiler.py:755: KeyError