Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
pymdptoolbox
Commits
5c8f68ae
Commit
5c8f68ae
authored
Mar 11, 2014
by
Steven Cordwell
Browse files
allow mdp to be imported as a module by using from util import ...
parent
f1d63882
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mdptoolbox/mdp.py
View file @
5c8f68ae
...
...
@@ -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
try
:
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 "
\
"condition."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment