Skip to content

Commit

Permalink
[range(n)] replaced with [list(range(n))] in test_stochmatrix.py (for…
Browse files Browse the repository at this point in the history
… python 3)
  • Loading branch information
oyamad committed Sep 10, 2014
1 parent 71551e2 commit fef5769
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions quantecon/tests/test_stochmatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,24 @@ def __init__(self):

matrix_dict = {
'P': np.array([[0.4, 0.6], [0.2, 0.8]]),
'comm_classes': [range(2)],
'rec_classes': [range(2)],
'comm_classes': [list(range(2))],
'rec_classes': [list(range(2))],
'is_irreducible': True,
}
self.irreducible_matrix_dicts.append(matrix_dict)

matrix_dict = {
'P': KMR_Markov_matrix_sequential(N=27, p=1./3, epsilon=1e-2),
'comm_classes': [range(27+1)],
'rec_classes': [range(27+1)],
'comm_classes': [list(range(27+1))],
'rec_classes': [list(range(27+1))],
'is_irreducible': True,
}
self.irreducible_matrix_dicts.append(matrix_dict)

matrix_dict = {
'P': KMR_Markov_matrix_sequential(N=3, p=1./3, epsilon=1e-14),
'comm_classes': [range(3+1)],
'rec_classes': [range(3+1)],
'comm_classes': [list(range(3+1))],
'rec_classes': [list(range(3+1))],
'is_irreducible': True,
}
self.irreducible_matrix_dicts.append(matrix_dict)
Expand Down

0 comments on commit fef5769

Please sign in to comment.