astropy / pyregion

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

AttributeError with recent numpy versions #158

Closed smaret closed 1 year ago

smaret commented 1 year ago

numpy.asscalar() is used in pyregion/wcs_converter.py, but this function is depracated since 1.16. With recent numpy versions, the tests fail with the following error:

AttributeError: module 'numpy' has no attribute 'asscalar'