diff --git a/environment_ci.yml b/environment_ci.yml index 3692745..848a0e9 100644 --- a/environment_ci.yml +++ b/environment_ci.yml @@ -8,4 +8,4 @@ dependencies: - wheel==0.29.0 - coverage==3.7.1 - python-coveralls==2.5.0 - - numpy==1.12.0 + - numpy==1.15.4 diff --git a/npctypes/shared.py b/npctypes/shared.py index 4711988..d026bbf 100644 --- a/npctypes/shared.py +++ b/npctypes/shared.py @@ -111,6 +111,9 @@ def as_ndarray(a, writeable=True): shared process heap. Examples: + + >>> numpy.set_printoptions(legacy="1.13") + >>> a = ndarray((2,3), float) >>> with as_ndarray(a) as nd_a: ... nd_a[...] = 0 diff --git a/npctypes/types.py b/npctypes/types.py index 6ff1e02..0226de4 100644 --- a/npctypes/types.py +++ b/npctypes/types.py @@ -83,6 +83,7 @@ def get_ndpointer_type(a): (PyCSimpleType): the pointer type associated with this array. Examples: + >>> a = numpy.zeros((3, 4), dtype=float) >>> a_ptr = get_ndpointer_type(a) @@ -103,6 +104,7 @@ def get_ndpointer_type(a): OWNDATA : True WRITEABLE : False ALIGNED : True + WRITEBACKIFCOPY : False UPDATEIFCOPY : False """