From 652f670e8286e5394079f57468ea3a1c63b59425 Mon Sep 17 00:00:00 2001 From: Matthew Johnson <mattjj@csail.mit.edu> Date: Thu, 31 Mar 2016 22:09:56 -0400 Subject: [PATCH] fix plotting bug --- pyhsmm/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhsmm/models.py b/pyhsmm/models.py index f7974da..d42be7f 100644 --- a/pyhsmm/models.py +++ b/pyhsmm/models.py @@ -187,7 +187,7 @@ class _HMMBase(Model): def used_states(self): 'a list of the used states in the order they appear' c = itertools.count() - canonical_ids = collections.defaultdict(next(c)) + canonical_ids = collections.defaultdict(lambda: next(c)) for s in self.states_list: for state in s.stateseq: canonical_ids[state] -- GitLab