Skip to content

Commit c1bbd76

Browse files
committed
Minor edits
1 parent c47e1aa commit c1bbd76

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

quantecon/mc_tools.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@
9090
import sys
9191
from .graph_tools import DiGraph
9292
from .gth_solve import gth_solve
93-
from warnings import warn
9493

95-
#-Check if Numba is Available-#
94+
# -Check if Numba is Available- #
9695
from .external import numba_installed, jit
9796
from .utilities import searchsorted
9897

98+
9999
class MarkovChain(object):
100100
"""
101101
Class for a finite-state discrete-time Markov chain. It stores
@@ -308,11 +308,11 @@ def mc_sample_path(P, init=0, sample_size=1000):
308308
mc_sample_path = jit(mc_sample_path)
309309

310310

311-
#------------#
312-
#-DocStrings-#
313-
#------------#
311+
# ------------ #
312+
# -DocStrings- #
313+
# ------------ #
314314

315-
#-mc_sample_path() function and MarkovChain.simulate() method-#
315+
# -mc_sample_path() function and MarkovChain.simulate() method- #
316316
_sample_path_docstr = \
317317
"""
318318
Generates one sample path from the Markov chain represented by (n x n)
@@ -336,9 +336,9 @@ def mc_sample_path(P, init=0, sample_size=1000):
336336
337337
"""
338338

339-
#-Functions-#
339+
# -Functions- #
340340

341-
#-mc_sample_path-#
341+
# -mc_sample_path- #
342342
mc_sample_path.__doc__ = _sample_path_docstr.format(p_arg="""
343343
P : array_like(float, ndim=2)
344344
A Markov transition matrix.
@@ -348,10 +348,11 @@ def mc_sample_path(P, init=0, sample_size=1000):
348348
A Markov transition matrix.
349349
""")
350350

351-
#-Methods-#
351+
# -Methods- #
352352

353-
#-Markovchain.simulate()-#
353+
# -Markovchain.simulate()- #
354354
if sys.version_info[0] == 3:
355355
MarkovChain.simulate.__doc__ = _sample_path_docstr.format(p_arg="")
356356
elif sys.version_info[0] == 2:
357-
MarkovChain.simulate.__func__.__doc__ = _sample_path_docstr.format(p_arg="")
357+
MarkovChain.simulate.__func__.__doc__ = \
358+
_sample_path_docstr.format(p_arg="")

0 commit comments

Comments
 (0)