sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

FutureWarning: In the future `np.str` will be defined as the corresponding NumPy scalar #320

Closed javierggt closed 4 months ago

javierggt commented 4 months ago

The following warning is issued in https://github.com/sot/kadi/blob/7.8.1/kadi/occweb.py#L130:

/Users/javierg/SAO/miniconda3/envs/ska3-flight-2024.0rc8/lib/python3.11/site-packages/kadi/occweb.py:130: FutureWarning: In the future `np.str` will be defined as the corresponding NumPy scalar.
  key: [ascii.convert_numpy(getattr(np, type_))] for key, type_ in types.items()

Obviously it is trying to do

ascii.convert_numpy(getattr(np, str))