-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve np.array implementation (#1256)
- Ensure `np.array` can be called with one variable argument (previously this caused an infinite loop over the elements of the array). - Simplify `_print_NumpyArray` to reduce duplication and fix #1241 and fix duplicate #1257. - Improve `np.array` implementation to correct the default order and add the `ndmin` parameter. - Add tests for new code. - Clean up `test_arrays.py` so failures reference the relevant issue, tuples use `==` instead of `np.array_equal`, and a more comprehensive check is carried out on returned arrays including checking the datatype and ordering. --------- Co-authored-by: EmilyBourne <louise.bourne@gmail.com> Co-authored-by: Yaman Güçlü <yaman.guclu@gmail.com>
- Loading branch information
1 parent
4371217
commit 536be30
Showing
7 changed files
with
562 additions
and
291 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
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
Oops, something went wrong.