In a numba function, I was passing the arguments like this:
sets_one_step(idx,sets=[set1, set2], indexes=[sort_idx1, sort_idx2], probs=[P1, P2])
After running the code I got the following warning:
/.local/lib/python3.6/site-packages/numba/core/ir_utils.py:2031: NumbaPendingDeprecationWarning:
Encountered the use of a type that is scheduled for deprecation: type 'reflected list' found for argument 'sets' of function '__numba_parfor_gufunc_0x7f5ebfb88748'.
this particular error/warning may have originated from the following line inside the function:
for k in prange(len(sets)):
Here, set1, set2 are numpy arrays (integer or flaot32). If this was only 2 sets, then I could make them individual arguments in function. However, I can have more than 2 such arrays for my application. I would like to know how to avoid this warning in future for my use case.