Module Expr Str Import alias Import alias alias ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str ImportFrom alias Assign NameStore Num Assign NameStore Num Assign NameStore Dict Num Num Call NameLoad TupleLoad Str Str Str Str Str Call NameLoad TupleLoad Str Str Str Str Str Str Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad GeneratorExp CompareEq NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad orelse If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If CompareNotEq BinOpMod NameLoad NameLoad Num body Raise Call NameLoad Str For NameStore Call NameLoad BinOpDiv NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If UnaryOpNot Call NameLoad GeneratorExp CompareEq NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareLtE NameLoad Num CompareGtE NameLoad NameLoad body Raise Call NameLoad Str If CompareNotEq BinOpMod NameLoad NameLoad Num body Raise Call NameLoad Str For NameStore Call NameLoad Num BinOpDiv NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Slice NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad body Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad NameLoad attr Num body Return NameLoad If CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr TupleLoad Num Num body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr TupleLoad Num Num body Raise Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad UnaryOpNot CompareLtELt Num NameLoad Num body Raise Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot CompareLtELt Num Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Slice NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list NameLoad Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Return SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse If CompareEq NameLoad Num body Return SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse If CompareEq NameLoad Num body If CompareNotEq SubscriptLoad NameLoad Index Num Num body Return AttributeLoad NameLoad attr orelse Return BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Slice Num SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot CompareIn NameLoad Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return Num If CompareEq NameLoad Str body AugAssignMult NameStore SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad Str body For NameStore SubscriptLoad NameLoad Slice Num body AugAssignMult NameStore NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq Call NameLoad NameLoad Num body AugAssignMult NameStore SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot CompareLtE SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Num Num body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body If UnaryOpNot CompareLtELt Num NameLoad Num body Raise Call NameLoad Str If UnaryOpNot CompareLtELt Num Call NameLoad AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If UnaryOpNot CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Num If UnaryOpNot CompareIn SubscriptLoad NameLoad Index Num SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareEq NameLoad Num CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str orelse If CompareGt NameLoad Num body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Raise Call NameLoad NameLoad For NameStore NameLoad body For NameStore NameLoad body If CompareEq NameLoad NameLoad body Continue Assign NameStore BinOpBitAnd Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad body Return TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameLoad Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad Return TupleLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Delete SubscriptDel NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot CompareLtELt Num NameLoad Num body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Num While BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Num CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareEq NameLoad TupleLoad Str Str body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad Continue If CompareEq NameLoad AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad NameLoad Index Num Str body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If CompareLt NameLoad Num body For TupleStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareNotEq SubscriptLoad NameLoad Index Num Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad If CompareGt Call NameLoad NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot CompareLtELt Num NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareGt Call NameLoad NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad While CompareLtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad UnaryOpNot CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num Str UnaryOpNot NameLoad body Continue Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice Num body If BoolOpOr BoolOpOr CompareIs NameLoad NameLoad CompareIs AttributeLoad NameLoad attr NameLoad UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr TupleLoad Str Str attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareNotEq Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword Num decorator_list Assign NameStore Dict TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad TupleLoad Str Str body Return NameLoad orelse If CompareEq NameLoad TupleLoad Str Str body Return BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad TupleLoad Str Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad TupleLoad Str Str body Return SubscriptLoad AttributeLoad NameLoad attr Index Num Assert NameLoad decorator_list Assign NameStore Dict TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad TupleLoad Str Str body If CompareIs NameLoad NameLoad body Delete SubscriptDel Call AttributeLoad NameLoad attr NameLoad Index NameLoad Return NameLoad Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr CompareEq NameLoad Num Call NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad SubscriptLoad NameLoad Index Num orelse Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad SubscriptLoad NameLoad Slice NameLoad Break orelse If CompareIn NameLoad AttributeLoad NameLoad attr body For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad SubscriptLoad NameLoad Slice NameLoad Break orelse Return NameLoad orelse Return NameLoad Delete SubscriptDel Call AttributeLoad NameLoad attr NameLoad Index NameLoad Return NameLoad decorator_list Assign NameStore Dict NameLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad TupleLoad Str Str Call NameLoad Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Return NameLoad If UnaryOpNot CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore CompareEq SubscriptLoad NameLoad Index Num Str If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore Num Assign NameStore BinOpDiv NameLoad NameLoad If CompareEq NameLoad Num body Assign NameStore ListLoad NameLoad If NameLoad body Assign NameStore BinOpMult NameLoad NameLoad orelse Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad Call NameLoad NameLoad NameLoad If CompareEq NameLoad TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Return Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Delete SubscriptDel Call AttributeLoad NameLoad attr NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq SubscriptLoad NameLoad Index Num Str body For NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Break orelse If CompareEq SubscriptLoad NameLoad Index Num Str body For NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Break orelse Assign NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad If CompareLt Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad BinOpDiv NameLoad Call NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad Assign NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str Str If CompareEq NameLoad Str body Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad NameLoad orelse If UnaryOpNot CompareIn TupleLoad Str Str Call AttributeLoad NameLoad attr body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Return SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad NameLoad orelse Assign NameStore ListLoad Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad Index Num For NameStore Call NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareNotEq NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore NameLoad For NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str body If BoolOpAnd CompareNotEq NameLoad NameLoad CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Break Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If CompareIn NameLoad Call AttributeLoad NameLoad attr body Assign NameStore NameLoad Break For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad orelse If CompareNotEq SubscriptLoad NameLoad Index Num Str body If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad orelse For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad UnaryOpNot CompareIs NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict If UnaryOpNot NameLoad body For NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num Dict Assign NameStore Call NameLoad BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr If CompareEq NameLoad TupleLoad Str Str body AugAssignAdd NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If BoolOpAnd CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr CompareIn NameLoad NameLoad body Assign NameStore NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str If UnaryOpNot NameLoad body For NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad TupleLoad Str Str body If CompareNotEq NameLoad NameLoad body For NameStore TupleLoad Str Str Str body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Break orelse If CompareEq NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareNotEq NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr TupleLoad Str Str Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num For NameStore SubscriptLoad NameLoad Slice Num body AugAssignMult NameStore NameLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad Assign SubscriptStore Call AttributeLoad NameLoad attr TupleLoad Str Str Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Delete SubscriptDel Call AttributeLoad NameLoad attr NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad TupleLoad Str Str body If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad TupleLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareNotEq NameLoad TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Str Str AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpMult NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num For NameStore Call NameLoad SubscriptLoad NameLoad Index Num body AugAssignAdd NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad Assign SubscriptStore Call AttributeLoad NameLoad attr TupleLoad Str Str Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TupleLoad TupleLoad NameLoad Str NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr Num body If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body If CompareEq AttributeLoad NameLoad attr Str body Continue If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr orelse If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body If CompareEq AttributeLoad NameLoad attr Str body Continue If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If CompareEq Call AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Print BinOpMod Str NameLoad orelse If UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Raise NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad TupleLoad Str Str body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad TupleLoad Str Str body Return CompareEq SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num If CompareEq NameLoad TupleLoad Str Str body Return CompareEq SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr body Return NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Index NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword Num If CompareEq NameLoad TupleLoad Str Str body Return NameLoad If CompareEq NameLoad TupleLoad Str Str body Return BoolOpAnd CompareEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad If CompareEq NameLoad TupleLoad Str Str body Return BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad If CompareEq NameLoad TupleLoad Str Str body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot CompareLtELt Num NameLoad SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad Str If CompareEq NameLoad TupleLoad Str Str body Return SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num If CompareEq NameLoad TupleLoad Str Str body Return SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq NameLoad TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Num body AugAssignAdd NameStore BinOpMult NameLoad NameLoad AugAssignMult NameStore SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Return SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpMult SubscriptLoad NameLoad Index Num NameLoad Return SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Break orelse Raise Call NameLoad Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Num If CompareEq NameLoad Num body If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareLt NameLoad Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Num Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult ListLoad Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad body If BoolOpAnd CompareGtE NameLoad Num CompareEq NameLoad BinOpSub Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr If BoolOpAnd UnaryOpNot CompareIs NameLoad NameLoad CompareNotEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIs NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIs NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad If CompareEq NameLoad NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Call AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr TupleLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Dict Str Str Str NameLoad NameLoad Num If Call NameLoad AttributeLoad NameLoad attr Str body If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num orelse Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Num If NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str Str attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body If CompareEq Call NameLoad NameLoad Num body Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad Num body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Num orelse Assign NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Num orelse If UnaryOpNot CompareLtELt Num NameLoad Num body Raise Call NameLoad Str If BoolOpAnd CompareLt NameLoad Call NameLoad NameLoad CompareNotEq SubscriptLoad NameLoad Index NameLoad Num body Raise Call NameLoad Str Assign NameStore ListLoad For NameStore Call NameLoad Num body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Index NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Index Num Assign NameStore Call NameLoad NameLoad While CompareGtE NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad GeneratorExp AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMult ListLoad Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Index NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AugAssignDiv NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Num Index Num If UnaryOpNot CompareIs NameLoad NameLoad body Assign NameStore BinOpSub NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Num body AugAssignDiv NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr Call AttributeLoad NameLoad attr NameLoad Num UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Num keyword Num body Raise Call NameLoad Str Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotEq NameLoad Num body If BoolOpOr CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareIs Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpOr CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareIs Call AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareNotEq NameLoad SubscriptLoad NameLoad Index Str body For NameStore Call NameLoad Num body If CompareNotEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareNotEq NameLoad SubscriptLoad NameLoad Index Str body For NameStore Call NameLoad Num body If CompareNotEq SubscriptLoad NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad TryExcept body If CompareNotEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body If CompareNotEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body If CompareNotEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad If CompareLt NameLoad Num body Assign NameStore BinOpSub SubscriptLoad Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr ExtSlice Slice Num Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body If UnaryOpNot CompareIs NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Num Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body If UnaryOpNot CompareIs NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Slice Num Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Assign NameStore NameLoad If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A 
DcmMeta header extension and NiftiWrapper for working with extended Niftis.
 N/A sys N/A json warnings copy deepcopy N/A numpy np N/A nibabel nb nibabel.nifti1 Nifti1Extension nibabel.spatialimages HeaderDataError N/A N/A collections OrderedDict N/A N/A N/A ImportError N/A ordereddict OrderedDict N/A N/A N/A warnings catch_warnings N/A N/A N/A N/A warnings simplefilter ignore nibabel.nicom.dicomwrappers wrapper_from_data N/A dcm_meta_ecode 0 N/A _meta_version 0.6 N/A _req_base_keys_map N/A 0.5 0.6 N/A set N/A dcmmeta_affine dcmmeta_slice_dim dcmmeta_shape dcmmeta_version global N/A set N/A dcmmeta_affine dcmmeta_reorient_transform dcmmeta_slice_dim dcmmeta_shape dcmmeta_version global N/A Minimum required keys in the base dictionaty to be considered valid is_constant N/A N/A sequence period N/A None N/A N/A Returns true if all elements in (each period of) the sequence are equal.

    Parameters
    ----------
    sequence : sequence
        The sequence of elements to check.

    period : int
        If not None then each subsequence of that length is checked.
     N/A N/A period None N/A N/A N/A all N/A N/A val N/A sequence N/A 0 N/A val sequence N/A N/A N/A period 1 N/A N/A N/A ValueError The period must be greater than one N/A seq_len N/A len sequence N/A N/A N/A seq_len period 0 N/A N/A N/A ValueError The sequence length is not evenly divisible by the period length. N/A period_idx N/A range N/A seq_len period N/A N/A start_idx N/A period_idx period N/A end_idx N/A start_idx period N/A N/A N/A all N/A N/A val N/A sequence N/A start_idx N/A val N/A sequence N/A start_idx end_idx N/A N/A False N/A True N/A is_repeating N/A N/A sequence period N/A N/A N/A Returns true if the elements in the sequence repeat with the given
    period.

    Parameters
    ----------
    sequence : sequence
        The sequence of elements to check.

    period : int
        The period over which the elements should repeat.
     N/A seq_len N/A len sequence N/A N/A N/A period 1 N/A period seq_len N/A N/A N/A ValueError The period must be greater than one and less than the length of the sequence N/A N/A N/A seq_len period 0 N/A N/A N/A ValueError The sequence length is not evenly divisible by the period length. N/A period_idx N/A range 1 N/A seq_len period N/A N/A start_idx N/A period_idx period N/A end_idx N/A start_idx period N/A N/A N/A sequence N/A start_idx end_idx N/A sequence N/A period N/A N/A False N/A True N/A InvalidExtensionError N/A Exception N/A __init__ N/A N/A self msg N/A N/A N/A Exception denoting than a DcmMetaExtension is invalid. N/A N/A self msg msg N/A __str__ N/A N/A self N/A N/A N/A N/A The extension is not valid: %s N/A self msg N/A N/A DcmMetaExtension N/A Nifti1Extension N/A N/A Nifti extension for storing a summary of the meta data from the source
    DICOM files.
     reorient_transform N/A N/A self N/A N/A N/A The transformation due to reorientation of the data array. Can be
        used to update directional DICOM meta data (after converting to RAS if
        needed) into the same space as the affine. N/A N/A N/A self version 0.6 N/A N/A None N/A N/A N/A N/A self _content N/A dcmmeta_reorient_transform None N/A N/A None N/A N/A N/A np array N/A N/A self _content N/A dcmmeta_reorient_transform N/A property reorient_transform N/A N/A self value N/A N/A N/A N/A N/A N/A value None N/A N/A value shape N/A 4 4 N/A N/A N/A ValueError The reorient_transform must be none or (4,4) array N/A N/A value None N/A N/A N/A N/A self _content N/A dcmmeta_reorient_transform None N/A N/A N/A N/A self _content N/A dcmmeta_reorient_transform N/A N/A value tolist N/A N/A reorient_transform setter affine N/A N/A self N/A N/A N/A The affine associated with the meta data. If this differs from the
        image affine, the per-slice meta data will not be used.  N/A N/A N/A np array N/A N/A self _content N/A dcmmeta_affine N/A property affine N/A N/A self value N/A N/A N/A N/A N/A value shape N/A 4 4 N/A N/A N/A ValueError Invalid shape for affine N/A N/A N/A self _content N/A dcmmeta_affine N/A N/A value tolist N/A N/A affine setter slice_dim N/A N/A self N/A N/A N/A The index of the slice dimension associated with the per-slice
        meta data. N/A N/A N/A self _content N/A dcmmeta_slice_dim N/A property slice_dim N/A N/A self value N/A N/A N/A N/A N/A N/A value None N/A N/A 0 value 3 N/A N/A N/A ValueError The slice dimension must be between zero and two N/A N/A N/A self _content N/A dcmmeta_slice_dim value N/A N/A slice_dim setter shape N/A N/A self N/A N/A N/A The shape of the data associated with the meta data. Defines the
        number of values for the meta data classifications. N/A N/A tuple N/A N/A self _content N/A dcmmeta_shape N/A property shape N/A N/A self value N/A N/A N/A N/A N/A 3 N/A len value 6 N/A N/A N/A ValueError The shape must have a length between three and six N/A N/A N/A N/A self _content N/A dcmmeta_shape N/A value N/A N/A shape setter version N/A N/A self N/A N/A N/A The version of the meta data extension. N/A N/A N/A self _content N/A dcmmeta_version N/A property version N/A N/A self value N/A N/A N/A Set the version of the meta data extension. N/A N/A N/A self _content N/A dcmmeta_version value N/A N/A version setter slice_normal N/A N/A self N/A N/A N/A The slice normal associated with the per-slice meta data. N/A slice_dim N/A self slice_dim N/A N/A slice_dim None N/A N/A None N/A N/A N/A np array N/A N/A N/A self affine N/A slice_dim N/A 3 N/A property n_slices N/A N/A self N/A N/A N/A The number of slices associated with the per-slice meta data. N/A slice_dim N/A self slice_dim N/A N/A slice_dim None N/A N/A None N/A N/A N/A self shape N/A slice_dim N/A property N/A classifications N/A N/A global const N/A global slices N/A time samples N/A time slices N/A vector samples N/A vector slices N/A The classifications used to separate meta data based on if and how the
    values repeat. Each class is a tuple with a base class and a sub class. get_valid_classes N/A N/A self N/A N/A N/A Return the meta data classifications that are valid for this
        extension.

        Returns
        -------
        valid_classes : tuple
            The classifications that are valid for this extension (based on its
            shape).

         N/A shape N/A self shape N/A n_dims N/A len shape N/A N/A n_dims 3 N/A N/A N/A N/A self classifications N/A 2 N/A N/A N/A n_dims 4 N/A N/A N/A N/A self classifications N/A 4 N/A N/A N/A n_dims 5 N/A N/A N/A N/A shape N/A 3 1 N/A N/A N/A self classifications N/A N/A N/A N/A N/A self classifications N/A 2 N/A N/A self classifications N/A -2 N/A N/A N/A ValueError There must be 3 to 5 dimensions. N/A get_multiplicity N/A N/A self classification N/A N/A N/A Get the number of meta data values for all meta data of the provided
        classification.

        Parameters
        ----------
        classification : tuple
            The meta data classification.

        Returns
        -------
        multiplicity : int
            The number of values for any meta data of the provided
            `classification`.
         N/A N/A N/A classification N/A N/A self get_valid_classes N/A N/A N/A ValueError N/A Invalid classification: %s classification N/A N/A base sub classification N/A shape N/A self shape N/A n_vals 1 N/A N/A sub slices N/A N/A n_vals N/A self n_slices N/A N/A n_vals None N/A N/A 0 N/A N/A base vector N/A N/A n_vals N/A shape N/A 3 N/A N/A N/A base global N/A N/A dim_size N/A shape N/A 3 N/A N/A n_vals dim_size N/A N/A N/A sub samples N/A N/A N/A base time N/A N/A n_vals N/A shape N/A 3 N/A N/A N/A len shape 5 N/A N/A n_vals N/A shape N/A 4 N/A N/A N/A base vector N/A N/A n_vals N/A shape N/A 4 N/A n_vals N/A check_valid N/A N/A self N/A N/A N/A Check if the extension is valid.

        Raises
        ------
        InvalidExtensionError
            The extension is missing required meta data or classifications, or
            some element(s) have the wrong number of values for their
            classification.
         N/A N/A N/A N/A _req_base_keys_map N/A N/A self version N/A set N/A self _content N/A N/A N/A InvalidExtensionError Missing one or more required keys N/A N/A N/A N/A self affine shape N/A 4 4 N/A N/A N/A InvalidExtensionError Affine has incorrect shape N/A slice_dim N/A self slice_dim N/A N/A slice_dim None N/A N/A N/A N/A 0 slice_dim 3 N/A N/A N/A InvalidExtensionError Slice dimension is not valid N/A N/A N/A 3 N/A len N/A self shape 6 N/A N/A N/A InvalidExtensionError Shape is not valid N/A valid_classes N/A N/A self get_valid_classes N/A classes valid_classes N/A N/A N/A N/A N/A classes N/A 0 N/A self _content N/A N/A N/A InvalidExtensionError N/A Missing required base classification %s N/A classes N/A 0 N/A N/A N/A N/A classes N/A 1 N/A N/A self _content N/A N/A classes N/A 0 N/A N/A N/A InvalidExtensionError N/A Missing required sub classification %s in base classification %s classes N/A cls_meta N/A N/A self get_class_dict classes N/A cls_mult N/A N/A self get_multiplicity classes N/A N/A N/A cls_mult 0 N/A N/A len cls_meta 0 N/A N/A N/A InvalidExtensionError Slice dim is None but per-slice meta data is present N/A N/A N/A cls_mult 1 N/A N/A N/A key vals N/A N/A cls_meta iteritems N/A N/A n_vals N/A len vals N/A N/A n_vals cls_mult N/A N/A msg N/A Incorrect number of values for key %s with classification %s, expected %d found %d N/A key classes cls_mult n_vals N/A N/A InvalidExtensionError msg N/A classes valid_classes N/A N/A other_classes valid_classes N/A N/A N/A classes other_classes N/A N/A N/A intersect N/A N/A set N/A N/A self get_class_dict classes N/A set N/A N/A self get_class_dict other_classes N/A N/A N/A len intersect 0 N/A N/A N/A InvalidExtensionError One or more keys have multiple classifications N/A get_keys N/A N/A self N/A N/A N/A Get a list of all the meta data keys that are available. N/A keys N/A N/A N/A base_class sub_class N/A N/A self get_valid_classes N/A N/A keys N/A N/A N/A N/A N/A self _content N/A base_class N/A sub_class keys N/A keys N/A get_classification N/A N/A self key N/A N/A N/A Get the classification for the given `key`.

        Parameters
        ----------
        key : str
            The meta data key.

        Returns
        -------
        classification : tuple or None
            The classification tuple for the provided key or None if the key is
            not found.

         N/A N/A base_class sub_class N/A N/A self get_valid_classes N/A N/A N/A key N/A N/A N/A self _content N/A base_class N/A sub_class N/A N/A N/A base_class sub_class N/A None N/A get_class_dict N/A N/A self classification N/A N/A N/A Get the dictionary for the given classification.

        Parameters
        ----------
        classification : tuple
            The meta data classification.

        Returns
        -------
        meta_dict : dict
            The dictionary for the provided classification.
         N/A N/A base sub classification N/A N/A N/A N/A self _content N/A base N/A sub N/A get_values N/A N/A self key N/A N/A N/A Get all values for the provided key.

        Parameters
        ----------
        key : str
            The meta data key.

        Returns
        -------
        values
             The value or values for the given key. The number of values
             returned depends on the classification (see 'get_multiplicity').
         N/A classification N/A N/A self get_classification key N/A N/A classification None N/A N/A None N/A N/A N/A N/A self get_class_dict classification N/A key N/A get_values_and_class N/A N/A self key N/A N/A N/A Get the values and the classification for the provided key.

        Parameters
        ----------
        key : str
            The meta data key.

        Returns
        -------
        vals_and_class : tuple
            None for both the value and classification if the key is not found.

         N/A classification N/A N/A self get_classification key N/A N/A classification None N/A N/A N/A None None N/A N/A N/A N/A N/A self get_class_dict classification N/A key classification N/A filter_meta N/A N/A self filter_func N/A N/A N/A Filter the meta data.

        Parameters
        ----------
        filter_func : callable
            Must take a key and values as parameters and return True if they
            should be filtered out.

         N/A classes N/A N/A self get_valid_classes N/A N/A filtered N/A N/A curr_dict N/A N/A self get_class_dict classes N/A N/A key values N/A N/A curr_dict iteritems N/A N/A N/A filter_func key values N/A N/A N/A N/A filtered append key N/A key filtered N/A N/A N/A curr_dict N/A key N/A clear_slice_meta N/A N/A self N/A N/A N/A Clear all meta data that is per slice. N/A N/A base_class sub_class N/A N/A self get_valid_classes N/A N/A N/A sub_class slices N/A N/A N/A N/A N/A N/A self get_class_dict N/A base_class sub_class clear N/A get_subset N/A N/A self dim idx N/A N/A N/A Get a DcmMetaExtension containing a subset of the meta data.

        Parameters
        ----------
        dim : int
            The dimension we are taking the subset along.

        idx : int
            The position on the dimension `dim` for the subset.

        Returns
        -------
        result : DcmMetaExtension
            A new DcmMetaExtension corresponding to the subset.

         N/A N/A N/A 0 dim 5 N/A N/A N/A ValueError The argument 'dim' must be in the range [0, 5). N/A shape N/A self shape N/A valid_classes N/A N/A self get_valid_classes N/A result_shape N/A list shape N/A N/A result_shape N/A dim 1 N/A N/A N/A N/A result_shape N/A -1 1 N/A N/A len result_shape 3 N/A N/A result_shape N/A result_shape N/A -1 N/A result N/A N/A self make_empty result_shape N/A self affine N/A self reorient_transform N/A self slice_dim N/A src_class valid_classes N/A N/A N/A src_class N/A global const N/A N/A N/A key val N/A N/A N/A N/A self get_class_dict src_class iteritems N/A N/A N/A N/A N/A result get_class_dict src_class N/A key N/A deepcopy val N/A N/A N/A dim N/A self slice_dim N/A N/A N/A N/A src_class N/A 1 slices N/A N/A N/A key vals N/A N/A N/A N/A self get_class_dict src_class iteritems N/A N/A N/A N/A N/A result get_class_dict src_class N/A key N/A deepcopy vals N/A N/A N/A N/A result _copy_slice self src_class idx N/A N/A N/A dim 3 N/A N/A N/A key vals N/A N/A N/A N/A self get_class_dict src_class iteritems N/A N/A N/A N/A N/A result get_class_dict src_class N/A key N/A deepcopy vals N/A N/A N/A dim 3 N/A N/A N/A N/A result _copy_sample self src_class time idx N/A N/A N/A N/A result _copy_sample self src_class vector idx N/A result N/A to_json N/A N/A self N/A N/A N/A Return the extension encoded as a JSON string. N/A N/A N/A self check_valid N/A N/A N/A self _mangle N/A self _content N/A from_json N/A N/A klass json_str N/A N/A N/A Create an extension from the JSON string representation. N/A result N/A klass dcm_meta_ecode json_str N/A N/A N/A result check_valid N/A result N/A classmethod make_empty N/A N/A klass shape affine reorient_transform slice_dim N/A None None N/A N/A Make an empty DcmMetaExtension.

        Parameters
        ----------
        shape : tuple
            The shape of the data associated with this extension.

        affine : array
            The RAS affine for the data associated with this extension.

        reorient_transform : array
            The transformation matrix representing any reorientation of the
            data array.

        slice_dim : int
            The index of the slice dimension for the data associated with this
            extension

        Returns
        -------
        result : DcmMetaExtension
            An empty DcmMetaExtension with the required values set to the
            given arguments.

         N/A result N/A klass dcm_meta_ecode {} N/A N/A N/A result _content N/A global N/A OrderedDict N/A N/A N/A N/A result _content N/A global N/A const N/A OrderedDict N/A N/A N/A N/A result _content N/A global N/A slices N/A OrderedDict N/A N/A N/A N/A len shape 3 N/A N/A shape N/A 3 1 N/A N/A N/A N/A result _content N/A time N/A OrderedDict N/A N/A N/A N/A result _content N/A time N/A samples N/A OrderedDict N/A N/A N/A N/A result _content N/A time N/A slices N/A OrderedDict N/A N/A N/A len shape 4 N/A N/A N/A N/A result _content N/A vector N/A OrderedDict N/A N/A N/A N/A result _content N/A vector N/A samples N/A OrderedDict N/A N/A N/A N/A result _content N/A vector N/A slices N/A OrderedDict N/A N/A N/A result _content N/A dcmmeta_shape N/A N/A N/A result shape shape N/A N/A result affine affine N/A N/A result reorient_transform reorient_transform N/A N/A result slice_dim slice_dim N/A N/A result version _meta_version N/A result N/A classmethod from_runtime_repr N/A N/A klass runtime_repr N/A N/A N/A Create an extension from the Python runtime representation (nested
        dictionaries).
         N/A result N/A klass dcm_meta_ecode {} N/A N/A result _content runtime_repr N/A N/A N/A result check_valid N/A result N/A classmethod from_sequence N/A N/A klass seq dim affine slice_dim N/A None None N/A N/A Create an extension from a sequence of extensions.

        Parameters
        ----------
        seq : sequence
            The sequence of DcmMetaExtension objects.

        dim : int
            The dimension to merge the extensions along.

        affine : array
            The affine to use in the resulting extension. If None, the affine
            from the first extension in `seq` will be used.

        slice_dim : int
            The slice dimension to use in the resulting extension. If None, the
            slice dimension from the first extension in `seq` will be used.

        Returns
        -------
        result : DcmMetaExtension
            The result of merging the extensions in `seq` along the dimension
            `dim`.
         N/A N/A N/A 0 dim 5 N/A N/A N/A ValueError The argument 'dim' must be in the range [0, 5). N/A n_inputs N/A len seq N/A first_input N/A seq N/A 0 N/A input_shape N/A first_input shape N/A N/A N/A N/A len input_shape dim N/A N/A input_shape N/A dim 1 N/A N/A N/A ValueError The dim must be singular or not exist for the inputs. N/A output_shape N/A list input_shape N/A N/A N/A len output_shape dim N/A N/A N/A N/A output_shape append 1 N/A N/A output_shape N/A dim n_inputs N/A N/A affine None N/A N/A affine N/A first_input affine N/A N/A slice_dim None N/A N/A slice_dim N/A first_input slice_dim N/A result N/A N/A klass make_empty output_shape affine None slice_dim N/A result_slc_norm N/A result slice_normal N/A first_slc_norm N/A first_input slice_normal N/A use_slices N/A N/A N/A result_slc_norm None N/A N/A first_slc_norm None N/A N/A np allclose result_slc_norm first_slc_norm N/A classes N/A N/A first_input get_valid_classes N/A N/A N/A N/A N/A classes N/A 1 slices N/A use_slices N/A N/A N/A N/A N/A N/A result _content N/A N/A classes N/A 0 N/A N/A classes N/A 1 N/A deepcopy N/A N/A first_input get_class_dict classes N/A shape N/A list N/A result shape N/A N/A shape N/A dim 1 N/A N/A result shape shape N/A reorient_transform N/A first_input reorient_transform N/A input_ext N/A seq N/A 1 N/A N/A N/A N/A N/A reorient_transform None N/A N/A input_ext reorient_transform None N/A N/A N/A N/A np allclose N/A input_ext affine affine N/A N/A np allclose N/A input_ext reorient_transform reorient_transform N/A N/A reorient_transform None N/A N/A N/A result _insert dim input_ext N/A N/A shape N/A dim 1 N/A N/A result shape shape N/A N/A result reorient_transform reorient_transform N/A key N/A N/A N/A N/A result get_class_dict N/A global slices keys N/A N/A N/A N/A result _simplify key N/A result N/A classmethod __str__ N/A N/A self N/A N/A N/A N/A N/A self _mangle N/A self _content N/A __eq__ N/A N/A self other N/A N/A N/A N/A N/A N/A np allclose N/A self affine N/A other affine N/A N/A False N/A N/A N/A self shape N/A other shape N/A N/A False N/A N/A N/A self slice_dim N/A other slice_dim N/A N/A False N/A N/A N/A self version N/A other version N/A N/A False N/A classes N/A N/A self get_valid_classes N/A N/A N/A N/A dict N/A N/A self get_class_dict classes N/A dict N/A N/A other get_class_dict classes N/A N/A False N/A True N/A _unmangle N/A N/A self value N/A N/A N/A Go from extension data to runtime representation. N/A kwargs N/A N/A N/A N/A sys version_info N/A 2 7 N/A N/A N/A kwargs N/A object_pairs_hook OrderedDict N/A N/A N/A json loads value kwargs N/A _mangle N/A N/A self value N/A N/A N/A Go from runtime representation to extension data. N/A N/A N/A json dumps value indent 4 N/A N/A _const_tests N/A N/A global slices N/A vector slices N/A time slices N/A time samples N/A vector samples N/A N/A global const N/A vector samples N/A time samples N/A N/A global const N/A time samples N/A N/A global const N/A N/A global const N/A vector samples N/A N/A global const N/A Classification mapping showing possible reductions in multiplicity for
    values that are constant with some period. _get_const_period N/A N/A self src_cls dest_cls N/A N/A N/A Get the period over which we test for const-ness with for the
        given classification change. N/A N/A dest_cls N/A global const N/A N/A None N/A N/A N/A src_cls N/A global slices N/A N/A N/A N/A N/A self get_multiplicity src_cls N/A N/A self get_multiplicity dest_cls N/A N/A N/A src_cls N/A vector slices N/A N/A N/A self n_slices N/A N/A N/A src_cls N/A time samples N/A N/A N/A N/A self shape N/A 3 N/A False N/A N/A _repeat_tests N/A N/A global slices N/A vector slices N/A N/A time slices N/A vector slices N/A N/A time slices N/A Classification mapping showing possible reductions in multiplicity for
    values that are repeating with some period. _simplify N/A N/A self key N/A N/A N/A Try to simplify (reduce the multiplicity) of a single meta data
        element by changing its classification. Return True if the
        classification is changed, otherwise False.

        Looks for values that are constant or repeating with some pattern.
        Constant elements with a value of None will be deleted.
         N/A N/A values curr_class N/A N/A self get_values_and_class key N/A N/A curr_class N/A global const N/A N/A N/A values None N/A N/A N/A N/A N/A self get_class_dict curr_class N/A key N/A True N/A False N/A dests N/A N/A self _const_tests N/A curr_class N/A dest_cls dests N/A N/A N/A N/A dest_cls N/A 0 N/A self _content N/A N/A period N/A N/A self _get_const_period curr_class dest_cls N/A N/A N/A period 1 N/A is_constant values period N/A N/A N/A period None N/A N/A N/A N/A N/A self get_class_dict dest_cls N/A key N/A values N/A 0 N/A N/A N/A N/A N/A self get_class_dict dest_cls N/A key N/A values N/A period N/A N/A N/A N/A curr_class N/A self _repeat_tests N/A N/A dest_cls N/A N/A self _repeat_tests N/A curr_class N/A N/A N/A N/A dest_cls N/A 0 N/A self _content N/A N/A dest_mult N/A N/A self get_multiplicity dest_cls N/A N/A is_repeating values dest_mult N/A N/A N/A N/A N/A self get_class_dict dest_cls N/A key N/A values N/A dest_mult N/A N/A N/A False N/A N/A False N/A N/A N/A N/A self get_class_dict curr_class N/A key N/A True N/A N/A _preserving_changes N/A None N/A global const N/A vector samples N/A time samples N/A time slices N/A vector slices N/A global slices N/A N/A global const N/A vector samples N/A time samples N/A time slices N/A vector slices N/A global slices N/A N/A vector samples N/A time samples N/A time slices N/A vector slices N/A global slices N/A N/A time samples N/A global slices N/A N/A global slices N/A N/A vector slices N/A global slices N/A N/A global slices N/A tuple N/A Classification mapping showing allowed changes when increasing the
    multiplicity. _get_changed_class N/A N/A self key new_class slice_dim N/A None N/A N/A Get an array of values corresponding to a single meta data
        element with its classification changed by increasing its
        multiplicity. This will preserve all the meta data and allow easier
        merging of values with different classifications. N/A N/A values curr_class N/A N/A self get_values_and_class key N/A N/A curr_class new_class N/A N/A values N/A N/A N/A new_class N/A N/A self _preserving_changes N/A curr_class N/A N/A N/A ValueError Classification change would lose data. N/A N/A curr_class None N/A N/A curr_mult 1 N/A per_slice False N/A N/A curr_mult N/A N/A self get_multiplicity curr_class N/A per_slice N/A N/A curr_class N/A 1 slices N/A N/A new_class N/A N/A self get_valid_classes N/A N/A new_mult N/A N/A self get_multiplicity new_class N/A N/A new_mult 0 N/A N/A new_mult N/A N/A self shape N/A slice_dim N/A N/A new_mult 1 N/A mult_fact N/A new_mult curr_mult N/A N/A curr_mult 1 N/A N/A values N/A values N/A per_slice N/A N/A result N/A values mult_fact N/A N/A result N/A N/A value values N/A N/A N/A N/A result extend N/A N/A N/A deepcopy value mult_fact N/A N/A new_class N/A global const N/A N/A result N/A result N/A 0 N/A result N/A _change_class N/A N/A self key new_class N/A N/A N/A Change the classification of the meta data element in place. See
        _get_changed_class. N/A N/A values curr_class N/A N/A self get_values_and_class key N/A N/A curr_class new_class N/A N/A N/A N/A N/A N/A self get_class_dict new_class N/A key N/A N/A self _get_changed_class key new_class N/A N/A N/A curr_class None N/A N/A N/A N/A N/A self get_class_dict curr_class N/A key N/A _copy_slice N/A N/A self other src_class idx N/A N/A N/A Get a copy of the meta data from the 'other' instance with
        classification 'src_class', corresponding to the slice with index
        'idx'. N/A N/A N/A src_class N/A 0 global N/A N/A classes N/A N/A time samples N/A vector samples N/A global const N/A N/A N/A classes N/A N/A self get_valid_classes N/A N/A dest_class classes N/A N/A N/A N/A N/A src_class N/A 0 vector N/A N/A classes N/A N/A time samples N/A global const N/A N/A N/A classes N/A N/A self get_valid_classes N/A N/A dest_class classes N/A N/A N/A dest_class N/A global const N/A src_dict N/A N/A other get_class_dict src_class N/A dest_dict N/A N/A self get_class_dict dest_class N/A dest_mult N/A N/A self get_multiplicity dest_class N/A stride N/A other n_slices N/A N/A key vals N/A N/A src_dict iteritems N/A N/A subset_vals N/A vals N/A idx stride N/A N/A N/A len subset_vals dest_mult N/A N/A full_vals N/A N/A val_idx N/A xrange N/A dest_mult N/A len subset_vals N/A N/A full_vals N/A deepcopy subset_vals N/A subset_vals full_vals N/A N/A N/A len subset_vals 1 N/A N/A subset_vals N/A subset_vals N/A 0 N/A N/A dest_dict N/A key N/A deepcopy subset_vals N/A N/A N/A self _simplify key N/A _global_slice_subset N/A N/A self key sample_base idx N/A N/A N/A Get a subset of the meta data values with the classificaion
        ('global', 'slices') corresponding to a single sample along the
        time or vector dimension (as specified by 'sample_base' and 'idx').
         N/A n_slices N/A self n_slices N/A shape N/A self shape N/A src_dict N/A N/A self get_class_dict N/A global slices N/A N/A sample_base vector N/A N/A slices_per_vec N/A n_slices N/A shape N/A 3 N/A start_idx N/A idx slices_per_vec N/A end_idx N/A start_idx slices_per_vec N/A N/A N/A src_dict N/A key N/A start_idx end_idx N/A N/A N/A N/A N/A vector samples N/A N/A self get_valid_classes N/A N/A start_idx N/A idx n_slices N/A end_idx N/A start_idx n_slices N/A N/A N/A src_dict N/A key N/A start_idx end_idx N/A N/A result N/A N/A slices_per_vec N/A n_slices N/A shape N/A 3 N/A vec_idx N/A xrange N/A shape N/A 4 N/A N/A start_idx N/A N/A vec_idx slices_per_vec N/A idx n_slices N/A end_idx N/A start_idx n_slices N/A N/A N/A result extend N/A N/A src_dict N/A key N/A start_idx end_idx N/A result N/A _copy_sample N/A N/A self other src_class sample_base idx N/A N/A N/A Get a copy of meta data from 'other' instance with classification
        'src_class', corresponding to one sample along the time or vector
        dimension. N/A N/A src_class N/A global const N/A src_dict N/A N/A other get_class_dict src_class N/A N/A N/A src_class N/A 1 samples N/A N/A N/A N/A src_class N/A 0 sample_base N/A N/A best_dest None N/A dest_cls N/A N/A vector samples N/A global const N/A N/A N/A N/A dest_cls src_class N/A dest_cls N/A N/A self get_valid_classes N/A N/A best_dest dest_cls N/A N/A dest_mult N/A N/A self get_multiplicity dest_cls N/A N/A dest_mult 1 N/A N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict dest_cls N/A key N/A deepcopy N/A vals N/A idx N/A N/A stride N/A N/A other shape N/A 3 N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict dest_cls N/A key N/A deepcopy N/A vals N/A idx stride N/A key N/A N/A src_dict keys N/A N/A N/A N/A self _simplify key N/A N/A N/A src_class N/A time samples N/A N/A dest_mult N/A N/A self get_multiplicity src_class N/A start_idx N/A idx dest_mult N/A end_idx N/A start_idx dest_mult N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict src_class N/A key N/A deepcopy N/A vals N/A start_idx end_idx N/A N/A N/A self _simplify key N/A N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict src_class N/A key N/A deepcopy vals N/A N/A N/A N/A src_class N/A 0 sample_base N/A N/A best_dest None N/A dest_class N/A N/A self _preserving_changes N/A src_class N/A N/A N/A dest_class N/A N/A self get_valid_classes N/A N/A best_dest dest_class N/A N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict best_dest N/A key N/A deepcopy vals N/A N/A N/A N/A src_class N/A 0 global N/A N/A N/A sample_base time N/A N/A n_slices N/A self n_slices N/A start_idx N/A idx n_slices N/A end_idx N/A start_idx n_slices N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict src_class N/A key N/A deepcopy N/A vals N/A start_idx end_idx N/A N/A N/A self _simplify key N/A N/A N/A key vals N/A N/A src_dict iteritems N/A N/A N/A N/A N/A self get_class_dict src_class N/A key N/A deepcopy vals N/A N/A N/A key vals N/A N/A src_dict iteritems N/A N/A subset_vals N/A N/A other _global_slice_subset key sample_base idx N/A N/A N/A N/A self get_class_dict src_class N/A key N/A deepcopy subset_vals N/A N/A N/A self _simplify key N/A _insert N/A N/A self dim other N/A N/A N/A self_slc_norm N/A self slice_normal N/A other_slc_norm N/A other slice_normal N/A use_slices N/A N/A N/A self_slc_norm None N/A N/A other_slc_norm None N/A N/A np allclose self_slc_norm other_slc_norm N/A other_slc_meta N/A N/A N/A use_slices N/A N/A classes N/A N/A other get_valid_classes N/A N/A N/A N/A classes N/A 1 slices N/A N/A N/A other_slc_meta N/A classes N/A N/A other get_class_dict classes N/A N/A N/A N/A other _content N/A N/A classes N/A 0 N/A N/A classes N/A 1 N/A N/A missing_keys N/A list N/A N/A set N/A N/A self get_keys N/A set N/A N/A other get_keys N/A other_classes N/A N/A other get_valid_classes N/A N/A other_keys N/A N/A N/A N/A other get_class_dict other_classes keys N/A N/A other_classes N/A global const N/A N/A other_keys missing_keys N/A key other_keys N/A N/A local_classes N/A N/A self get_classification key N/A N/A local_classes other_classes N/A N/A local_allow N/A N/A self _preserving_changes N/A local_classes N/A other_allow N/A N/A self _preserving_changes N/A other_classes N/A N/A other_classes local_allow N/A N/A N/A N/A self _change_class key other_classes N/A N/A N/A N/A local_classes other_allow N/A N/A best_dest None N/A dest_class local_allow N/A N/A N/A N/A N/A dest_class N/A 0 N/A self _content N/A dest_class other_allow N/A N/A best_dest dest_class N/A N/A N/A N/A self _change_class key best_dest N/A key other_keys N/A N/A N/A dim N/A self slice_dim N/A N/A N/A N/A self _insert_slice key other N/A N/A N/A dim 3 N/A N/A N/A N/A self _insert_non_slice key other N/A N/A N/A dim 3 N/A N/A N/A N/A self _insert_sample key other time N/A N/A N/A dim 4 N/A N/A N/A N/A self _insert_sample key other vector N/A N/A use_slices N/A N/A classes N/A N/A other get_valid_classes N/A N/A N/A N/A classes N/A 1 slices N/A N/A N/A N/A N/A other _content N/A N/A classes N/A 0 N/A N/A classes N/A 1 N/A other_slc_meta N/A classes N/A _insert_slice N/A N/A self key other N/A N/A N/A N/A local_vals classes N/A N/A self get_values_and_class key N/A other_vals N/A N/A other _get_changed_class key classes N/A self slice_dim N/A N/A classes N/A global const N/A N/A N/A local_vals other_vals N/A N/A dest_base N/A time vector global N/A N/A N/A dest_base N/A self _content N/A N/A N/A N/A self _change_class key N/A dest_base slices N/A other_vals N/A N/A other _get_changed_class key N/A dest_base slices N/A self slice_dim N/A N/A N/A N/A N/A self get_values key extend other_vals N/A N/A N/A N/A classes N/A time slices N/A N/A N/A N/A local_vals extend other_vals N/A N/A N/A classes N/A global slices N/A N/A N/A N/A self _change_class key N/A global slices N/A local_vals N/A N/A N/A self get_class_dict N/A global slices N/A key N/A other_vals N/A N/A other _get_changed_class key N/A global slices N/A self slice_dim N/A n_slices N/A self n_slices N/A other_n_slices N/A other n_slices N/A shape N/A self shape N/A n_vols 1 N/A dim_size N/A shape N/A 3 N/A N/A n_vols dim_size N/A intlv N/A N/A loc_start 0 N/A oth_start 0 N/A vol_idx N/A xrange n_vols N/A N/A intlv N/A local_vals N/A loc_start N/A loc_start n_slices N/A intlv N/A other_vals N/A oth_start N/A oth_start other_n_slices N/A loc_start n_slices N/A oth_start other_n_slices N/A N/A N/A N/A self get_class_dict N/A global slices N/A key intlv N/A _insert_non_slice N/A N/A self key other N/A N/A N/A N/A local_vals classes N/A N/A self get_values_and_class key N/A other_vals N/A N/A other _get_changed_class key classes N/A self slice_dim N/A N/A local_vals other_vals N/A N/A N/A N/A N/A self get_class_dict classes N/A key N/A _insert_sample N/A N/A self key other sample_base N/A N/A N/A N/A local_vals classes N/A N/A self get_values_and_class key N/A other_vals N/A N/A other _get_changed_class key classes N/A self slice_dim N/A N/A classes N/A global const N/A N/A N/A local_vals other_vals N/A N/A N/A N/A self _change_class key N/A sample_base samples N/A local_vals N/A N/A self get_values key N/A other_vals N/A N/A other _get_changed_class key N/A sample_base samples N/A self slice_dim N/A N/A N/A local_vals extend other_vals N/A N/A N/A classes N/A sample_base samples N/A N/A N/A N/A local_vals extend other_vals N/A N/A N/A classes N/A global slices N/A N/A N/A N/A self _change_class key N/A global slices N/A local_vals N/A N/A self get_values key N/A other_vals N/A N/A other _get_changed_class key N/A global slices N/A self slice_dim N/A shape N/A self shape N/A n_dims N/A len shape N/A N/A N/A sample_base time N/A n_dims 5 N/A N/A n_slices N/A self n_slices N/A slices_per_vec N/A n_slices N/A shape N/A 3 N/A oth_slc_per_vec N/A n_slices N/A N/A other shape N/A 3 N/A intlv N/A N/A loc_start 0 N/A oth_start 0 N/A vec_idx N/A xrange N/A shape N/A 4 N/A N/A intlv N/A local_vals N/A loc_start N/A loc_start slices_per_vec N/A intlv N/A other_vals N/A oth_start N/A oth_start oth_slc_per_vec N/A loc_start slices_per_vec N/A oth_start oth_slc_per_vec N/A N/A N/A N/A self get_class_dict N/A global slices N/A key intlv N/A N/A N/A N/A local_vals extend other_vals N/A N/A N/A N/A N/A N/A N/A nb nifti1 extension_codes add_codes N/A N/A dcm_meta_ecode dcmmeta DcmMetaExtension MissingExtensionError N/A Exception N/A N/A Exception denoting that there is no DcmMetaExtension in the Nifti header.
     __str__ N/A N/A self N/A N/A N/A No dcmmeta extension found. N/A N/A patch_dcm_ds_is N/A N/A dcm N/A N/A N/A Convert all elements in `dcm` with VR of 'DS' or 'IS' to floats and ints.
    This is a hackish work around for the backwards incompatibility of pydicom
    0.9.7 and should not be needed once nibabel is updated.
     N/A elem dcm N/A N/A N/A N/A elem VM 1 N/A N/A N/A N/A elem VR N/A DS IS N/A N/A N/A N/A elem value N/A N/A N/A N/A N/A elem VR DS N/A N/A N/A elem VR FD N/A N/A elem value N/A float N/A elem value N/A N/A N/A elem VR SL N/A N/A elem value N/A int N/A elem value N/A N/A N/A N/A elem VR N/A DS IS N/A N/A N/A N/A elem value N/A N/A N/A N/A N/A elem VR DS N/A N/A N/A elem VR FD N/A N/A elem value N/A N/A float val N/A val N/A elem value N/A N/A N/A elem VR SL N/A N/A elem value N/A N/A int val N/A val N/A elem value N/A NiftiWrapper N/A object N/A N/A Wraps a Nifti1Image object containing a DcmMeta header extension.
    Provides access to the meta data and the ability to split or merge the
    data array while updating the meta data.

    Parameters
    ----------
    nii_img : nibabel.nifti1.Nifti1Image
        The Nifti1Image to wrap.

    make_empty : bool
        If True an empty DcmMetaExtension will be created if none is found.

    Raises
    ------
    MissingExtensionError
        No valid DcmMetaExtension was found.

    ValueError
        More than one valid DcmMetaExtension was found.
     __init__ N/A N/A self nii_img make_empty N/A False N/A N/A N/A self nii_img nii_img N/A hdr N/A N/A nii_img get_header N/A N/A self meta_ext None N/A extension N/A hdr extensions N/A N/A N/A N/A N/A extension get_code dcm_meta_ecode N/A N/A N/A N/A N/A N/A extension check_valid N/A N/A N/A InvalidExtensionError N/A e N/A N/A N/A Found candidate extension, but invalid: %s e N/A N/A N/A N/A N/A self meta_ext None N/A N/A N/A ValueError More than one valid DcmMeta extension found. N/A N/A self meta_ext extension N/A N/A N/A self meta_ext N/A N/A make_empty N/A N/A slice_dim N/A N/A N/A hdr get_dim_info N/A 2 N/A N/A self meta_ext N/A N/A DcmMetaExtension make_empty N/A N/A self nii_img shape N/A N/A hdr get_best_affine None slice_dim N/A N/A N/A N/A hdr extensions append N/A self meta_ext N/A N/A MissingExtensionError N/A N/A N/A N/A self meta_ext check_valid N/A __getitem__ N/A N/A self key N/A N/A N/A Get the value for the given meta data key. Only considers meta data
        that is globally constant. To access varying meta data you must use the
        method 'get_meta'. N/A N/A N/A N/A N/A self meta_ext get_class_dict N/A global const N/A key N/A meta_valid N/A N/A self classification N/A N/A N/A Return true if the meta data with the given classification appears
        to be valid for the wrapped Nifti image. Considers the shape and
        orientation of the image and the meta data extension. N/A N/A classification N/A global const N/A N/A True N/A img_shape N/A N/A N/A self nii_img get_shape N/A meta_shape N/A N/A self meta_ext shape N/A N/A classification N/A vector samples N/A N/A N/A N/A meta_shape N/A 4 N/A img_shape N/A 4 N/A N/A classification N/A time samples N/A N/A N/A N/A meta_shape N/A 3 N/A img_shape N/A 3 N/A hdr N/A N/A N/A self nii_img get_header N/A N/A N/A N/A self meta_ext n_slices N/A N/A hdr get_n_slices N/A N/A False N/A slice_dim N/A N/A N/A hdr get_dim_info N/A 2 N/A slice_dir N/A N/A N/A N/A self nii_img get_affine N/A N/A slice_dim N/A 3 N/A slices_aligned N/A N/A np allclose slice_dir N/A N/A self meta_ext slice_normal atol 1e-06 N/A N/A classification N/A time slices N/A N/A slices_aligned N/A N/A classification N/A vector slices N/A N/A N/A N/A N/A meta_shape N/A 3 N/A img_shape N/A 3 slices_aligned N/A N/A classification N/A global slices N/A N/A N/A N/A N/A meta_shape N/A 3 N/A img_shape N/A 3 slices_aligned N/A get_meta N/A N/A self key index default N/A None None N/A N/A Return the meta data value for the provided `key`.

        Parameters
        ----------
        key : str
            The meta data key.

        index : tuple
            The voxel index we are interested in.

        default
            This will be returned if the meta data for `key` is not found.

        Returns
        -------
        value
            The meta data value for the given `key` (and optionally `index`)

        Notes
        -----
        The per-sample and per-slice meta data will only be considered if the
        `samples_valid` and `slices_valid` methods return True (respectively),
        and an `index` is specified.
         N/A N/A values classes N/A N/A N/A self meta_ext get_values_and_class key N/A N/A classes None N/A N/A default N/A N/A classes N/A global const N/A N/A values N/A N/A N/A N/A self meta_valid classes N/A N/A default N/A N/A N/A index None N/A N/A shape N/A N/A N/A self nii_img get_shape N/A N/A N/A len index N/A len shape N/A N/A N/A IndexError Incorrect number of indices. N/A N/A dim ind_val N/A enumerate index N/A N/A N/A N/A 0 ind_val N/A shape N/A dim N/A N/A N/A IndexError Index is out of bounds. N/A N/A classes N/A time samples N/A N/A N/A values N/A N/A index N/A 3 N/A N/A classes N/A vector samples N/A N/A N/A values N/A N/A index N/A 4 N/A slice_dim N/A N/A N/A N/A N/A N/A self nii_img get_header get_dim_info N/A 2 N/A n_slices N/A shape N/A slice_dim N/A N/A classes N/A global slices N/A N/A val_idx N/A index N/A slice_dim N/A N/A count idx_val N/A enumerate N/A index N/A 3 N/A N/A val_idx N/A idx_val n_slices N/A n_slices N/A shape N/A N/A count 3 N/A N/A values N/A val_idx N/A N/A N/A classes N/A time slices N/A N/A val_idx N/A index N/A slice_dim N/A N/A values N/A val_idx N/A N/A N/A classes N/A vector slices N/A N/A val_idx N/A index N/A slice_dim N/A val_idx N/A N/A index N/A 3 n_slices N/A N/A values N/A val_idx N/A default N/A remove_extension N/A N/A self N/A N/A N/A Remove the DcmMetaExtension from the header of nii_img. The
        attribute `meta_ext` will still point to the extension. N/A hdr N/A N/A N/A self nii_img get_header N/A target_idx None N/A N/A idx ext N/A enumerate N/A hdr extensions N/A N/A N/A N/A id ext N/A id N/A self meta_ext N/A N/A target_idx idx N/A N/A N/A N/A IndexError Extension not found in header N/A N/A N/A hdr extensions N/A target_idx N/A N/A hdr N/A vox_offset 0 N/A replace_extension N/A N/A self dcmmeta_ext N/A N/A N/A Replace the DcmMetaExtension.

        Parameters
        ----------
        dcmmeta_ext : DcmMetaExtension
            The new DcmMetaExtension.

         N/A N/A N/A self remove_extension N/A N/A N/A N/A N/A N/A N/A self nii_img get_header extensions append dcmmeta_ext N/A N/A self meta_ext dcmmeta_ext N/A split N/A N/A self dim N/A None N/A N/A Generate splits of the array and meta data along the specified
        dimension.

        Parameters
        ----------
        dim : int
            The dimension to split the voxel array along. If None it will
            prefer the vector, then time, then slice dimensions.

        Returns
        -------
        result
            Generator which yields a NiftiWrapper result for each index
            along `dim`.

         N/A shape N/A N/A N/A self nii_img get_shape N/A data N/A N/A N/A self nii_img get_data N/A header N/A N/A N/A self nii_img get_header N/A slice_dim N/A N/A N/A header get_dim_info N/A 2 N/A N/A dim None N/A N/A dim N/A N/A len shape 1 N/A N/A dim 2 N/A N/A N/A slice_dim None N/A N/A N/A ValueError Slice dimension is not known N/A dim slice_dim N/A trans_update None N/A N/A dim 3 N/A N/A trans_update N/A N/A N/A header get_best_affine N/A N/A 3 N/A dim N/A split_hdr N/A N/A header copy N/A slices N/A N/A N/A slice None N/A len shape N/A idx N/A xrange N/A shape N/A dim N/A N/A N/A N/A dim 3 N/A dim N/A N/A len shape 1 N/A N/A N/A slices N/A dim idx N/A N/A N/A slices N/A dim N/A slice idx N/A idx 1 N/A split_data N/A N/A N/A data N/A slices copy N/A N/A N/A N/A trans_update None N/A idx 0 N/A N/A qform N/A N/A split_hdr get_qform N/A N/A N/A qform None N/A N/A N/A qform N/A N/A 3 N/A 3 trans_update N/A N/A N/A split_hdr set_qform qform N/A sform N/A N/A split_hdr get_sform N/A N/A N/A sform None N/A N/A N/A sform N/A N/A 3 N/A 3 trans_update N/A N/A N/A split_hdr set_sform sform N/A split_nii N/A N/A nb Nifti1Image split_data N/A N/A split_hdr get_best_affine header split_hdr N/A meta_dim dim N/A N/A dim slice_dim N/A N/A meta_dim N/A N/A self meta_ext slice_dim N/A split_meta N/A N/A N/A self meta_ext get_subset meta_dim idx N/A result N/A NiftiWrapper split_nii N/A N/A N/A result replace_extension split_meta N/A N/A result N/A to_filename N/A N/A self out_path N/A N/A N/A Write out the wrapped Nifti to a file

        Parameters
        ----------
        out_path : str
            The path to write out the file to

        Notes
        -----
        Will check that the DcmMetaExtension is valid before writing the file.
         N/A N/A N/A N/A self meta_ext check_valid N/A N/A N/A N/A self nii_img to_filename out_path N/A from_filename N/A N/A klass path N/A N/A N/A Create a NiftiWrapper from a file.

        Parameters
        ----------
        path : str
            The path to the Nifti file to load.
         N/A N/A klass N/A N/A nb load path N/A classmethod from_dicom_wrapper N/A N/A klass dcm_wrp meta_dict N/A None N/A N/A Create a NiftiWrapper from a nibabel DicomWrapper.

        Parameters
        ----------
        dcm_wrap : nicom.dicomwrappers.DicomWrapper
            The dataset to convert into a NiftiWrapper.

        meta_dict : dict
            An optional dictionary of meta data extracted from `dcm_data`. See
            the `extract` module for generating this dict.

         N/A data N/A N/A dcm_wrp get_data N/A affine N/A N/A np dot N/A N/A np diag N/A -1.0 -1.0 1.0 1.0 N/A N/A dcm_wrp get_affine N/A N/A N/A len N/A data shape 2 N/A N/A data N/A N/A data reshape N/A N/A data shape N/A 1 N/A nii_img N/A N/A N/A nb nifti1 Nifti1Image data affine N/A hdr N/A N/A nii_img get_header N/A N/A N/A hdr set_xyzt_units mm sec N/A dim_info N/A freq phase slice None None 2 N/A N/A hasattr N/A dcm_wrp dcm_data InplanePhaseEncodingDirection N/A N/A N/A N/A dcm_wrp N/A InplanePhaseEncodingDirection ROW N/A N/A N/A dim_info N/A phase 1 N/A N/A dim_info N/A freq 0 N/A N/A N/A dim_info N/A phase 0 N/A N/A dim_info N/A freq 1 N/A N/A N/A hdr set_dim_info dim_info N/A result N/A klass nii_img make_empty True N/A N/A N/A result meta_ext reorient_transform N/A N/A np eye 4 N/A meta_dict N/A N/A N/A N/A N/A N/A N/A result meta_ext get_class_dict N/A global const update meta_dict N/A result N/A classmethod from_dicom N/A N/A klass dcm_data meta_dict N/A None N/A N/A Create a NiftiWrapper from a single DICOM dataset.

        Parameters
        ----------
        dcm_data : dicom.dataset.Dataset
            The DICOM dataset to convert into a NiftiWrapper.

        meta_dict : dict
            An optional dictionary of meta data extracted from `dcm_data`. See
            the `extract` module for generating this dict.

         N/A dcm_wrp N/A wrapper_from_data dcm_data N/A N/A N/A klass from_dicom_wrapper dcm_wrp meta_dict N/A classmethod from_sequence N/A N/A klass seq dim N/A None N/A N/A Create a NiftiWrapper by joining a sequence of NiftiWrapper objects
        along the given dimension.

        Parameters
        ----------
        seq : sequence
            The sequence of NiftiWrapper objects.

        dim : int
            The dimension to join the NiftiWrapper objects along. If None,
            2D inputs will become 3D, 3D inputs will become 4D, and 4D inputs
            will become 5D.

        Returns
        -------
        result : NiftiWrapper
            The merged NiftiWrapper with updated meta data.
         N/A n_inputs N/A len seq N/A first_input N/A seq N/A 0 N/A first_nii N/A first_input nii_img N/A first_hdr N/A N/A first_nii get_header N/A shape N/A first_nii shape N/A affine N/A N/A N/A N/A first_nii get_affine copy N/A N/A dim None N/A N/A N/A N/A len shape 3 N/A N/A singular_dim None N/A N/A dim_idx dim_size N/A enumerate shape N/A N/A N/A dim_size 1 N/A N/A singular_dim dim_idx N/A N/A singular_dim None N/A N/A dim 3 N/A N/A dim singular_dim N/A N/A N/A len shape 4 N/A N/A dim 4 N/A N/A N/A N/A 0 dim 5 N/A N/A N/A ValueError The argument 'dim' must be in the range [0, 5). N/A N/A N/A dim N/A len shape N/A N/A shape N/A dim 1 N/A N/A N/A ValueError The dimension must be singular or not exist N/A axes N/A N/A axis_idx N/A xrange 3 N/A N/A axis_vec N/A affine N/A N/A 3 N/A axis_idx N/A N/A axis_idx dim N/A N/A axis_vec N/A N/A axis_vec copy N/A axis_vec N/A N/A np sqrt N/A N/A np dot axis_vec axis_vec N/A N/A N/A axes append axis_vec N/A trans N/A affine N/A N/A 3 N/A 3 N/A result_shape N/A list shape N/A N/A dim N/A len result_shape N/A N/A N/A N/A result_shape append 1 N/A N/A result_shape N/A dim n_inputs N/A result_dtype N/A max N/A N/A N/A N/A N/A input_wrp nii_img get_data dtype N/A input_wrp seq N/A result_data N/A N/A np empty result_shape dtype result_dtype N/A hdr_info N/A qform qform_code sform sform_code dim_info xyzt_units N/A N/A first_hdr get_qform N/A first_hdr N/A qform_code N/A N/A first_hdr get_sform N/A first_hdr N/A sform_code N/A list N/A N/A first_hdr get_dim_info N/A list N/A N/A first_hdr get_xyzt_units N/A N/A N/A N/A hdr_info N/A slice_duration N/A N/A first_hdr get_slice_duration N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A slice_duration None N/A N/A N/A N/A hdr_info N/A intent N/A N/A first_hdr get_intent N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A intent None N/A N/A N/A N/A hdr_info N/A slice_times N/A N/A first_hdr get_slice_times N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A slice_times None N/A data_slices N/A N/A N/A slice None N/A len result_shape N/A N/A dim_idx dim_size N/A enumerate result_shape N/A N/A N/A dim_size 1 N/A N/A N/A data_slices N/A dim_idx 0 N/A last_trans None N/A input_idx N/A range n_inputs N/A N/A input_wrp N/A seq N/A input_idx N/A input_nii N/A input_wrp nii_img N/A input_aff N/A N/A input_nii get_affine N/A input_hdr N/A N/A input_nii get_header N/A N/A axis_idx axis_vec N/A enumerate axes N/A N/A in_vec N/A input_aff N/A N/A 3 N/A axis_idx N/A N/A axis_idx dim N/A N/A in_vec N/A N/A in_vec copy N/A in_vec N/A N/A np sqrt N/A N/A np dot in_vec in_vec N/A in_trans N/A input_aff N/A N/A 3 N/A 3 N/A N/A N/A last_trans None N/A N/A trans_diff N/A in_trans last_trans N/A N/A N/A N/A np allclose trans_diff 0.0 N/A N/A trans_diff N/A N/A np sqrt N/A N/A np dot trans_diff trans_diff N/A N/A N/A N/A np allclose trans_diff 0.0 N/A N/A N/A np allclose N/A N/A np dot trans_diff in_vec 1.0 atol 1e-06 N/A N/A N/A ValueError Slices must be translated along the normal direction N/A last_trans in_trans N/A N/A N/A N/A np allclose in_vec axis_vec atol 0.0005 N/A N/A N/A ValueError Cannot join images with different orientations. N/A N/A data_slices N/A dim input_idx N/A N/A result_data N/A data_slices N/A N/A N/A N/A input_nii get_data squeeze N/A N/A input_idx 0 N/A N/A N/A N/A N/A hdr_info N/A qform None N/A N/A N/A input_hdr get_qform None N/A N/A N/A np allclose N/A N/A input_hdr get_qform N/A hdr_info N/A qform N/A N/A N/A hdr_info N/A qform None N/A N/A N/A input_hdr N/A qform_code N/A hdr_info N/A qform_code N/A N/A N/A hdr_info N/A qform_code None N/A N/A N/A N/A hdr_info N/A sform None N/A N/A N/A input_hdr get_sform None N/A N/A N/A np allclose N/A N/A input_hdr get_sform N/A hdr_info N/A sform N/A N/A N/A hdr_info N/A sform None N/A N/A N/A input_hdr N/A sform_code N/A hdr_info N/A sform_code N/A N/A N/A hdr_info N/A sform_code None N/A in_dim_info N/A list N/A N/A input_hdr get_dim_info N/A N/A in_dim_info N/A hdr_info N/A dim_info N/A N/A idx N/A xrange 3 N/A N/A N/A N/A in_dim_info N/A idx N/A N/A hdr_info N/A dim_info N/A idx N/A N/A N/A N/A hdr_info N/A dim_info N/A idx None N/A in_xyzt_units N/A list N/A N/A input_hdr get_xyzt_units N/A N/A in_xyzt_units N/A hdr_info N/A xyzt_units N/A N/A idx N/A xrange 2 N/A N/A N/A N/A in_xyzt_units N/A idx N/A N/A hdr_info N/A xyzt_units N/A idx N/A N/A N/A N/A hdr_info N/A xyzt_units N/A idx None N/A N/A N/A N/A N/A N/A input_hdr get_slice_duration N/A hdr_info N/A slice_duration N/A N/A N/A hdr_info N/A slice_duration None N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A slice_duration None N/A N/A N/A N/A N/A N/A input_hdr get_intent N/A hdr_info N/A intent N/A N/A N/A hdr_info N/A intent None N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A intent None N/A N/A N/A N/A N/A N/A input_hdr get_slice_times N/A hdr_info N/A slice_times N/A N/A N/A hdr_info N/A slice_times None N/A N/A N/A HeaderDataError N/A N/A N/A hdr_info N/A slice_times None N/A scaled_dim_dir None N/A N/A dim 3 N/A N/A scaled_dim_dir N/A N/A N/A N/A N/A N/A seq N/A 1 nii_img get_affine N/A N/A 3 N/A 3 trans N/A N/A affine N/A N/A 3 N/A dim scaled_dim_dir N/A result_nii N/A N/A nb Nifti1Image result_data affine N/A result_hdr N/A N/A result_nii get_header N/A N/A N/A N/A hdr_info N/A qform None N/A N/A hdr_info N/A qform_code None N/A N/A N/A N/A scaled_dim_dir None N/A N/A N/A N/A hdr_info N/A qform N/A N/A 3 N/A dim scaled_dim_dir N/A N/A N/A result_nii set_qform N/A hdr_info N/A qform N/A int N/A hdr_info N/A qform_code update_affine True N/A N/A N/A N/A hdr_info N/A sform None N/A N/A hdr_info N/A sform_code None N/A N/A N/A N/A scaled_dim_dir None N/A N/A N/A N/A hdr_info N/A sform N/A N/A 3 N/A dim scaled_dim_dir N/A N/A N/A result_nii set_sform N/A hdr_info N/A sform N/A int N/A hdr_info N/A sform_code update_affine True N/A N/A N/A hdr_info N/A dim_info None N/A N/A N/A N/A result_hdr set_dim_info N/A hdr_info N/A dim_info N/A slice_dim N/A N/A hdr_info N/A dim_info N/A 2 N/A N/A slice_dim None N/A N/A N/A hdr_info N/A intent None N/A N/A N/A N/A result_hdr set_intent N/A hdr_info N/A intent N/A N/A N/A hdr_info N/A xyzt_units None N/A N/A N/A N/A result_hdr set_xyzt_units N/A hdr_info N/A xyzt_units N/A N/A N/A hdr_info N/A slice_duration None N/A N/A N/A N/A result_hdr set_slice_duration N/A hdr_info N/A slice_duration N/A N/A N/A hdr_info N/A slice_times None N/A N/A N/A N/A result_hdr set_slice_times N/A hdr_info N/A slice_times N/A seq_exts N/A N/A elem meta_ext N/A elem seq N/A result_ext N/A N/A DcmMetaExtension from_sequence seq_exts dim affine slice_dim N/A N/A N/A N/A result_hdr extensions append result_ext N/A N/A NiftiWrapper result_nii N/A classmethod N/A