gym icon indicating copy to clipboard operation
gym copied to clipboard

bug fix :numpy has no attribute 'bool8'

Open nocoding03 opened this issue 1 year ago • 0 comments

Description

I change gym/utils/passive_env_checker.py: if not isinstance(terminated, (bool, np.bool8)): to if not isinstance(terminated, (bool, np.bool)): because module 'numpy' has no attribute 'bool8'.

Fixes # 3294

Type of change

  • [x] Bug fix (non-breaking change which fixes an issue)

Screenshots

image

Checklist:

  • [x] I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes

nocoding03 avatar Oct 10 '24 11:10 nocoding03