diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-23 11:11:59 +0100 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-27 22:58:35 +0300 |
commit | 7c52c2810e20a9e483e564751b8e2342c97f56c2 (patch) | |
tree | a6de2e359d75a4a61e27ed1a5f3e3672386c3834 /numpy/random/common.pyx | |
parent | 9e5ae6156855e5a2e2edccaf0112362ecb6d31fc (diff) | |
download | numpy-7c52c2810e20a9e483e564751b8e2342c97f56c2.tar.gz |
DOC: Add __all__ and document lock
Add docstring for lock
Use __all__ to discuorage unless attributes from appearing
Diffstat (limited to 'numpy/random/common.pyx')
-rw-r--r-- | numpy/random/common.pyx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/random/common.pyx b/numpy/random/common.pyx index fdf930900..994de4345 100644 --- a/numpy/random/common.pyx +++ b/numpy/random/common.pyx @@ -8,6 +8,8 @@ cimport numpy as np from .common cimport * +__all__ = ['interface'] + np.import_array() interface = namedtuple('interface', ['state_address', 'state', 'next_uint64', @@ -929,7 +931,6 @@ cdef object cont_f(void *func, bitgen_t *state, object size, object lock, cdef int requirements = np.NPY_ALIGNED | np.NPY_FORCECAST check_output(out, np.float32, size) a_arr = <np.ndarray>np.PyArray_FROMANY(a, np.NPY_FLOAT32, 0, 0, requirements) - # a_arr = <np.ndarray>np.PyArray_FROM_OTF(a, np.NPY_FLOAT32, np.NPY_ALIGNED) is_scalar = np.PyArray_NDIM(a_arr) == 0 if not is_scalar: |