Module Import alias identifier Import alias ImportFrom alias Import alias identifier Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareEq NameLoad NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice BinOpSub BinOpDiv NameLoad Num Num BinOpAdd BinOpDiv NameLoad Num Num Slice BinOpSub BinOpDiv NameLoad Num Num BinOpAdd BinOpDiv NameLoad Num Num Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr BinOpBitAnd CompareEq NameLoad Num CompareEq NameLoad Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr BinOpBitAnd CompareEq NameLoad Num CompareEq NameLoad Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr BinOpBitAnd CompareEq NameLoad Num CompareEq NameLoad Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr BinOpBitAnd CompareEq NameLoad Num CompareEq NameLoad Num Num Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr BinOpBitAnd CompareEq NameLoad Num CompareEq NameLoad Num Num Return NameLoad decorator_list If CompareEq NameLoad Str body Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore BinOpMult Num Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMult NameLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword NameLoad While NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num
N/A N/A numpy np N/A time lib fft_convolve2d N/A matplotlib.pyplot plt N/A N/A N/A plt ion two_by_two N/A N/A state k N/A None N/A N/A 
    '2x2' automata state transition
    http://www.conwaylife.com/wiki/2x2
     N/A N/A k None N/A N/A N/A m n N/A state shape N/A k N/A N/A np zeros N/A m n N/A N/A k N/A N/A N/A N/A m 2 1 N/A N/A m 2 2 N/A N/A N/A n 2 1 N/A N/A n 2 2 N/A N/A np array N/A N/A 1 1 1 N/A 1 0 1 N/A 1 1 1 N/A b N/A N/A N/A fft_convolve2d state k round N/A c N/A N/A np zeros N/A b shape N/A N/A c N/A N/A N/A np where N/A N/A b 1 N/A state 1 1 N/A N/A c N/A N/A N/A np where N/A N/A b 2 N/A state 1 1 N/A N/A c N/A N/A N/A np where N/A N/A b 5 N/A state 1 1 N/A N/A c N/A N/A N/A np where N/A N/A b 3 N/A state 0 1 N/A N/A c N/A N/A N/A np where N/A N/A b 6 N/A state 0 1 N/A c N/A N/A N/A __name__ __main__ N/A N/A N/A m n N/A 100 100 N/A A N/A N/A np zeros N/A m n N/A A N/A 0.6 N/A N/A N/A N/A N/A np random random N/A m n reshape N/A m n N/A A N/A N/A A round N/A N/A N/A plt figure N/A img_plot N/A N/A plt imshow A interpolation nearest cmap N/A N/A plt cm gray N/A N/A N/A plt show block False N/A True N/A N/A A N/A two_by_two A N/A N/A N/A img_plot set_data A N/A N/A N/A plt draw N/A N/A N/A time sleep 0.01