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

Fix MulticanonicalState.get_entropy()

parent 864c5f68
......@@ -451,7 +451,7 @@ class MulticanonicalState(object):
def get_entropy(self, S, B=None):
r = self.get_density(B)
dS = (self._S_max - self._S_min) / len(r)
j = round((S - self._S_min) / dS)
j = int(round((S - self._S_min) / dS))
return r[j]
def get_hist(self):
......
Supports Markdown
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