-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
box.contains check dtype and promote non-ndarrays (#2374)
* box.contains check dtype and promote non-ndarrays Closes: #2357 and #2298 Instead of only casting list to ndarray, cast any class to ndarray (if possible) and emit a warning when casting. Also, check if the dtype of the input matches the dtype of the space. * use import warnings * blackify * changs from code review * fix wrapped space Co-authored-by: Tristan Deleu <[email protected]> * fix box bondaries Co-authored-by: Tristan Deleu <[email protected]> * TEST: add regression test. * STY: black Co-authored-by: Tristan Deleu <[email protected]>
- Loading branch information
1 parent
0b07221
commit 7573c57
Showing
4 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters