diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-24 21:19:11 +0100 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-05-27 22:58:35 +0300 |
commit | 23853d65e5c31f182a405427f580123f214e386e (patch) | |
tree | 8221947b3e5cc539fa4b1b30c88041f1ad93655e /numpy/random/__init__.py | |
parent | 58c0e72854c3f79d3d165d74f2dc721815a38b57 (diff) | |
download | numpy-23853d65e5c31f182a405427f580123f214e386e.tar.gz |
STY: Clean up code
Pep8 fixes
Remove unused imports
Fix name error
Diffstat (limited to 'numpy/random/__init__.py')
-rw-r--r-- | numpy/random/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/random/__init__.py b/numpy/random/__init__.py index ade912839..2e83e419d 100644 --- a/numpy/random/__init__.py +++ b/numpy/random/__init__.py @@ -173,13 +173,14 @@ from .xoshiro256 import Xoshiro256 from .xoshiro512 import Xoshiro512 from .mtrand import RandomState -__all__ += ['Generator', 'DSFMT', 'MT19937', 'Philox','PCG64', 'PCG32', - 'ThreeFry', 'Xoshiro256', 'Xoshiro512', 'RandomState'] +__all__ += ['Generator', 'DSFMT', 'MT19937', 'Philox', 'PCG64', 'PCG32', + 'ThreeFry', 'Xoshiro256', 'Xoshiro512', 'RandomState'] # Some aliases: ranf = random = sample = random_sample __all__.extend(['ranf', 'random', 'sample']) + def __RandomState_ctor(): """Return a RandomState instance. @@ -195,6 +196,7 @@ def __RandomState_ctor(): """ return RandomState(seed=0) + from numpy._pytesttester import PytestTester test = PytestTester(__name__) del PytestTester |