Commit 5c8f68ae authored by Steven Cordwell's avatar Steven Cordwell
Browse files

allow mdp to be imported as a module by using from util import ...

parent f1d63882
......@@ -64,7 +64,11 @@ from numpy import absolute, array, empty, mean, mod, multiply, ones, zeros
from numpy.random import randint, random
from scipy.sparse import csr_matrix as sparse
from .util import check, getSpan
from .util import check, getSpan
except ValueError:
# importing mdp as a module rather than as part of a package
from util import check, getSpan
MSG_STOP_MAX_ITER = "Iterating stopped due to maximum number of iterations " \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment