Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TommasoBelluzzo committed Mar 17, 2023
1 parent 3f204f1 commit c0dec29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydtmc/markov_chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,11 @@ def implied_timescales(self) -> _oarray:
if not self.is_ergodic:
it = None
else:

ev = self.__eigenvalues_sorted[::-1]
it = _np.append(_np.inf, -1.0 / _np.log(ev[1:]))

with _np.errstate(divide='ignore'):
it = _np.append(_np.inf, -1.0 / _np.log(ev[1:]))

return it

Expand Down

0 comments on commit c0dec29

Please sign in to comment.