fhs / pyhdf

Python wrapper around the NCSA HDF version 4 library
https://pypi.org/project/pyhdf/
Other
46 stars 15 forks source link

The NPY_CHAR type_num is deprecated #52

Closed zmoon closed 1 year ago

zmoon commented 2 years ago

What version of pyhdf, HDF4, and Python are you using?

pyhdf version: 0.10.3 HDF4 C library version: 4.2.15 Python version: 3.10.2 NumPy: 1.22.2

What operating system are you using?

Windows

The issue

There is a deprecation warning from numpy:

... site-packages\pyhdf\SD.py:1920: DeprecationWarning: The NPY_CHAR type_num is deprecated. Please port your code to use NPY_STRING instead.
    return _C._SDreaddata_0(self._id, data_type, start, count, stride)

I saw this message in another issue or two but didn't seem like there was specific one noting this deprecation.

fhs commented 1 year ago

Fixed in 2c5494910299ac2e31844cd718ce751a31d4f4cc