Skip to content

Commit

Permalink
possibly fix issue on py3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoplectic committed Jan 9, 2017
1 parent 698441d commit 06e8d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dit/profiles/marginal_utility_of_information.py
Expand Up @@ -146,7 +146,7 @@ def _compute(self):
mui = np.round(np.diff(maxui)/np.diff(pnts), 7)
vals = np.array(np.unique(mui, return_index=True))
self.profile = dict((pnts[int(row[1])], row[0]) for row in vals.T)
self.widths = np.diff(list(self.profile.keys()) + [ent])
self.widths = np.diff(list(sorted(self.profile.keys())) + [ent])

def draw(self, ax=None): # pragma: no cover
ax = super(MUIProfile, self).draw(ax=ax)
Expand Down

0 comments on commit 06e8d5d

Please sign in to comment.