Module Expr Str TryExcept body Import alias handlers ExceptHandler body Pass Import alias Import alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Return Call NameLoad NameLoad orelse Return Str decorator_list decorator_list Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults Str body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num For NameStore NameLoad body If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num If CompareLt NameLoad BinOpSub Call NameLoad NameLoad Num body If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad Num orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad If CompareIn Call NameLoad NameLoad ListLoad NameLoad NameLoad body For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body If NameLoad body Print BinOpAdd BinOpAdd Str NameLoad Str Return NameLoad If NameLoad body Print NameLoad Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad body TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler type NameLoad body TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler body Pass Assign NameStore BinOpAdd NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body If NameLoad body Print BinOpAdd BinOpAdd Str NameLoad Str Return NameLoad If NameLoad body Print NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Num Str body Expr Str If CompareIn Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad Return If CompareNotIn Call NameLoad SubscriptLoad NameLoad Index Num ListLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str orelse For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad NameLoad NameLoad body Return Num orelse Return Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body If NameLoad body Print BinOpAdd BinOpAdd Str NameLoad Str Return NameLoad If NameLoad body Print NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad body TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad handlers ExceptHandler body Pass Assign NameStore BinOpAdd NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad body Print Str Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Index AttributeLoad NameLoad attr Slice If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Raise NameLoad Str orelse For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr Num Num body Expr Str If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad NameLoad NameLoad NameLoad If CompareIn SubscriptLoad NameLoad Slice Num ListLoad Str Str body Return Call NameLoad NameLoad NameLoad NameLoad If CompareEq SubscriptLoad NameLoad Slice Num Str body Return Call NameLoad NameLoad NameLoad NameLoad If BoolOpOr CompareEq SubscriptLoad NameLoad Slice Num Str CompareEq SubscriptLoad NameLoad Slice Num Str body If CompareEq NameLoad NameLoad body Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Return Call NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num NameLoad BinOpAdd Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad body Expr Str If CompareEq NameLoad NameLoad body Assign NameStore TupleLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str TryExcept body Assign NameStore Call NameLoad Str NameLoad handlers ExceptHandler body Print BinOpAdd Str NameLoad Raise NameLoad Str Print NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad body Expr Str If CompareEq NameLoad NameLoad body Assign NameStore TupleLoad Num Num Num Num TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler body Print BinOpAdd Str NameLoad Raise NameLoad Str TryExcept body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr For NameStore Call NameLoad Call NameLoad NameLoad body If CompareNotEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Str Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Slice Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If CompareNotEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Str Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Index Num Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad Num body AugAssignAdd NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpAdd BinOpAdd NameLoad Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd ListLoad Num NameLoad handlers ExceptHandler type NameLoad body Print Str Assign NameStore NameLoad Print NameLoad Print Str NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore CompareEq Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num If BoolOpOr BoolOpAnd NameLoad CompareNotEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Print Str NameLoad Call NameLoad NameLoad Raise NameLoad Str If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq Call AttributeLoad NameLoad attr NameLoad Num body Return NameLoad TryExcept body Assign NameStore BinOpMult ListLoad Num Call NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body If CompareEq Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Break Assign AttributeStore NameLoad attr NameLoad Return BinOpMult NameLoad NameLoad handlers ExceptHandler body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num AttributeLoad NameLoad attr Num Num body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler body Print BinOpAdd Str NameLoad Raise NameLoad Str TryExcept body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Str Assign NameStore Call NameLoad NameLoad Num If CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler body Print Str Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq NameLoad Str body Pass orelse If CompareEq SubscriptLoad NameLoad Slice Num Str body Pass orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num orelse Print Str Print Str NameLoad Str NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv Call NameLoad NameLoad NameLoad If CompareNotEq BinOpMod NameLoad Num Num body Raise NameLoad Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore CompareEq Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num If BoolOpOr BoolOpAnd NameLoad CompareNotEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq SubscriptLoad NameLoad Slice Num Str body If CompareEq NameLoad Num body Assign NameStore BinOpDiv Call NameLoad NameLoad Num Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore BinOpAdd BinOpMult NameLoad Num BinOpMult BinOpMult NameLoad NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult NameLoad Num BinOpMult BinOpMult BinOpAdd NameLoad Num NameLoad NameLoad Print NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad TupleLoad NameLoad NameLoad orelse If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore CompareEq Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num If BoolOpOr BoolOpAnd NameLoad CompareNotEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body TryExcept body Assign AttributeStore NameLoad attr NameLoad Return NameLoad handlers ExceptHandler body Pass Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign TupleStore SubscriptStore NameLoad Index Num SubscriptStore NameLoad Index Num TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return handlers ExceptHandler body Pass TryExcept body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Num Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Num Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Assign NameStore BinOpAdd Str Call NameLoad Call NameLoad NameLoad Raise NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Num Str Assign NameStore Call NameLoad NameLoad Num If CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Print NameLoad NameLoad NameLoad AttributeLoad NameLoad attr handlers ExceptHandler body Print Str If CompareEq NameLoad Num body Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Return BinOpMult Call AttributeLoad NameLoad attr NameLoad Num orelse Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad Return BinOpMult Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num orelse Assign NameStore ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Str Print BinOpAdd NameLoad Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num AttributeLoad NameLoad attr Str body Expr Str Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Print Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign NameStore CompareEq Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num If BoolOpAnd NameLoad CompareNotEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice Num NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Num orelse Assign NameStore ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Str Print BinOpAdd NameLoad Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad BinOpMult Num Num body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num Num TupleLoad Num Num orelse If CompareGt Call NameLoad NameLoad BinOpMult Num Num body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num Num TupleLoad Num Num orelse If CompareGt Call NameLoad NameLoad BinOpMult Num Num body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num Num TupleLoad Num Num orelse If CompareGt Call NameLoad NameLoad BinOpMult Num Num body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num Num TupleLoad Num Num orelse Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice BinOpMult Num Num TupleLoad Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Print NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Print Str For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Print Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str If CompareNotIn Call NameLoad SubscriptLoad NameLoad Index Num ListLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad ListLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore BinOpMult ListLoad Num Call NameLoad SubscriptLoad NameLoad Index Num For NameStore NameLoad body If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Assign NameStore BinOpMult ListLoad Num Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num body Expr Str If CompareNotIn Call NameLoad SubscriptLoad NameLoad Index Num ListLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad ListLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore BinOpMult ListLoad Num Call NameLoad SubscriptLoad NameLoad Index Num For NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call NameLoad Call NameLoad NameLoad NameLoad NameLoad For NameStore NameLoad body If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Assign NameStore BinOpMult ListLoad Num Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult Str BinOpSub SubscriptLoad NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn Call NameLoad SubscriptLoad NameLoad Index Num ListLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body If BoolOpOr CompareEq SubscriptLoad NameLoad Index NameLoad ListLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str CompareEq SubscriptLoad NameLoad Index NameLoad Str body Assign NameStore BinOpAdd NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Delete SubscriptDel NameLoad Index NameLoad Assign NameStore BinOpMult ListLoad Num Call NameLoad SubscriptLoad NameLoad Index Num For NameStore NameLoad body If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str orelse If BoolOpOr CompareEq NameLoad ListLoad Str CompareEq NameLoad Str body Assign NameStore BinOpMult ListLoad Num NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpMult Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore NameLoad orelse If CompareIn NameLoad ListLoad Str Str body Assign NameStore NameLoad orelse Raise NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad attr Assign NameStore BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad Num body For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Num If BoolOpAnd CompareNotEq NameLoad Num CompareEq AttributeLoad NameLoad attr Str body For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Str Assign NameStore Str While CompareNotEq Call NameLoad NameLoad Num body Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Slice NameLoad BinOpAdd NameLoad Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Print BinOpMod Str Call NameLoad BinOpSub NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler body Raise NameLoad Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Str Assign NameStore Call NameLoad NameLoad Num Print NameLoad If CompareEq Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Print Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str body Expr Str If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Str body If BoolOpOr CompareGt Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num CompareLt Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num body Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Print NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Str NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str If CompareNotIn Call NameLoad AttributeLoad NameLoad attr ListLoad Num Num body Raise NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str body Assign NameStore Str orelse Assign NameStore Str orelse Assign NameStore Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Str orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpMult NameLoad NameLoad NameLoad Print NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Slice Num Str decorator_list
N/A N/A 
Defines a number of functions for pseudo-command-line OS functionality.

    cd(directory)
    pwd                 <-- can be used WITHOUT parens
    ls(d='.')
    rename(from,to)
    get(namepatterns,verbose=1)
    getstrings(namepatterns,verbose=1)
    put(outlist,filename,writetype='w')
    aget(namepatterns,verbose=1)
    aput(outarray,filename,writetype='w')
    bget(filename,numslices=1,xsize=64,ysize=64)
    braw(filename,btype)
    bput(outarray,filename,writeheader=0,packstring='h',writetype='wb')
    mrget(filename)
    find_dirs(sourcedir)
 N/A N/A N/A mmapfile N/A N/A N/A N/A N/A pstat N/A glob re string types os numpy struct copy time tempfile sys types * N/A N numpy N/A __version__ 0.5 wrap N/A N/A f N/A N/A N/A 
Wraps a function so that if it's entered *by itself*
in the interpreter without ()'s, it gets called anyway
 W N/A N/A __init__ N/A N/A self f N/A N/A N/A N/A self f f N/A __repr__ N/A N/A self N/A N/A N/A x N/A apply N/A self f N/A x N/A N/A N/A repr x N/A N/A N/A N/A N/A N/A W f N/A cd N/A N/A directory N/A N/A N/A 
Changes the working python directory for the interpreter.

Usage:   cd(directory)      where 'directory' is a string
 N/A N/A N/A os chdir directory N/A N/A pwd N/A N/A N/A N/A N/A 
Changes the working python directory for the interpreter.

Usage:   pwd       (no parens needed)
 N/A N/A N/A os getcwd N/A N/A pwd N/A wrap pwd ls N/A N/A d N/A . N/A N/A 
Produces a directory listing.  Default is the current directory.

Usage:   ls(d='.')
 N/A N/A N/A os system N/A ls  d N/A None N/A rename N/A N/A source dest N/A N/A N/A 
Renames files specified by UNIX inpattern to those specified by UNIX
outpattern.  Can only handle a single '*' in the two patterns!!!

Usage:   rename (source, dest)     e.g., rename('*.txt', '*.c')
 N/A infiles N/A N/A glob glob source N/A outfiles N/A N/A incutindex N/A N/A string index source * N/A outcutindex N/A N/A string index source * N/A findpattern1 N/A source N/A 0 incutindex N/A findpattern2 N/A source N/A N/A incutindex 1 N/A replpattern1 N/A dest N/A 0 incutindex N/A replpattern2 N/A dest N/A N/A incutindex 1 N/A fname infiles N/A N/A N/A incutindex 0 N/A N/A newname N/A N/A re sub findpattern1 replpattern1 fname 1 N/A N/A outcutindex N/A N/A len dest 1 N/A N/A N/A incutindex 0 N/A N/A lastone N/A N/A string rfind newname replpattern2 N/A newname N/A N/A newname N/A 0 lastone N/A N/A re sub findpattern2 replpattern2 N/A fname N/A lastone 1 N/A N/A lastone N/A N/A string rfind fname findpattern2 N/A N/A lastone -1 N/A N/A newname N/A fname N/A 0 lastone N/A newname N/A newname N/A N/A re sub findpattern2 replpattern2 N/A fname N/A lastone 1 N/A N/A N/A os rename fname newname N/A N/A get N/A N/A namepatterns verbose N/A 1 N/A N/A 
Loads a list of lists from text files (specified by a UNIX-style
wildcard filename pattern) and converts all numeric values to floats.
Uses the glob module for filename pattern conversion.  Loaded filename
is printed if verbose=1.

Usage:   get (namepatterns,verbose=1)
Returns: a 1D or 2D list of lists from whitespace delimited text files
         specified by namepatterns; numbers that can be converted to floats
         are so converted
 N/A fnames N/A N/A N/A N/A type namepatterns N/A ListType TupleType N/A N/A item namepatterns N/A N/A fnames N/A fnames N/A N/A glob glob item N/A N/A fnames N/A N/A glob glob namepatterns N/A N/A N/A len fnames 0 N/A N/A verbose N/A N/A N/A N/A NO FILENAMES MATCH ( namepatterns ) !! N/A None N/A verbose N/A N/A fnames N/A elements N/A N/A i N/A range N/A len fnames N/A N/A file N/A open N/A fnames N/A i N/A newelements N/A map N/A string split N/A N/A file readlines N/A i N/A range N/A len newelements N/A N/A j N/A range N/A len N/A newelements N/A i N/A N/A N/A N/A N/A N/A newelements N/A i N/A j N/A N/A string atoi N/A N/A newelements N/A i N/A j N/A N/A N/A ValueError N/A N/A N/A N/A N/A N/A newelements N/A i N/A j N/A N/A string atof N/A N/A newelements N/A i N/A j N/A N/A N/A N/A N/A elements N/A elements newelements N/A N/A N/A len elements 1 N/A N/A elements N/A elements N/A 0 N/A elements N/A getstrings N/A N/A namepattern verbose N/A 1 N/A N/A 
Loads a (set of) text file(s), with all elements left as string type.
Uses UNIX-style wildcards (i.e., function uses glob).  Loaded filename
is printed if verbose=1.

Usage:   getstrings (namepattern, verbose=1)
Returns: a list of strings, one per line in each text file specified by
         namepattern
 N/A fnames N/A N/A glob glob namepattern N/A N/A N/A len fnames 0 N/A N/A verbose N/A N/A N/A N/A NO FILENAMES MATCH ( namepattern ) !! N/A None N/A verbose N/A N/A fnames N/A elements N/A N/A filename fnames N/A N/A file N/A open filename N/A newelements N/A map N/A string split N/A N/A file readlines N/A elements N/A elements newelements N/A elements N/A put N/A N/A outlist fname writetype oneperline delimit N/A w 0 N/A N/A 
Writes a passed mixed-type list (str and/or numbers) to an output
file, and then closes the file.  Default is overwrite the destination
file.

Usage:   put (outlist,fname,writetype='w',oneperline=0,delimit=' ')
Returns: None
 N/A N/A N/A type outlist N/A N/A N ArrayType N/A N/A N/A aput outlist fname writetype N/A N/A N/A N/A type N/A outlist N/A 0 N/A ListType TupleType N/A N/A outfile N/A open fname writetype N/A N/A oneperline N/A N/A outlist N/A N/A pstat list2string outlist delimit N/A N/A N/A outfile write outlist N/A N/A N/A outfile write N/A N/A item outlist N/A N/A N/A N/A outfile write N/A N/A str item N/A N/A N/A outfile close N/A N/A outfile N/A open fname writetype N/A row outlist N/A N/A N/A N/A outfile write N/A N/A pstat list2string row delimit N/A N/A N/A outfile write N/A N/A N/A outfile close N/A None N/A isstring N/A N/A x N/A N/A N/A N/A N/A type x StringType N/A N/A 1 N/A N/A 0 N/A aget N/A N/A namepattern verbose N/A 1 N/A N/A 
Loads an array from 2D text files (specified by a UNIX-style wildcard
filename pattern).  ONLY 'GET' FILES WITH EQUAL NUMBERS OF COLUMNS
ON EVERY ROW (otherwise returned array will be zero-dimensional).

Usage:   aget (namepattern)
Returns: an array of integers, floats or objects (type='O'), depending on the
         contents of the files specified by namepattern
 N/A fnames N/A N/A glob glob namepattern N/A N/A N/A len fnames 0 N/A N/A verbose N/A N/A N/A N/A NO FILENAMES MATCH ( namepattern ) !! N/A None N/A verbose N/A N/A fnames N/A elements N/A N/A filename fnames N/A N/A file N/A open filename N/A newelements N/A N/A file readlines N/A del_list N/A N/A row N/A range N/A len newelements N/A N/A N/A N/A N/A N/A newelements N/A row N/A 0 % N/A N/A N/A newelements N/A row N/A 0 # N/A N/A len N/A newelements N/A row 1 N/A N/A N/A N/A del_list append row N/A N/A N/A del_list reverse N/A i del_list N/A N/A N/A N/A newelements pop i N/A newelements N/A map N/A string split newelements N/A i N/A range N/A len newelements N/A N/A j N/A range N/A len N/A newelements N/A i N/A N/A N/A N/A N/A N/A newelements N/A i N/A j N/A N/A string atof N/A N/A newelements N/A i N/A j N/A N/A N/A N/A N/A elements N/A elements newelements N/A row N/A range N/A len elements N/A N/A N/A N/A N/A N/A N add reduce N/A N/A N array N/A map isstring N/A elements N/A row N/A len N/A elements N/A row N/A N/A A row of strings was found.  Returning a LIST. N/A elements N/A N/A N/A elements N/A N/A N array elements N/A N/A N/A TypeError N/A N/A elements N/A N/A N array elements O N/A elements N/A aput N/A N/A outarray fname writetype delimit N/A w N/A N/A 
Sends passed 1D or 2D array to an output file and closes the file.

Usage:   aput (outarray,fname,writetype='w',delimit=' ')
Returns: None
 N/A outfile N/A open fname writetype N/A N/A N/A len N/A outarray shape 1 N/A N/A outarray N/A outarray N/A N/A N/A N NewAxis N/A N/A N/A N/A len N/A outarray shape 2 N/A N/A TypeError put() and aput() require 1D or 2D arrays.  Otherwise use some kind of pickling. N/A N/A row outarray N/A N/A N/A N/A outfile write N/A N/A string join N/A map str row delimit N/A N/A N/A outfile write N/A N/A N/A outfile close N/A None N/A bget N/A N/A imfile shp unpackstr bytesperpixel sliceinit N/A None N/A N int16 2.0 0 N/A N/A 
Reads in a binary file, typically with a .bshort or .bfloat extension.
If so, the last 3 parameters are set appropriately.  If not, the last 3
parameters default to reading .bshort files (2-byte integers in big-endian
binary format).

Usage:   bget(imfile,shp=None,unpackstr=N.int16,bytesperpixel=2.0,sliceinit=0)
 N/A N/A N/A imfile N/A 3 COR N/A N/A N/A CORget imfile N/A N/A N/A imfile N/A -2 MR N/A N/A N/A mrget imfile unpackstr N/A N/A N/A imfile N/A -4 BRIK N/A N/A N/A brikget imfile unpackstr shp N/A N/A N/A imfile N/A -3 N/A mnc MNC N/A N/A N/A mincget imfile unpackstr shp N/A N/A N/A imfile N/A -3 img N/A N/A N/A mghbget imfile unpackstr shp N/A N/A N/A N/A imfile N/A -6 bshort N/A N/A imfile N/A -6 bfloat N/A N/A N/A shp None N/A N/A N/A mghbget imfile unpackstr unpackstr bytesperpixel bytesperpixel sliceinit sliceinit N/A N/A N/A mghbget imfile N/A shp N/A 0 N/A shp N/A 1 N/A shp N/A 2 unpackstr bytesperpixel sliceinit N/A CORget N/A N/A infile N/A N/A N/A 
Reads a binary COR-nnn file (flattening file).

Usage:   CORget(imfile)
Returns: 2D array of 16-bit ints
 N/A d N/A braw infile N/A N Int8 N/A N/A d shape N/A 256 256 N/A d N/A N/A N where N/A N/A N greater_equal d 0 d N/A 256 d N/A d N/A mincget N/A N/A imfile unpackstr shp N/A N/A N int16 None N/A N/A 
Loads in a .MNC file.

Usage:  mincget(imfile,unpackstr=N.int16,shp=None)  default shp = -1,20,64,64
 N/A N/A shp None N/A N/A shp N/A -1 20 64 64 N/A N/A N/A os system N/A N/A mincextract -short -range 0 4095 -image_range 0 4095  imfile  > minctemp.bshort N/A N/A N/A d N/A braw minctemp.bshort unpackstr N/A N/A N/A N/A N/A Couldn't find file:   imfile N/A IOError Couldn't find file in mincget() N/A shp N/A d shape N/A N/A d shape shp N/A N/A N/A os system rm minctemp.bshort N/A d N/A brikget N/A N/A imfile unpackstr shp N/A N/A N int16 None N/A N/A 
Gets an AFNI BRIK file.

Usage:  brikget(imfile,unpackstr=N.int16,shp=None)  default shp: (-1,48,61,51)
 N/A N/A shp None N/A N/A shp N/A -1 48 61 51 N/A N/A N/A file N/A open imfile rb N/A N/A N/A N/A N/A Couldn't find file:   imfile N/A IOError Couldn't find file in brikget() N/A N/A N/A header N/A N/A imfile N/A 0 -4 HEAD N/A lines N/A N/A N/A open header readlines N/A i N/A range N/A len lines N/A N/A N/A N/A N/A string find N/A lines N/A i DATASET_DIMENSIONS -1 N/A N/A dims N/A N/A string split N/A N/A lines N/A N/A i 2 N/A 0 N/A N/A string find N/A lines N/A N/A i 2  0 N/A dims N/A map N/A string atoi dims N/A N/A N/A N/A string find N/A lines N/A i BRICK_FLOAT_FACS -1 N/A N/A count N/A N/A string atoi N/A N/A N/A string split N/A lines N/A N/A i 1 N/A 2 N/A mults N/A N/A j N/A range N/A int N/A N/A N ceil N/A count 5.0 N/A N/A mults N/A map N/A string atof N/A N/A string split N/A lines N/A N/A N/A i 2 j N/A mults N/A N/A N array mults N/A N/A N/A dims reverse N/A shp N/A N/A -1 dims N/A N/A N/A IOError N/A N/A No header file.  Continuing ... N/A lines None N/A shp N/A Using unpackstr: unpackstr N/A file N/A open imfile rb N/A bdata N/A N/A file read N/A bdata N/A N/A N fromstring bdata unpackstr N/A littleEndian N/A N/A N/A struct pack i 1 N/A N/A struct pack <i 1 N/A N/A N/A littleEndian N/A N/A N/A N/A os uname N/A 0 Linux N/A N/A max bdata 1e+30 N/A N/A bdata N/A N/A bdata byteswapped N/A N/A N/A N/A bdata shape shp N/A N/A N/A N/A Incorrect shape ... shp N/A len bdata N/A ValueError Incorrect shape for file size N/A N/A N/A len bdata 1 N/A N/A bdata N/A bdata N/A 0 N/A N/A N/A N/A N sum mults 0 N/A N/A bdata N/A N/A N/A multshape N/A N/A 1 N/A len N/A bdata shape N/A i N/A range N/A len N/A bdata shape N/A N/A N/A N/A len mults N/A N/A bdata shape N/A i N/A N/A N/A multshape N/A i N/A len mults N/A N/A N/A mults shape multshape N/A N/A bdata mults N/A N/A N/A N/A bdata N/A mghbget N/A N/A imfile numslices xsize ysize unpackstr bytesperpixel sliceinit N/A -1 64 64 N/A N int16 2.0 0 N/A N/A 
Reads in a binary file, typically with a .bshort or .bfloat extension.
If so, the last 3 parameters are set appropriately.  If not, the last 3
parameters default to reading .bshort files (2-byte integers in big-endian
binary format).

Usage:   mghbget(imfile, numslices=-1, xsize=64, ysize=64,
                unpackstr=N.int16, bytesperpixel=2.0, sliceinit=0)
 N/A N/A N/A file N/A open imfile rb N/A N/A N/A N/A N/A Couldn't find file:   imfile N/A IOError Couldn't find file in bget() N/A N/A N/A header N/A N/A imfile N/A 0 -6 hdr N/A vals N/A get header 0 N/A N/A N/A type N/A vals N/A 0 ListType N/A N/A xsize N/A int N/A N/A vals N/A 0 N/A 0 N/A ysize N/A int N/A N/A vals N/A 0 N/A 1 N/A numslices N/A int N/A N/A vals N/A 0 N/A 2 N/A N/A xsize N/A int N/A vals N/A 0 N/A ysize N/A int N/A vals N/A 1 N/A numslices N/A int N/A vals N/A 2 N/A N/A N/A N/A No header file.  Continuing ... N/A suffix N/A imfile N/A -6 N/A N/A suffix bshort N/A N/A N/A N/A N/A N/A suffix N/A -3 img N/A N/A N/A N/A N/A suffix bfloat N/A N/A unpackstr N/A N Float32 N/A bytesperpixel 4.0 N/A sliceinit 0.0 N/A N/A Not a bshort, bfloat or img file. N/A Using unpackstr: unpackstr , bytesperpixel= bytesperpixel N/A imsize N/A xsize ysize N/A file N/A open imfile rb N/A bdata N/A N/A file read N/A numpixels N/A N/A len bdata bytesperpixel N/A N/A N/A numpixels 1 0 N/A N/A ValueError Incorrect file size in fmri.bget() N/A N/A bdata N/A N/A N fromstring bdata unpackstr N/A littleEndian N/A N/A N/A struct pack i 1 N/A N/A struct pack <i 1 N/A N/A N/A littleEndian N/A N/A N/A N/A os uname N/A 0 Linux N/A N/A max bdata 1e+30 N/A N/A bdata N/A N/A bdata byteswapped N/A N/A N/A suffix N/A -3 img N/A N/A N/A numslices -1 N/A N/A numslices N/A N/A len bdata 8200 N/A xsize 64 N/A ysize 128 N/A slices N/A N/A N zeros N/A numslices xsize ysize N/A N Int N/A i N/A range numslices N/A N/A istart N/A N/A i 8 N/A N/A i xsize ysize N/A iend N/A N/A i 8 N/A N/A N/A i 1 xsize ysize N/A i istart iend N/A N/A slices N/A i N/A N/A N reshape N/A N/A N array N/A bdata N/A istart iend N/A xsize ysize N/A N/A N/A numslices 1 N/A N/A slices N/A N/A N reshape N/A N/A N array bdata N/A xsize ysize N/A N/A slices N/A N/A N reshape N/A N/A N array bdata N/A numslices xsize ysize N/A N/A N/A len slices 1 N/A N/A slices N/A slices N/A 0 N/A slices N/A braw N/A N/A fname btype shp N/A None N/A N/A 
Opens a binary file, unpacks it, and returns a flat array of the
type specified.  Use Numeric types ... N.Float32, N.Int64, etc.

Usage:   braw(fname,btype,shp=None)
Returns: flat array of floats, or ints (if btype=N.int16)
 N/A file N/A open fname rb N/A bdata N/A N/A file read N/A bdata N/A N/A N fromstring bdata btype N/A littleEndian N/A N/A N/A struct pack i 1 N/A N/A struct pack <i 1 N/A N/A N/A littleEndian N/A N/A N/A N/A os uname N/A 0 Linux N/A N/A max bdata 1e+30 N/A N/A bdata N/A N/A bdata byteswapped N/A shp N/A N/A N/A N/A N/A bdata shape shp N/A bdata N/A N/A N/A N/A N/A N/A N/A N array bdata N/A glget N/A N/A fname btype N/A N/A N/A 
Load in a file containing pixels from glReadPixels dump.

Usage:   glget(fname,btype)
Returns: array of 'btype elements with shape 'shape', suitable for im.ashow()
 N/A d N/A braw fname btype N/A d N/A d N/A 8 N/A f N/A open fname rb N/A shp N/A N/A f read 8 N/A N/A N/A f close N/A shp N/A N/A N fromstring shp N/A N Int N/A N/A N/A shp N/A 0 N/A shp N/A 1 N/A N/A shp N/A 1 N/A shp N/A 0 N/A N/A N/A carray N/A N/A N reshape d shp N/A N/A N/A N/A N/A N/A N/A N/A r N/A N/A d N/A 0 3 0 N/A g N/A N/A d N/A 1 3 0 N/A b N/A N/A d N/A 2 3 0 N/A N/A r shape shp N/A N/A g shape shp N/A N/A b shape shp N/A carray N/A N/A N array N/A r g b N/A N/A N/A N/A outstr N/A glget: shape not correct for data of length  N/A str N/A len d N/A ValueError outstr N/A carray N/A mget N/A N/A fname btype N/A N/A N/A 
Load in a file that was saved from matlab

Usage:   mget(fname,btype)
 N/A d N/A braw fname btype N/A N/A N/A header N/A N/A fname N/A 0 -6 hdr N/A vals N/A get header 0 N/A N/A N/A type N/A vals N/A 0 ListType N/A N/A xsize N/A int N/A N/A vals N/A 0 N/A 0 N/A ysize N/A int N/A N/A vals N/A 0 N/A 1 N/A numslices N/A int N/A N/A vals N/A 0 N/A 2 N/A N/A xsize N/A int N/A vals N/A 0 N/A ysize N/A int N/A vals N/A 1 N/A numslices N/A int N/A vals N/A 2 N/A xsize ysize numslices N/A d shape N/A N/A N/A N/A No header file.  Continuing ... N/A N/A numslices 1 N/A N/A N/A d shape N/A ysize xsize N/A N/A N/A N/A N transpose d 1 N/A N/A N/A d shape N/A numslices ysize xsize N/A N/A N/A N/A N transpose d 1 N/A mput N/A N/A outarray fname writeheader btype N/A 0 N/A N int16 N/A N/A 
Save a file for use in matlab.
 N/A outarray N/A N/A N transpose outarray N/A outdata N/A N/A N/A N/A N ravel outarray astype btype N/A outdata N/A N/A outdata tostring N/A outfile N/A open fname wb N/A N/A N/A outfile write outdata N/A N/A N/A outfile close N/A N/A writeheader 1 N/A N/A N/A N/A suffixindex N/A N/A string rfind fname . N/A hdrname N/A fname N/A 0 suffixindex N/A N/A N/A ValueError N/A N/A hdrname fname N/A N/A N/A len N/A outarray shape 2 N/A N/A hdr N/A N/A N/A outarray shape N/A 1 N/A N/A outarray shape N/A 0 1 0 N/A N/A hdr N/A N/A N/A outarray shape N/A 2 N/A N/A outarray shape N/A 1 N/A N/A outarray shape N/A 0 0 N/A N/A hdrname .hdr N/A outfile N/A open N/A hdrname .hdr w N/A N/A N/A outfile write N/A N/A pstat list2string hdr N/A N/A N/A outfile close N/A None N/A bput N/A N/A outarray fname writeheader packtype writetype N/A 0 N/A N int16 wb N/A N/A 
Writes the passed array to a binary output file, and then closes
the file.  Default is overwrite the destination file.

Usage:   bput (outarray,filename,writeheader=0,packtype=N.int16,writetype='wb')
 N/A suffix N/A fname N/A -6 N/A N/A suffix bshort N/A N/A packtype N/A N int16 N/A N/A N/A suffix bfloat N/A N/A packtype N/A N Float32 N/A N/A Not a bshort or bfloat file.  Using packtype= packtype N/A outdata N/A N/A N/A N/A N ravel outarray astype packtype N/A littleEndian N/A N/A N/A struct pack i 1 N/A N/A struct pack <i 1 N/A N/A littleEndian N/A N/A N/A N/A os uname N/A 0 Linux N/A N/A outdata N/A N/A outdata byteswapped N/A outdata N/A N/A outdata tostring N/A outfile N/A open fname writetype N/A N/A N/A outfile write outdata N/A N/A N/A outfile close N/A N/A writeheader 1 N/A N/A N/A N/A suffixindex N/A N/A string rfind fname . N/A hdrname N/A fname N/A 0 suffixindex N/A N/A N/A ValueError N/A N/A hdrname fname N/A N/A N/A len N/A outarray shape 2 N/A N/A hdr N/A N/A N/A outarray shape N/A 0 N/A N/A outarray shape N/A 1 1 0 N/A N/A hdr N/A N/A N/A outarray shape N/A 1 N/A N/A outarray shape N/A 2 N/A N/A outarray shape N/A 0 0 N/A N/A hdrname .hdr N/A outfile N/A open N/A hdrname .hdr w N/A N/A N/A outfile write N/A N/A pstat list2string hdr N/A N/A N/A outfile close N/A None N/A mrget N/A N/A fname datatype N/A N/A N int16 N/A N/A 
Opens a binary .MR file and clips off the tail data portion of it, returning
the result as an array.

Usage:   mrget(fname,datatype=N.int16)
 N/A d N/A braw fname datatype N/A N/A N/A len d N/A 512 512 N/A N/A N/A N/A N reshape N/A d N/A N/A -512 512 N/A 512 512 N/A N/A N/A N/A len d N/A 256 256 N/A N/A N/A N/A N reshape N/A d N/A N/A -256 256 N/A 256 256 N/A N/A N/A N/A len d N/A 128 128 N/A N/A N/A N/A N reshape N/A d N/A N/A -128 128 N/A 128 128 N/A N/A N/A N/A len d N/A 64 64 N/A N/A N/A N/A N reshape N/A d N/A N/A -64 64 N/A 64 64 N/A N/A N/A N/A N reshape N/A d N/A N/A -32 32 N/A 32 32 N/A quickload N/A N/A fname linestocut N/A 4 N/A N/A 
Quickly loads in a long text file, chopping off first n 'linestocut'.

Usage:   quickload(fname,linestocut=4)
Returns: array filled with data in fname
 N/A f N/A open fname r N/A d N/A N/A f readlines N/A N/A N/A f close N/A fname read in. N/A d N/A d N/A linestocut N/A d N/A map N/A string split d N/A Done with string.split on lines. N/A i N/A range N/A len d N/A N/A N/A d N/A i N/A map N/A string atoi N/A d N/A i N/A Conversion to ints done. N/A N/A N/A N array d N/A writedelimited N/A N/A listoflists delimiter file writetype N/A w N/A N/A 
Writes a list of lists in columns, separated by character(s) delimiter
to specified file.  File-overwrite is the default.

Usage:   writedelimited (listoflists,delimiter,filename,writetype='w')
Returns: None
 N/A N/A N/A type N/A listoflists N/A 0 N/A ListType TupleType N/A N/A listoflists N/A listoflists N/A outfile N/A open file writetype N/A rowstokill N/A N/A list2print N/A N/A copy deepcopy listoflists N/A i N/A range N/A len listoflists N/A N/A N/A N/A N/A listoflists N/A i N/A N/A N/A listoflists N/A i N/A N/A listoflists N/A i dashes N/A N/A rowstokill N/A rowstokill N/A i N/A N/A N/A rowstokill reverse N/A row rowstokill N/A N/A N/A list2print N/A row N/A maxsize N/A N/A 0 N/A len N/A list2print N/A 0 N/A row listoflists N/A N/A N/A N/A row N/A N/A row N/A N/A N/A N/A outfile write N/A N/A N/A N/A row N/A dashes N/A row dashes N/A N/A dashes N/A N/A 0 N/A len maxsize N/A j N/A range N/A len maxsize N/A N/A N/A dashes N/A j ------ N/A N/A N/A outfile write N/A N/A pstat linedelimited dashes delimiter N/A N/A N/A N/A outfile write N/A N/A pstat linedelimited row delimiter N/A N/A N/A outfile write N/A N/A N/A outfile close N/A None N/A writecc N/A N/A listoflists file writetype extra N/A w 2 N/A N/A 
Writes a list of lists to a file in columns, customized by the max
size of items within the columns (max size of items in col, +2 characters)
to specified file.  File-overwrite is the default.

Usage:   writecc (listoflists,file,writetype='w',extra=2)
Returns: None
 N/A N/A N/A type N/A listoflists N/A 0 N/A ListType TupleType N/A N/A listoflists N/A listoflists N/A outfile N/A open file writetype N/A rowstokill N/A N/A list2print N/A N/A copy deepcopy listoflists N/A i N/A range N/A len listoflists N/A N/A N/A N/A N/A listoflists N/A i N/A N/A N/A listoflists N/A i N/A N/A listoflists N/A i dashes N/A N/A rowstokill N/A rowstokill N/A i N/A N/A N/A rowstokill reverse N/A row rowstokill N/A N/A N/A list2print N/A row N/A maxsize N/A N/A 0 N/A len N/A list2print N/A 0 N/A col N/A range N/A len N/A list2print N/A 0 N/A N/A items N/A N/A pstat colex list2print col N/A items N/A map N/A pstat makestr items N/A N/A maxsize N/A col N/A N/A max N/A map len items extra N/A row listoflists N/A N/A N/A N/A row N/A N/A row N/A N/A N/A N/A outfile write N/A N/A N/A N/A row N/A dashes N/A row dashes N/A N/A dashes N/A N/A 0 N/A len maxsize N/A j N/A range N/A len maxsize N/A N/A N/A dashes N/A j N/A - N/A N/A maxsize N/A j 2 N/A N/A N/A outfile write N/A N/A pstat lineincustcols dashes maxsize N/A N/A N/A N/A outfile write N/A N/A pstat lineincustcols row maxsize N/A N/A N/A outfile write N/A N/A N/A outfile close N/A None N/A writefc N/A N/A listoflists colsize file writetype N/A w N/A N/A 
Writes a list of lists to a file in columns of fixed size.  File-overwrite
is the default.

Usage:   writefc (listoflists,colsize,file,writetype='w')
Returns: None
 N/A N/A N/A type listoflists N/A N ArrayType N/A N/A listoflists N/A N/A listoflists tolist N/A N/A N/A type N/A listoflists N/A 0 N/A ListType TupleType N/A N/A listoflists N/A listoflists N/A outfile N/A open file writetype N/A rowstokill N/A N/A list2print N/A N/A copy deepcopy listoflists N/A i N/A range N/A len listoflists N/A N/A N/A N/A N/A listoflists N/A i N/A N/A N/A listoflists N/A i N/A N/A listoflists N/A i dashes N/A N/A rowstokill N/A rowstokill N/A i N/A N/A N/A rowstokill reverse N/A row rowstokill N/A N/A N/A list2print N/A row N/A n N/A N/A 0 N/A len N/A list2print N/A 0 N/A row listoflists N/A N/A N/A N/A row N/A N/A row N/A N/A N/A N/A outfile write N/A N/A N/A N/A row N/A dashes N/A row dashes N/A N/A dashes N/A N/A 0 colsize N/A j N/A range N/A len n N/A N/A N/A dashes N/A j N/A - colsize N/A N/A N/A outfile write N/A N/A pstat lineincols dashes colsize N/A N/A N/A N/A outfile write N/A N/A pstat lineincols row colsize N/A N/A N/A outfile write N/A N/A N/A outfile close N/A None N/A load N/A N/A fname lines_to_ignore type N/A 4 i N/A N/A 
Load in huge, flat, 2D text files.  Can handle differing line-lengths AND
can strip #/% on UNIX (or with a better NT grep).  Requires wc, grep, and
mmapfile.lib/.pyd. Type can be 'i', 'f' or 'd', for ints, floats or doubles,
respectively.  Lines_to_ignore determines how many lines at the start of the
file to ignore (required for non-working grep).

Usage:   load(fname,lines_to_ignore=4,type='i')
Returns: numpy array of specified type
 N/A start N/A N/A time time N/A N/A type i N/A N/A intype int N/A N/A N/A type N/A f d N/A N/A intype float N/A N/A ValueError type can be 'i', 'f' or 'd' in load() N/A tmpname N/A N/A tempfile mktemp N/A N/A N/A sys platform win32 N/A N/A cmd N/A N/A N/A grep.exe -v '%'  fname  >  tmpname N/A cmd N/A N/A N/A os system cmd N/A N/A cmd N/A N/A N/A cat  fname  | grep -v '%' |grep -v '#' >  tmpname N/A cmd N/A N/A N/A os system cmd N/A wc N/A N/A string split N/A N/A N/A N/A os popen N/A wc  tmpname read N/A numlines N/A N/A int N/A wc N/A 0 lines_to_ignore N/A tfp N/A open tmpname N/A N/A lines_to_ignore 0 N/A N/A i N/A range lines_to_ignore N/A N/A junk N/A N/A tfp readline N/A numcols N/A len N/A N/A string split N/A N/A tfp readline N/A N/A N/A tfp close N/A a N/A N/A N zeros N/A numlines numcols type N/A block 65536 N/A data N/A N/A mmapfile mmapfile tmpname 0 N/A N/A N/A lines_to_ignore 0 N/A N/A sys platform win32 N/A N/A i N/A range lines_to_ignore N/A N/A junk N/A N/A data readline N/A i 0 N/A d N/A carryover N/A N/A N/A len d 0 N/A N/A d N/A carryover N/A N/A data read block N/A cutindex N/A N/A string rfind d N/A carryover N/A d N/A N/A cutindex 1 N/A d N/A d N/A N/A cutindex 1 N/A d N/A map intype N/A N/A string split d N/A N/A a N/A i N/A i N/A len d d N/A i N/A i N/A len d N/A end N/A N/A time time N/A N/A %d sec N/A round N/A end start 2 N/A N/A N/A data close N/A N/A N/A os remove tmpname N/A N/A N/A N reshape a N/A numlines numcols N/A find_dirs N/A N/A sourcedir N/A N/A N/A Finds and returns all directories in sourcedir

Usage:   find_dirs(sourcedir)
Returns: list of directory names (potentially empty)
 N/A files N/A N/A os listdir sourcedir N/A dirs N/A N/A fname files N/A N/A N/A N/A N/A os path isdir N/A N/A N/A os path join sourcedir fname N/A N/A N/A N/A dirs append fname N/A dirs N/A N/A save aput binget N/A N/A fname btype N/A None N/A N/A 
Loads a binary file from disk. Assumes associated hdr file is in same
location. You can force an unpacking type, or else it tries to figure
it out from the filename (4th-to-last character). Hence, readable file
formats are ...

1bin=Int8, sbin=int16, ibin=Int32, fbin=Float32, dbin=Float64, etc.

Usage:   binget(fname,btype=None)
Returns: data in file fname of type btype
 N/A file N/A open fname rb N/A bdata N/A N/A file read N/A N/A N/A file close N/A N/A btype N/A N/A btype N/A fname N/A -4 N/A N/A N/A bdata N/A N/A N fromstring bdata btype N/A N/A N/A N/A ValueError Bad unpacking type. N/A N/A N/A N LittleEndian N/A N/A bdata N/A N/A bdata byteswapped N/A N/A N/A header N/A N/A fname N/A -3 hdr N/A vals N/A get header 0 N/A vals N/A N/A N/A type N/A vals N/A 0 ListType N/A N/A xsize N/A int N/A N/A vals N/A 0 N/A 0 N/A ysize N/A int N/A N/A vals N/A 0 N/A 1 N/A numslices N/A int N/A N/A vals N/A 0 N/A 2 N/A N/A N/A bdata shape vals N/A N/A N/A N/A No (or bad) header file. Returning unshaped array. N/A N/A N/A N array bdata N/A binput N/A N/A outarray fname packtype writetype N/A None wb N/A N/A 
Unravels outarray and writes the data to a file, always in LittleEndian
format, along with a header file containing the original data shape. Default
is overwrite the destination file. Tries to figure out packtype from
4th-to-last character in filename. Thus, the routine understands these
file formats ...

1bin=Int8, sbin=int16, ibin=Int32, fbin=Float32, dbin=Float64, etc.

Usage:  binput(outarray,filename,packtype=None,writetype='wb')
 N/A N/A packtype N/A N/A packtype N/A fname N/A -4 N/A N/A N/A packtype N/A N int16 N/A N/A N/A outarray typecode f N/A N/A N/A N/A N/A max N/A N/A N ravel outarray 32767 N/A N/A min N/A N/A N ravel outarray -32768 N/A N/A *** WARNING: CONVERTING FLOAT DATA TO OUT-OF RANGE int16 DATA N/A outdata N/A N/A N/A N/A N ravel outarray astype packtype N/A N/A N/A N LittleEndian N/A N/A outdata N/A N/A outdata byteswapped N/A outdata N/A N/A outdata tostring N/A outfile N/A open fname writetype N/A N/A N/A outfile write outdata N/A N/A N/A outfile close N/A N/A N/A suffixindex N/A N/A string rfind fname . N/A hdrname N/A N/A fname N/A 0 N/A suffixindex 2 hdr N/A N/A N/A ValueError N/A N/A hdrname fname N/A hdr N/A outarray shape N/A hdrname N/A outfile N/A open hdrname w N/A N/A N/A outfile write N/A N/A pstat list2string hdr N/A N/A N/A outfile close N/A None N/A array2afni N/A N/A d brikprefix voltype TR sliceorder geomparent view N/A None 2.0 seqplus None None N/A N/A 
Converts an array 'd' to an AFNI BRIK/HEAD combo via putbin and to3d. Tries to
guess the AFNI volume type

voltype = {'-anat','-epan','-fim'}
geomparent = filename of the afni BRIK file with the same geometry
view = {'tlrc', 'acpc' or 'orig'}

Usage:   array2afni(d,brikprefix,voltype=None,TR=2.0,
                    sliceorder='seqplus',geomparent=None,view=None)
Returns: None
 N/A typecodemapping N/A c b f d 1 s i l b b f f b i i N/A N/A N/A len N/A d shape N/A 3 4 N/A N/A ValueError N/A A 3D or 4D array is required for array2afni() ... %s N/A d shape N/A N/A N/A N/A d typecode N/A N Float64 N/A N/A outcode f N/A N/A outcode N/A N/A d typecode N/A tmpoutname N/A afnitmp.%sbin outcode N/A N/A binput N/A N/A d astype outcode tmpoutname N/A N/A voltype N/A N/A N/A N/A len N/A d shape 3 N/A N/A N/A N/A N/A d typecode N/A s i l N/A N/A voltype -anat N/A N/A voltype -fim N/A N/A voltype -anat N/A N/A N/A len N/A d shape 3 N/A N/A timepts 1 N/A slices N/A N/A d shape N/A 0 N/A timestr N/A N/A N/A N/A len N/A d shape 4 N/A N/A timepts N/A N/A d shape N/A 0 N/A slices N/A N/A d shape N/A 1 N/A timestr N/A -time:zt %d %d %0.3f %s  N/A slices timepts TR sliceorder N/A cmd N/A to3d %s -prefix %s -session .  N/A voltype brikprefix N/A view N/A N/A cmd N/A -view %s  view N/A geomparent N/A N/A cmd N/A -geomparent %s  geomparent N/A cmd timestr N/A cmd N/A 3D%s:0:0:%d:%d:%d:%s N/A N/A typecodemapping N/A N/A N/A d typecode N/A N/A d shape N/A -1 N/A N/A d shape N/A -2 N/A slices timepts tmpoutname N/A cmd N/A N/A N/A os system cmd N/A N/A N/A os remove tmpoutname N/A N/A N/A os remove N/A N/A tmpoutname N/A -3 hdr N/A