Skip to content

Fix Numba nopython mode

Peter Reinholdt requested to merge (removed):master into master

Declare compute_distance before compute_angle.

  • compute_angle fails in nopython mode since it can't infer anything about the global compute_distance name
  • this is solved by a simple reordering

Fixes (normally only a warning is shown, forced the error via nopython=True)

TypingError: Failed at nopython (nopython frontend)
Untyped global name 'compute_distance': cannot determine Numba type of <class 'object'>
File "../miniconda3/lib/python3.6/site-packages/pyframe/utils.py", line 134
Edited by Jógvan Magnus Haugaard Olsen

Merge request reports

Loading