astropy/pyregion

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

Closed this issue · 0 comments

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.