Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
javierggt opened this issue Feb 14, 2024 · 0 comments · Fixed by #321
Closed

Comments

@javierggt
Copy link
Contributor

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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant