astropy / pyregion

ds9 region parser for python
https://pyregion.readthedocs.io
MIT License
39 stars 40 forks source link

Replace deprecated `np.asscalar(a)` with `a.item()` #151

Closed prajwel closed 1 year ago

prajwel commented 2 years ago

On more recent Numpy versions, pyregion fails with the following error: DeprecationWarning: np.asscalar(a) is deprecated since NumPy v1.16, use a.item() instead.