Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix #12672, importing numpy scalars (zero-dimensional arrays) #12678

Merged
merged 2 commits into from
Oct 4, 2018

Commits on Sep 26, 2018

  1. Fix apache#12672

    Problem is in using np.ascontiguousarray,
    which is buggy for zero-dimensional arrays
     (see numpy/numpy#5300 for details).
    
    Here I use the solution proposed by numpy team:
    switch to asarray with order='C'.
    
    Add some tests for this situation (for array() and for setitem too).
    arogozhnikov committed Sep 26, 2018
    Configuration menu
    Copy the full SHA
    8a70040 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2018

  1. typo in tests

    arogozhnikov committed Sep 27, 2018
    Configuration menu
    Copy the full SHA
    f863c32 View commit details
    Browse the repository at this point in the history