holoviz / spatialpandas

Pandas extension arrays for spatial/geometric operations
BSD 2-Clause "Simplified" License
308 stars 25 forks source link

Numba Deprecation Warning #36

Closed brl0 closed 4 years ago

brl0 commented 4 years ago

Importing spatialpandas I encountered the following warning:

lib/python3.7/site-packages/spatialpandas/spatialindex/rtree.py:263: NumbaDeprecationWarning: The 'numba.jitclass' decorator has moved to 'numba.experimental.jitclass' to better reflect the experimental nature of the functionality. Please update your imports to accommodate this change and see http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#change-of-jitclass-location for the time frame. @jitclass(_numbartree_spec)

Versions:

numba                     0.50.1           py37h0da4684_0    conda-forge
spatialpandas             0.3.4.post2+gefdabe5          pypi_0    pypi

Spatialpandas was installed from git master branch.

From the linked documentation... Simply update imports as follows: Change from numba import jitclass to from numba.experimental import jitclass

brl0 commented 4 years ago

Fixed in #37.