squidpy icon indicating copy to clipboard operation
squidpy copied to clipboard

Numba njit warning (nopython is set for njit and is ignored)

Open BenCaiello opened this issue 1 year ago • 0 comments

Description

Numba's njit decorator is presumably being called with (nopython = True/False) somewhere in squidpy, which creates a mildly irritating warning.

This warning is occurring consistently at import of squidpy. Additionally, this warning was occurring inconsistently when calling sq.gr/pl.nhood_enrichment (happened when running from a script / GUI, did not happen when running in jupyter/ipython).

I looked in squidpy'scode base a bit couldn't find the instance where njit was being called with nopython specified, so maybe the issue is on numba's / some other dependency's end?

Minimal reproducible example

Image

This warning also occurred (sometimes) with: sq.gr.nhood_enrichment

Version

python == 3.10 squidpy == 1.6.2

BenCaiello avatar Nov 25 '24 14:11 BenCaiello