Module Expr Str ImportFrom alias Import alias identifier ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpAdd NameLoad Num BinOpAdd NameLoad Num keyword NameLoad Assign TupleStore SubscriptStore NameLoad Index TupleLoad Num Num SubscriptStore NameLoad Index TupleLoad Num Num TupleLoad BinOpSub Num BinOpMult NameLoad BinOpDiv Num Num BinOpMult NameLoad BinOpDiv Num Num For NameStore Call NameLoad Num NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad BinOpSub NameLoad Num BinOpMult BinOpDiv NameLoad NameLoad BinOpAdd BinOpMult NameLoad BinOpDiv Num Num BinOpMult BinOpSub Num NameLoad BinOpAdd CompareLt BinOpDiv BinOpSub NameLoad Num BinOpSub NameLoad Num NameLoad BinOpMult CompareEq BinOpDiv BinOpSub NameLoad Num BinOpSub NameLoad Num NameLoad BinOpDiv Num Num Assign SubscriptStore NameLoad Index TupleLoad NameLoad BinOpAdd NameLoad Num BinOpMult BinOpDiv BinOpSub NameLoad NameLoad NameLoad BinOpAdd BinOpMult NameLoad BinOpDiv Num Num BinOpMult BinOpSub Num NameLoad BinOpAdd CompareGt BinOpDiv NameLoad BinOpSub NameLoad Num NameLoad BinOpMult CompareEq BinOpDiv NameLoad BinOpSub NameLoad Num NameLoad BinOpDiv Num Num Assign SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad BinOpSub BinOpSub Num SubscriptLoad NameLoad Index TupleLoad NameLoad BinOpSub NameLoad Num SubscriptLoad NameLoad Index TupleLoad NameLoad BinOpAdd NameLoad Num Assign TupleStore SubscriptStore NameLoad Index TupleLoad NameLoad BinOpSub NameLoad Num SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad TupleLoad BinOpMult NameLoad BinOpDiv Num Num BinOpSub Num BinOpMult NameLoad BinOpDiv Num Num Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num Num Assign TupleStore SubscriptStore NameLoad Index TupleLoad Num Num SubscriptStore NameLoad Index TupleLoad Num Num TupleLoad Num Num Assign SubscriptStore NameLoad Index TupleLoad Num ListLoad Num Num BinOpDiv Num Num Assign TupleStore SubscriptStore NameLoad Index TupleLoad Num Num SubscriptStore NameLoad Index TupleLoad Num Num SubscriptStore NameLoad Index TupleLoad Num Num TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad BinOpDiv Num Num BinOpDiv Num Num Num Num Num Num ListLoad Num Num Num BinOpDiv Num Num BinOpDiv Num Num BinOpDiv Num Num Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Call AttributeLoad NameLoad attr Num ListLoad Call AttributeLoad NameLoad attr Num NameLoad Num NameLoad ListLoad Call AttributeLoad NameLoad attr Num Dict Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Call AttributeLoad NameLoad attr Num ListLoad Call AttributeLoad NameLoad attr Num NameLoad Num NameLoad ListLoad Call AttributeLoad NameLoad attr Num Dict Str Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Call AttributeLoad NameLoad attr Num ListLoad Call AttributeLoad NameLoad attr Num NameLoad Num NameLoad ListLoad Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num Dict Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num NameLoad Num NameLoad Dict Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num NameLoad Num NameLoad Dict Str Str Str Str Str Str Str NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num NameLoad Num NameLoad Dict Str Str Str Str Str Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Call AttributeLoad NameLoad attr ListLoad Num Num Num ListLoad Call AttributeLoad NameLoad attr ListLoad Num Num Call AttributeLoad NameLoad attr ListLoad Num Num Num NameLoad Num NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Str keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Str keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assert CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Expr Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Str keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list ClassDef bases body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore BinOpDiv Num Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call NameLoad NameLoad Num body Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareGt NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr orelse For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad Num NameLoad NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr TupleLoad NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Num ListLoad Num Num NameLoad Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr TupleLoad Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad Num ListLoad Num Num Num Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr TupleLoad BinOpMult Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore NameStore ListLoad TupleLoad Num NameLoad Num TupleLoad Num NameLoad Num body Expr Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore ListLoad Num Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore BinOpDiv Num Num Assign NameStore BinOpDiv BinOpSub Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign TupleStore SubscriptStore NameLoad Index TupleLoad NameLoad BinOpMod BinOpSub NameLoad Num NameLoad SubscriptStore NameLoad Index TupleLoad NameLoad NameLoad SubscriptStore NameLoad Index TupleLoad NameLoad BinOpMod BinOpAdd NameLoad Num NameLoad TupleLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore TupleLoad NameLoad Num ListLoad Num Num Assign NameStore TupleLoad NameLoad Num Assign NameStore Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Index Num attr Expr Call NameLoad CompareLt Call AttributeLoad NameLoad attr BinOpSub NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num keyword Str Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr NameLoad keyword Num Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore TupleLoad Num Num Assign NameStore ListLoad Num Num Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad Num Num Assign NameStore Num Assign NameStore Num Assign NameStore BinOpPow Num Num Assign NameStore Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad attr Expr Call NameLoad CompareLt Call AttributeLoad NameLoad attr BinOpSub NameLoad SubscriptLoad NameLoad Index Num NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num keyword NameLoad ListLoad ListLoad Num ListLoad Num ListLoad Num ListLoad ListLoad Num ListLoad Num Assign AttributeStore NameLoad attr Dict Str Str Str Str Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num keyword NameLoad ListLoad ListLoad Num Num Num ListLoad ListLoad Num Num Num ListLoad ListLoad Num ListLoad Num ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Str Str Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad NameLoad ListLoad NameLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body If NameLoad body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num orelse Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad Assign NameStore NameLoad Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index TupleLoad Num Num Expr Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore ListLoad Str Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad NameLoad ListLoad NameLoad body For NameStore ListLoad NameLoad NameLoad body If NameLoad body Assign NameStore NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num orelse Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad Assign NameStore NameLoad Assign NameStore Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index TupleLoad Num Num Expr Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Num Assign NameStore ListLoad Str Str Assign NameStore Num Assign NameStore ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpMod Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Num Num Assign NameStore ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp BinOpMod Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMod Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore ListLoad Str Str Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListLoad ListLoad Num Num Num ListLoad Num Num Num Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Assign AttributeStore NameLoad attr ListLoad Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Assign AttributeStore NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Num Expr Call NameLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr ListLoad Num Num decorator_list Call NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num ListLoad Num Num Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword UnaryOpUSub BinOpAdd NameLoad Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword ListLoad Num NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad keyword ListLoad Num UnaryOpUSub BinOpAdd NameLoad Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad ListLoad Num Num ListLoad Num Num Assign NameStore ListLoad TupleLoad Num Num Num Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad decorator_list If CompareEq NameLoad Str body Import alias Import alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad
N/A N/A 
Tests for markov/core.py

Functions
---------
    mc_compute_stationary   [Status: Tested in test_markovchain_pmatrices]
    mc_sample_path          [Status: Tested in test_mc_sample_path]

 __future__ division N/A numpy np scipy sparse N/A itertools numpy.testing assert_allclose assert_array_equal assert_raises nose.tools eq_ ok_ raises quantecon.markov MarkovChain mc_compute_stationary mc_sample_path list_of_array_equal N/A N/A s t N/A N/A N/A 
    Compare two lists of ndarrays

    s, t: lists of numpy.ndarrays

     N/A N/A eq_ N/A len s N/A len t N/A N/A all N/A N/A assert_array_equal x y N/A N/A x y N/A zip s t N/A KMR_Markov_matrix_sequential N/A N/A N p epsilon N/A N/A N/A 
    Generate the Markov matrix for the KMR model with *sequential* move

    N: number of players
    p: level of p-dominance for action 1
       = the value of p such that action 1 is the BR for (1-q, q) for any q > p,
         where q (1-q, resp.) is the prob that the opponent plays action 1 (0, resp.)
    epsilon: mutation probability

    References:
        KMRMarkovMatrixSequential is contributed from https://github.com/oyamad
     N/A P N/A N/A np zeros N/A N/A N 1 N/A N 1 dtype float N/A N/A N/A P N/A N/A 0 0 N/A P N/A N/A 0 1 N/A N/A 1 N/A epsilon N/A 1 2 N/A epsilon N/A 1 2 N/A n N/A range 1 N N/A N/A N/A P N/A N/A n N/A n 1 N/A N/A n N N/A N/A epsilon N/A 1 2 N/A N/A 1 epsilon N/A N/A N/A N/A n 1 N/A N 1 p N/A N/A N/A N/A n 1 N/A N 1 p N/A 1 2 N/A N/A P N/A N/A n N/A n 1 N/A N/A N/A N n N N/A N/A epsilon N/A 1 2 N/A N/A 1 epsilon N/A N/A N/A n N/A N 1 p N/A N/A N/A n N/A N 1 p N/A 1 2 N/A N/A P N/A N/A n n N/A N/A 1 N/A P N/A N/A n N/A n 1 N/A P N/A N/A n N/A n 1 N/A N/A N/A P N/A N/A N N/A N 1 N/A P N/A N/A N N N/A N/A epsilon N/A 1 2 N/A 1 N/A epsilon N/A 1 2 N/A P N/A test_markovchain_pmatrices N/A N/A N/A N/A N/A 
    Test the methods of MarkovChain, as well as mc_compute_stationary,
    with P matrix and known solutions
     N/A Q N/A N/A np zeros N/A 6 6 N/A N/A N/A Q N/A N/A 0 1 N/A Q N/A N/A 1 0 N/A 1 1 N/A N/A Q N/A N/A 2 N/A 0 3 N/A 1 2 N/A N/A N/A Q N/A N/A 3 4 N/A Q N/A N/A 4 5 N/A Q N/A N/A 5 3 N/A 1 1 1 N/A Q_stationary_dists N/A N/A np array N/A N/A N/A 1 2 N/A 1 2 0 0 0 0 N/A 0 0 0 N/A 1 3 N/A 1 3 N/A 1 3 N/A testset N/A N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic cyclic_classes N/A N/A np array N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A N/A np array N/A N/A 0.25 0.75 N/A N/A N/A np arange 2 N/A N/A N/A np arange 2 True 1 True N/A N/A N/A np arange 2 N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic cyclic_classes N/A N/A sparse csr_matrix N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A N/A np array N/A N/A 0.25 0.75 N/A N/A N/A np arange 2 N/A N/A N/A np arange 2 True 1 True N/A N/A N/A np arange 2 N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic cyclic_classes N/A N/A np array N/A N/A 0 1 N/A 1 0 N/A N/A np array N/A N/A 0.5 0.5 N/A N/A N/A np arange 2 N/A N/A N/A np arange 2 True 2 False N/A N/A N/A np array N/A 0 N/A N/A np array N/A 1 N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic N/A N/A np eye 2 N/A N/A np array N/A N/A 1 0 N/A 0 1 N/A N/A N/A np array N/A 0 N/A N/A np array N/A 1 N/A N/A N/A np array N/A 0 N/A N/A np array N/A 1 False 1 True N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic N/A N/A np array N/A N/A 1 0 N/A 1 0 N/A N/A np array N/A N/A 1 0 N/A N/A N/A np array N/A 0 N/A N/A np array N/A 1 N/A N/A N/A np array N/A 0 False 1 True N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic Q Q_stationary_dists N/A N/A N/A np array N/A 0 1 N/A N/A np array N/A 2 N/A N/A np array N/A 3 4 5 N/A N/A N/A np array N/A 0 1 N/A N/A np array N/A 3 4 5 False 6 False N/A P stationary_dists comm_classes rec_classes is_irreducible period is_aperiodic N/A N/A sparse csr_matrix Q Q_stationary_dists N/A N/A N/A np array N/A 0 1 N/A N/A np array N/A 2 N/A N/A np array N/A 3 4 5 N/A N/A N/A np array N/A 0 1 N/A N/A np array N/A 3 4 5 False 6 False N/A test_dict testset N/A N/A mc N/A MarkovChain N/A test_dict N/A P N/A computed N/A mc stationary_distributions N/A N/A assert_allclose computed N/A test_dict N/A stationary_dists N/A N/A N/A mc num_communication_classes N/A len N/A test_dict N/A comm_classes N/A N/A N/A mc is_irreducible N/A test_dict N/A is_irreducible N/A N/A N/A mc num_recurrent_classes N/A len N/A test_dict N/A rec_classes N/A N/A list_of_array_equal N/A sorted N/A mc communication_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A sorted N/A test_dict N/A comm_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A list_of_array_equal N/A sorted N/A mc recurrent_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A sorted N/A test_dict N/A rec_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A N/A mc period N/A test_dict N/A period N/A N/A N/A mc is_aperiodic N/A test_dict N/A is_aperiodic N/A N/A N/A N/A list_of_array_equal N/A sorted N/A mc cyclic_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A sorted N/A test_dict N/A cyclic_classes key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A N/A NotImplementedError N/A N/A N/A N/A mc is_irreducible False N/A computed N/A mc_compute_stationary N/A test_dict N/A P N/A N/A assert_allclose computed N/A test_dict N/A stationary_dists N/A Test_markovchain_stationary_distributions_KMRMarkovMatrix2 N/A N/A N/A 
    Test Suite for MarkovChain.stationary_distributions using KMR Markov
    Matrix [suitable for nose]
     N/A N 27 N/A epsilon 0.01 N/A p N/A 1 3 N/A TOL 0.01 setUp N/A N/A self N/A N/A N/A  Setup a KMRMarkovMatrix and Compute Stationary Values  N/A N/A self P N/A KMR_Markov_matrix_sequential N/A self N N/A self p N/A self epsilon N/A N/A self mc N/A MarkovChain N/A self P N/A N/A self stationary N/A N/A self mc stationary_distributions N/A stat_shape N/A N/A self stationary shape N/A N/A N/A len stat_shape 1 N/A N/A N/A self n_stat_dists 1 N/A N/A N/A self n_stat_dists N/A stat_shape N/A 0 N/A test_markov_matrix N/A N/A self N/A N/A N/A Check that each row of matrix sums to 1 N/A mc N/A self mc N/A N/A assert_allclose N/A N/A np sum N/A mc P axis 1 N/A N/A np ones N/A mc n N/A test_sum_one N/A N/A self N/A N/A N/A Check that each stationary distribution sums to 1 N/A stationary_distributions N/A self stationary N/A N/A assert_allclose N/A N/A np sum stationary_distributions axis 1 N/A N/A np ones N/A self n_stat_dists N/A test_nonnegative N/A N/A self N/A N/A N/A Check that the stationary distributions are non-negative N/A stationary_distributions N/A self stationary N/A N/A N/A np all N/A stationary_distributions -1e-16 N/A test_left_eigen_vec N/A N/A self N/A N/A N/A Check that vP = v for all stationary distributions N/A mc N/A self mc N/A stationary_distributions N/A self stationary N/A N/A N/A self n_stat_dists 1 N/A N/A N/A assert_allclose N/A N/A np dot stationary_distributions N/A mc P stationary_distributions atol N/A self TOL N/A N/A i N/A range N/A self n_stat_dists N/A N/A curr_v N/A stationary_distributions N/A N/A i N/A N/A N/A assert_allclose N/A N/A np dot curr_v N/A mc P curr_v atol N/A self TOL N/A N/A test_simulate_shape N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A mcs N/A N/A MarkovChain P N/A MarkovChain N/A N/A sparse csr_matrix P N/A mc mcs N/A N/A N/A ts_length init num_reps N/A 10 None None N/A N/A assert_array_equal N/A N/A N/A mc simulate ts_length init num_reps shape N/A ts_length N/A N/A ts_length init num_reps N/A 10 N/A 0 1 None N/A N/A assert_array_equal N/A N/A N/A mc simulate ts_length init num_reps shape N/A N/A len init ts_length N/A N/A ts_length init num_reps N/A 10 N/A 0 1 3 N/A N/A assert_array_equal N/A N/A N/A mc simulate ts_length init num_reps shape N/A N/A N/A len init num_reps ts_length N/A N/A ts_length init num_reps N/A N/A 10 None 3 N/A 10 None 1 N/A N/A N/A assert_array_equal N/A N/A N/A mc simulate ts_length init num_reps shape N/A num_reps ts_length N/A test_simulate_init_array_num_reps N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A mc N/A MarkovChain P N/A ts_length 10 N/A init N/A 0 1 N/A num_reps 3 N/A X N/A N/A mc simulate ts_length init num_reps N/A N/A assert_array_equal N/A X N/A N/A N/A 0 N/A init num_reps N/A test_simulate_init_type N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A mc N/A MarkovChain P N/A seed 0 N/A ts_length 3 N/A init 0 N/A X N/A N/A mc simulate ts_length init init random_state seed N/A inits_np_int N/A N/A t init N/A t N/A N/A np int32 N/A np int64 N/A init inits_np_int N/A N/A X_np_int N/A N/A mc simulate ts_length init init random_state seed N/A N/A assert_array_equal X_np_int X N/A test_simulate_dense_vs_sparse N/A N/A N/A N/A N/A n 5 N/A a N/A 1 3 N/A b N/A N/A 1 a 2 N/A P N/A N/A np zeros N/A n n N/A i N/A range n N/A N/A N/A N/A P N/A N/A i N/A N/A i 1 n N/A P N/A N/A i i N/A P N/A N/A i N/A N/A i 1 n N/A b a b N/A mcs N/A N/A MarkovChain P N/A MarkovChain N/A N/A sparse csr_matrix P N/A ts_length 10 N/A inits N/A None 0 N/A 0 1 N/A num_repss N/A None 2 N/A random_state 0 N/A N/A init num_reps N/A N/A itertools product inits num_repss N/A N/A N/A assert_array_equal N/A N/A N/A mc simulate ts_length init num_reps random_state random_state N/A mc mcs N/A test_simulate_ergodicity N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A stationary_dist N/A 0.25 0.75 N/A init 0 N/A mc N/A MarkovChain P N/A seed 4433 N/A ts_length 100 N/A num_reps 300 N/A tol 0.1 N/A x N/A N/A mc simulate ts_length init init num_reps num_reps random_state seed N/A frequency_1 N/A N/A N/A x N/A N/A N/A -1 mean N/A N/A ok_ N/A N/A N/A np abs N/A frequency_1 N/A stationary_dist N/A 1 tol N/A test_simulate_for_matrices_with_C_F_orders N/A N/A N/A N/A N/A 
    Test MarkovChasin.simulate for matrices with C- and F-orders
    See the issue and fix on Numba:
    github.com/numba/numba/issues/1103
    github.com/numba/numba/issues/1104
     N/A P_C N/A N/A np array N/A N/A 0.5 0.5 N/A 0 1 order C N/A P_F N/A N/A np array N/A N/A 0.5 0.5 N/A 0 1 order F N/A init 1 N/A ts_length 10 N/A sample_path N/A N/A np ones ts_length dtype int N/A computed_C_and_F N/A N/A N/A MarkovChain N/A N/A np array N/A N/A 1.0 simulate ts_length init 0 N/A N/A assert_array_equal computed_C_and_F N/A N/A np zeros ts_length dtype int N/A computed_C N/A N/A N/A MarkovChain P_C simulate ts_length init N/A computed_F N/A N/A N/A MarkovChain P_F simulate ts_length init init N/A N/A assert_array_equal computed_C sample_path N/A N/A assert_array_equal computed_F sample_path N/A test_mc_sample_path N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A Ps N/A P N/A N/A sparse csr_matrix P N/A init 0 N/A sample_size 10 N/A seed 42 N/A P Ps N/A N/A expected N/A 0 0 1 1 1 0 0 0 1 1 N/A computed N/A mc_sample_path P init init sample_size sample_size random_state seed N/A N/A assert_array_equal computed expected N/A distribution N/A 0.5 0.5 N/A expected N/A 0 1 1 1 0 0 0 1 1 1 N/A computed N/A mc_sample_path P init distribution sample_size sample_size random_state seed N/A N/A assert_array_equal computed expected N/A test_mc_sample_path_lln N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A stationary_dist N/A 0.25 0.75 N/A init 0 N/A seed 4433 N/A sample_size N/A 10 4 N/A tol 0.02 N/A frequency_1 N/A N/A N/A mc_sample_path P init init sample_size sample_size random_state seed mean N/A N/A ok_ N/A N/A N/A np abs N/A frequency_1 N/A stationary_dist N/A 1 tol N/A TestMCStateValues N/A N/A setUp N/A N/A self N/A N/A N/A state_values N/A N/A 0 1 N/A 2 3 N/A 4 5 N/A N/A self state_values N/A N/A np array state_values N/A N/A self mc_reducible_dict N/A mc coms recs N/A MarkovChain N/A N/A 1 0 0 N/A 1 0 0 N/A 0 0 1 state_values state_values N/A N/A 0 N/A 1 N/A 2 N/A N/A 0 N/A 2 N/A N/A self mc_periodic_dict N/A mc coms recs cycs N/A MarkovChain N/A N/A 0 1 0 N/A 0 0 1 N/A 1 0 0 state_values state_values N/A N/A 0 1 2 N/A N/A 0 1 2 N/A N/A 0 N/A 1 N/A 2 N/A test_com_rec_classes N/A N/A self N/A N/A N/A mc_dict N/A N/A self mc_reducible_dict N/A self mc_periodic_dict N/A N/A mc N/A mc_dict N/A mc N/A coms N/A mc_dict N/A coms N/A recs N/A mc_dict N/A recs N/A properties N/A communication_classes recurrent_classes N/A suffix _indices N/A N/A prop0 classes_ind N/A zip properties N/A coms recs N/A N/A return_indices N/A True False N/A N/A return_indices N/A N/A classes classes_ind N/A prop N/A prop0 suffix N/A key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A classes N/A N/A N/A self state_values N/A i N/A i classes_ind N/A prop prop0 N/A key N/A N/A N/A x N/A N/A x N/A N/A 0 0 N/A N/A list_of_array_equal N/A sorted N/A getattr mc prop key key N/A sorted classes key key N/A test_cyc_classes N/A N/A self N/A N/A N/A mc N/A N/A self mc_periodic_dict N/A mc N/A cycs N/A N/A self mc_periodic_dict N/A cycs N/A properties N/A cyclic_classes N/A suffix _indices N/A N/A prop0 classes_ind N/A zip properties N/A cycs N/A N/A return_indices N/A True False N/A N/A return_indices N/A N/A classes classes_ind N/A prop N/A prop0 suffix N/A key N/A N/A N/A x N/A N/A x N/A 0 N/A N/A classes N/A N/A N/A self state_values N/A i N/A i classes_ind N/A prop prop0 N/A key N/A N/A N/A x N/A N/A x N/A N/A 0 0 N/A N/A list_of_array_equal N/A sorted N/A getattr mc prop key key N/A sorted classes key key N/A test_simulate N/A N/A self N/A N/A N/A mc N/A N/A self mc_periodic_dict N/A mc N/A ts_length 6 N/A methods N/A simulate_indices simulate N/A init_idx 0 N/A inits N/A init_idx N/A N/A self state_values N/A init_idx N/A path N/A N/A N/A np arange init_idx N/A init_idx ts_length N/A mc n N/A paths N/A path N/A N/A self state_values N/A path N/A N/A method init X_expected N/A zip methods inits paths N/A N/A X N/A N/A getattr mc method ts_length init N/A N/A assert_array_equal X X_expected N/A init_idx N/A 1 2 N/A inits N/A init_idx N/A N/A self state_values N/A init_idx N/A path N/A N/A np array N/A N/A N/A N/A np arange i N/A i ts_length N/A mc n N/A i init_idx N/A paths N/A path N/A N/A self state_values N/A path N/A N/A method init X_expected N/A zip methods inits paths N/A N/A X N/A N/A getattr mc method ts_length init N/A N/A assert_array_equal X X_expected N/A inits N/A None None N/A seed 1234 N/A init_idx 2 N/A path N/A N/A N/A np arange init_idx N/A init_idx ts_length N/A mc n N/A paths N/A path N/A N/A self state_values N/A path N/A N/A method init X_expected N/A zip methods inits paths N/A N/A X N/A N/A getattr mc method ts_length init random_state seed N/A N/A assert_array_equal X X_expected N/A N/A test_mc_stationary_distributions_state_values N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 0 N/A 0.2 0.8 0 N/A 0 0 1 N/A state_values N/A a b c N/A mc N/A MarkovChain P state_values state_values N/A stationary_dists_expected N/A N/A 0.25 0.75 0 N/A 0 0 1 N/A stationary_dists N/A mc stationary_distributions N/A N/A assert_allclose stationary_dists stationary_dists_expected N/A test_get_index N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A mc N/A MarkovChain P N/A N/A eq_ N/A N/A mc get_index 0 0 N/A N/A eq_ N/A N/A mc get_index 1 1 N/A N/A assert_raises ValueError N/A mc get_index 2 N/A N/A assert_array_equal N/A N/A mc get_index N/A 1 0 N/A 1 0 N/A N/A assert_raises ValueError N/A mc get_index N/A N/A 1 N/A N/A mc state_values N/A 1 2 N/A N/A eq_ N/A N/A mc get_index 1 0 N/A N/A eq_ N/A N/A mc get_index 2 1 N/A N/A assert_raises ValueError N/A mc get_index 0 N/A N/A assert_array_equal N/A N/A mc get_index N/A 2 1 N/A 1 0 N/A N/A assert_raises ValueError N/A mc get_index N/A N/A 1 N/A N/A mc state_values N/A N/A 1 2 N/A 3 4 N/A N/A eq_ N/A N/A mc get_index N/A 1 2 0 N/A N/A assert_raises ValueError N/A mc get_index 1 N/A N/A assert_array_equal N/A N/A mc get_index N/A N/A 3 4 N/A 1 2 N/A 1 0 N/A test_raises_value_error_non_2dim N/A N/A N/A N/A N/A Test with non 2dim input N/A mc N/A MarkovChain N/A N/A np array N/A 0.4 0.6 N/A N/A raises ValueError test_raises_value_error_non_sym N/A N/A N/A N/A N/A Test with non symmetric input N/A P N/A N/A np array N/A N/A 0.4 0.6 N/A N/A assert_raises ValueError MarkovChain P N/A N/A assert_raises ValueError MarkovChain N/A N/A sparse csr_matrix P N/A test_raises_value_error_non_nonnegative N/A N/A N/A N/A N/A Test with non nonnegative input N/A P N/A N/A np array N/A N/A 0.4 0.6 N/A -0.2 1.2 N/A N/A assert_raises ValueError MarkovChain P N/A N/A assert_raises ValueError MarkovChain N/A N/A sparse csr_matrix P N/A test_raises_value_error_non_sum_one N/A N/A N/A N/A N/A Test with input such that some of the rows does not sum to one N/A P N/A N/A np array N/A N/A 0.4 0.6 N/A 0.2 0.9 N/A N/A assert_raises ValueError MarkovChain P N/A N/A assert_raises ValueError MarkovChain N/A N/A sparse csr_matrix P N/A test_raises_value_error_simulate_init_out_of_range N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A mc N/A MarkovChain P N/A n N/A mc n N/A ts_length 3 N/A N/A assert_raises ValueError N/A mc simulate ts_length init n N/A N/A assert_raises ValueError N/A mc simulate ts_length init N/A N/A n 1 N/A N/A assert_raises ValueError N/A mc simulate ts_length init N/A 0 n N/A N/A assert_raises ValueError N/A mc simulate ts_length init N/A 0 N/A N/A n 1 N/A test_raises_non_homogeneous_state_values N/A N/A N/A N/A N/A P N/A N/A 0.4 0.6 N/A 0.2 0.8 N/A state_values N/A N/A 0 1 2 N/A N/A assert_raises ValueError MarkovChain P state_values state_values N/A N/A N/A __name__ __main__ N/A N/A sys N/A nose N/A argv N/A N/A sys argv N/A N/A N/A N/A argv append --verbose N/A N/A N/A argv append --nocapture N/A N/A N/A nose main argv argv defaultTest __file__