ml-agents
ml-agents copied to clipboard
Remove numpy np.bool deprecation notice
Proposed change(s)
Removes the numpy deprecation notice regarding np.bool. Here we instead use bool.
/usr/local/lib/python3.8/dist-packages/mlagents_envs/rpc_utils.py:376: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
N/A
Types of change(s)
- [x] Bug fix
- [ ] New feature
- [ ] Code refactor
- [ ] Breaking change
- [ ] Documentation update
- [ ] Other (please describe)
Checklist
N/A (removes deprecation)
- [ ] Added tests that prove my fix is effective or that my feature works
- [ ] Updated the changelog (if applicable)
- [ ] Updated the documentation (if applicable)
- [ ] Updated the migration guide (if applicable)
Other comments
Closing: the deprecation fix was merged in as part of https://github.com/Unity-Technologies/ml-agents/commit/f9b7399338ec164ac5447f634b9a9af04538467e .
Thanks for your contributions!