Commit a6340293 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix bug in BlockModel.entropy() with test=True

parent bf1e07b1
......@@ -569,7 +569,7 @@ class BlockState(object):
if callback is not None:
S += callback(self)
if _bm_test() and extract_arg(kwargs, "test", True):
if extract_arg(kwargs, "test", True) and _bm_test():
assert not isnan(S) and not isinf(S), \
"invalid entropy %g (%s) " % (S, str(args))
......
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