Skip to content

Commit f7bbc1c

Browse files
Sheppard, KevinSheppard, Kevin
authored andcommitted
CLN: Include explicit error when module not known in pickle helper
1 parent bc4bb19 commit f7bbc1c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ng-numpy-randomstate
2-
[![Build Status](https://travis-ci.org/bashtage/ng-numpy-randomstate.svg?branch=master)](https://travis-ci.org/bashtage/ng-numpy-randomstate)
2+
[![Build Status](https://travis-ci.org/bashtage/ng-numpy-randomstate.svg?branch=master)](https://travis-ci.org/bashtage/ng-numpy-randomstate)
3+
[![Build status](https://ci.appveyor.com/api/projects/status/odc5c4ukhru5xicl/branch/master?svg=true)](https://ci.appveyor.com/project/bashtage/ng-numpy-randomstate/branch/master)
34

45
This is a library and generic interface for alternative random generators
56
in Python and Numpy. This modules includes a number of alternative random

randomstate/prng/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,7 @@ def __generic_ctor(mod_name='mt19937'):
4242
mod = xorshift128
4343
elif mod_name == 'xorshift1024':
4444
mod = xorshift1024
45+
else:
46+
raise ValueError(str(mod_name) + ' is not a known PRNG module.')
4547

4648
return mod.RandomState(0)

0 commit comments

Comments
 (0)