Module Import alias Import alias ImportFrom alias Import alias Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num AugAssignDiv SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num AugAssignDiv SubscriptStore NameLoad Index Str Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad keyword Str keyword NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num If BoolOpAnd NameLoad CompareNotEq BinOpMod BinOpSub BinOpSub BinOpDiv NameLoad Num Num NameLoad BinOpMult NameLoad NameLoad Num body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad keyword Str keyword BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMult Num NameLoad keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Num attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad Str keyword Num NameStore body Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Index Num Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Num BinOpBitAnd BinOpRShift NameLoad Num Num Assign SubscriptStore NameLoad Index Num BinOpBitAnd BinOpRShift NameLoad Num Num Assign SubscriptStore NameLoad Index Num BinOpBitAnd NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad keyword Str attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Str If Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Str If Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore BinOpMod Str NameLoad Raise Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Str Assign NameStore SubscriptLoad NameLoad Slice Num orelse Raise Call NameLoad BinOpMod Str NameLoad If CompareIsNot NameLoad Str body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore ListLoad BinOpAdd NameLoad Str BinOpAdd NameLoad Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore ListLoad BinOpAdd NameLoad Str BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str If BoolOpAnd Call NameLoad NameLoad CompareIsNot NameLoad Str body Assign NameStore Str orelse If Call NameLoad NameLoad body Assign NameStore Str orelse If NameLoad body Assign NameStore Str orelse If BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Str body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num orelse Raise Call NameLoad Str orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assert CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assign NameStore Call NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str attr Assign SubscriptStore NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Num Assign SubscriptStore NameLoad Index Str Num orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad BinOpAdd NameLoad Str keyword Str If CompareNotEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index Str If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num comprehension NameStore NameLoad body Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad NameLoad Index Num BinOpAdd Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad SubscriptLoad NameLoad Index Str body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Str If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameLoad Assign NameStore NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body If UnaryOpNot Call NameLoad GeneratorExp Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad body Raise Call NameLoad Str If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num comprehension NameStore NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad orelse Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num 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 Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BinOpDiv Num AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Index Num If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad orelse Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Num Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpDiv Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse AugAssignAdd AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpDiv BinOpAdd AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpSub NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad AugAssignSub AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse AugAssignSub AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignDiv NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad AugAssignDiv AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse AugAssignDiv AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignMult NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad AugAssignMult AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse AugAssignMult AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignPow NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AugAssignPow AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpSub NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpMult NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AugAssignMult AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpPow NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad AttributeLoad NameLoad attr body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Assign NameStore BinOpBitAnd CompareGtE AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad CompareLt AttributeLoad NameLoad attr SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Assign SubscriptStore NameLoad ExtSlice Slice Index NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad keyword Num Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num BinOpDiv NameLoad Num Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body If AttributeLoad NameLoad attr body Expr Call NameLoad Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BinOpMult Num AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub SubscriptLoad NameLoad Index CompareGtE NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad Num NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad Num NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpDiv AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body If NameLoad body Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Slice Index NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Raise Call NameLoad Str orelse Assign NameStore IfExp UnaryOpNot NameLoad NameLoad Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str If CompareNotIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice UnaryOpUSub Call NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpAdd NameLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad BinOpAdd NameLoad Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse If CompareEq NameLoad Str body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpAdd NameLoad Str keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad ExtSlice Slice Index Num Expr Call NameLoad BinOpAdd NameLoad Str keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad ExtSlice Slice Index Num orelse If CompareEq NameLoad Str body Expr Call NameLoad BinOpAdd NameLoad Str Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str BinOpMult Num AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str BinOpMult Num SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignAdd NameStore BinOpMod Str BinOpMult Num AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Slice Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Slice Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad If CompareEq Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If UnaryOpNot CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore ListLoad Num For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore ListLoad Call AttributeLoad NameLoad attr AugAssignAdd NameStore ListLoad Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpAdd Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Index Num If UnaryOpNot CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num If CompareNotIn NameLoad ListLoad Num Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str BinOpAdd SubscriptLoad NameLoad Index NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num orelse If CompareIs NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call AttributeLoad NameLoad attr CompareLt AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num ExtSlice Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Slice attr Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow BinOpSub SubscriptLoad SubscriptLoad NameLoad Index Num ExtSlice Index NameLoad Slice NameLoad Num keyword Num Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num attr NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr BinOpMult NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str Str Str Num NameLoad Num NameLoad NameLoad NameLoad NameLoad Str NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad Num Num NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str NameLoad NameLoad body Expr Str Assign NameStore SubscriptLoad Dict Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad Dict Str Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad IfExp NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad IfExp NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body If UnaryOpNot BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str If CompareNotIn NameLoad ListLoad Str Str body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str BinOpMult Num AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str BinOpMult Num SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignAdd NameStore BinOpMod Str BinOpMult Num AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad IfExp NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad IfExp NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str Str Str Num NameLoad Num NameLoad Dict NameLoad NameLoad Str NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Num If CompareIsNot NameLoad NameLoad body If CompareLtE NameLoad Num body Raise Call NameLoad Str AugAssignSub NameStore Num Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad BinOpAdd NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore NameLoad If CompareIs NameLoad NameLoad body If BoolOpOr CompareEq NameLoad NameLoad CompareGtE Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If CompareEq NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Break If NameLoad body AugAssignDiv AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse AugAssignDiv NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad If NameLoad body Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num AugAssignDiv AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse AugAssignDiv SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad SubscriptLoad NameLoad Index NameLoad ExtSlice Slice Index NameLoad If BoolOpAnd CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpAdd NameLoad Num Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareLt Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body If NameLoad body Assign NameStore BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad NameLoad orelse Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Assign NameStore BinOpMult NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str BinOpAdd NameLoad Str comprehension NameStore ListLoad Str Str Assign NameStore ListComp SubscriptLoad Call NameLoad NameLoad Index Num comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad ListLoad Str Str body If CompareGt AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad Num Num NameLoad NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad For NameStore ListLoad Num Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index CompareEq AttributeLoad NameLoad attr Num Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareEq Call NameLoad NameLoad Num body Continue Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad comprehension NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad keyword Num keyword Num Assign NameStore ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareIs SubscriptLoad NameLoad Index Num NameLoad body If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad ListLoad ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr ListLoad NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListLoad Call AttributeLoad NameLoad attr ListLoad NameLoad SubscriptLoad NameLoad Index Num orelse If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListLoad SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr ListLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMult ListLoad NameLoad Num For NameStore ListLoad Num Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index CompareEq AttributeLoad NameLoad attr Num Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq Call NameLoad NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad ListLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad keyword Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Num body Return ListLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str BinOpAdd NameLoad Str comprehension NameStore ListLoad Str Str Assign TupleStore NameStore NameStore ListComp SubscriptLoad Call NameLoad NameLoad Index Num comprehension NameStore NameLoad If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body If UnaryOpNot CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index NameLoad AugAssignDiv NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num ExtSlice Slice Index NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore ListComp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore ListLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad GeneratorExp Call NameLoad NameLoad NameLoad comprehension NameStore ListLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If UnaryOpNot CompareEq Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad Str If UnaryOpNot CompareEq SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore BinOpMult NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body If CompareIs SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad body Raise Call NameLoad Str Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp Call NameLoad NameLoad SubscriptLoad NameLoad Index Str comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad GeneratorExp AttributeLoad NameLoad attr comprehension NameStore NameLoad BinOpDiv SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad Str If CompareNotEq ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad ListComp Call NameLoad SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv BinOpMult Num Call NameLoad BinOpSub Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad If NameLoad body Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad orelse Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpAdd NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs SubscriptLoad SubscriptLoad NameLoad Index Num Index Str NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad ListComp SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Index SubscriptLoad NameLoad Index Str Slice ExtSlice Slice Index SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call NameLoad NameLoad Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call NameLoad NameLoad Num NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call NameLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad keyword NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad keyword NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Num NameLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult BinOpMult NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr TupleLoad Num NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice NameLoad attr Assign NameStore Call AttributeLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice NameLoad attr If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad BinOpAdd BinOpMult NameLoad SubscriptLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad Num ExtSlice Slice Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Index NameLoad Slice attr Assign NameStore Call AttributeLoad BinOpAdd BinOpMult NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Num NameLoad ExtSlice Slice Index NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Index NameLoad Slice attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpMult AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMult BinOpMult Num NameLoad BinOpSub NameLoad Num keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad TupleLoad NameLoad TupleLoad NameLoad NameLoad keyword BinOpMult TupleLoad BinOpMult NameLoad NameLoad Num Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return SubscriptLoad NameLoad Index Str orelse Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore TupleLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str attr orelse Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str attr If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Index Str NameLoad AugAssignMult SubscriptStore NameLoad Slice Num Num TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Num BinOpMult Num AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad ExtSlice Slice Index NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad NameLoad orelse Expr Call NameLoad BinOpAdd NameLoad Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Pass orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad orelse If CompareEq NameLoad Str body Pass orelse Raise Call NameLoad BinOpMod Str NameLoad For NameStore NameLoad body If BoolOpOr CompareNotEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num CompareNotEq Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index Num body Raise Call NameLoad Str If Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr CompareNotEq NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword AttributeLoad AttributeLoad NameLoad attr attr If CompareEq NameLoad Str body For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice keyword Num orelse If CompareEq NameLoad Str body For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr BinOpMult NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice keyword Num orelse If CompareEq NameLoad Str body For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpMult BinOpMult NameLoad NameLoad SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad Str body For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice keyword Num orelse Raise Call NameLoad BinOpMod Str NameLoad Expr Yield NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Return NameLoad decorator_list NameLoad
N/A N/A copy N/A os math ceil N/A warnings N/A numpy np scipy linalg sparse scipy.sparse coo_matrix filter resample evoked _get_peak parallel parallel_func surface read_surface _get_ico_surface read_morph_map _compute_nearest mesh_edges source_space _ensure_src _get_morph_src_reordering _ensure_src_subject utils get_subjects_dir _check_subject logger verbose _time_mask warn warn_ viz plot_source_estimates fixes in1d sparse_block_diag io.base ToDataFrameMixin TimeMixin externals.six.moves zip externals.six string_types externals.h5io read_hdf5 write_hdf5 _read_stc N/A N/A filename N/A N/A N/A  Aux Function
     N/A fid N/A open filename rb N/A stc N/A dict N/A N/A N/A fid seek 0 2 N/A file_length N/A N/A fid tell N/A N/A N/A fid seek 0 0 N/A N/A stc N/A tmin N/A float N/A N/A np fromfile fid dtype >f4 count 1 N/A N/A stc N/A tmin 1000.0 N/A N/A stc N/A tstep N/A float N/A N/A np fromfile fid dtype >f4 count 1 N/A N/A stc N/A tstep 1000.0 N/A vertices_n N/A int N/A N/A np fromfile fid dtype >u4 count 1 N/A N/A stc N/A vertices N/A N/A np fromfile fid dtype >u4 count vertices_n N/A data_n N/A int N/A N/A np fromfile fid dtype >u4 count 1 N/A N/A vertices_n N/A N/A N/A N/A N/A file_length 4 4 vertices_n N/A data_n vertices_n 0 N/A N/A N/A ValueError incorrect stc file size N/A N/A stc N/A data N/A N/A np fromfile fid dtype >f4 count N/A vertices_n data_n N/A N/A stc N/A data N/A N/A N/A N/A stc N/A data reshape N/A data_n vertices_n T N/A N/A N/A fid close N/A stc N/A _write_stc N/A N/A filename tmin tstep vertices data N/A N/A N/A Write an STC file

    Parameters
    ----------
    filename : string
        The name of the STC file.
    tmin : float
        The first time point of the data in seconds.
    tstep : float
        Time between frames in seconds.
    vertices : array of integers
        Vertex indices (0 based).
    data : 2D array
        The data matrix (nvert * ntime).
     N/A fid N/A open filename wb N/A N/A N/A fid write N/A N/A N/A N/A np array N/A 1000 tmin dtype >f4 tostring N/A N/A N/A fid write N/A N/A N/A N/A np array N/A 1000 tstep dtype >f4 tostring N/A N/A N/A fid write N/A N/A N/A N/A np array N/A N/A vertices shape N/A 0 dtype >u4 tostring N/A N/A N/A fid write N/A N/A N/A N/A np array vertices dtype >u4 tostring N/A N/A N/A fid write N/A N/A N/A N/A np array N/A N/A data shape N/A 1 dtype >u4 tostring N/A N/A N/A fid write N/A N/A N/A N/A np array N/A data T dtype >f4 tostring N/A N/A N/A fid close N/A _read_3 N/A N/A fid N/A N/A N/A  Read 3 byte integer from file
     N/A data N/A N/A N/A N/A np fromfile fid dtype N/A np uint8 count 3 astype N/A np int32 N/A out N/A N/A N/A N/A np left_shift N/A data N/A 0 16 N/A N/A np left_shift N/A data N/A 1 8 N/A data N/A 2 N/A out N/A _read_w N/A N/A filename N/A N/A N/A Read a w file and return as dict

    w files contain activations or source reconstructions for a single time
    point.

    Parameters
    ----------
    filename : string
        The name of the w file.

    Returns
    -------
    data: dict
        The w structure. It has the following keys:
           vertices       vertex indices (0 based)
           data           The data matrix (nvert long)
     N/A N/A open filename rb buffering 0 fid N/A N/A N/A N/A fid read 2 N/A vertices_n N/A int N/A _read_3 fid N/A vertices N/A N/A np zeros vertices_n dtype N/A np int32 N/A data N/A N/A np zeros vertices_n dtype N/A np float32 N/A i N/A range vertices_n N/A N/A N/A vertices N/A i N/A _read_3 fid N/A N/A data N/A i N/A N/A N/A np fromfile fid dtype >f4 count 1 N/A 0 N/A w N/A dict N/A N/A w N/A vertices vertices N/A N/A w N/A data data N/A w N/A _write_3 N/A N/A fid val N/A N/A N/A  Write 3 byte integer to file
     N/A f_bytes N/A N/A np zeros 3 dtype N/A np uint8 N/A N/A f_bytes N/A 0 N/A N/A val 16 255 N/A N/A f_bytes N/A 1 N/A N/A val 8 255 N/A N/A f_bytes N/A 2 N/A val 255 N/A N/A N/A fid write N/A N/A f_bytes tostring N/A _write_w N/A N/A filename vertices data N/A N/A N/A Read a w file

    w files contain activations or source reconstructions for a single time
    point.

    Parameters
    ----------
    filename: string
        The name of the w file.
    vertices: array of int
        Vertex indices (0 based).
    data: 1D array
        The data array (nvert).
     N/A N/A N/A len vertices N/A len data N/A fid N/A open filename wb N/A N/A N/A fid write N/A N/A N/A N/A np zeros 2 dtype N/A np uint8 tostring N/A vertices_n N/A len vertices N/A N/A _write_3 fid vertices_n N/A i N/A range vertices_n N/A N/A N/A _write_3 fid N/A vertices N/A i N/A N/A N/A fid write N/A N/A N/A N/A np array N/A float N/A data N/A i dtype >f4 tostring N/A N/A N/A fid close N/A read_source_estimate N/A N/A fname subject N/A None N/A N/A Read a soure estimate object

    Parameters
    ----------
    fname : str
        Path to (a) source-estimate file(s).
    subject : str | None
        Name of the subject the source estimate(s) is (are) from.
        It is good practice to set this attribute to avoid combining
        incompatible labels and SourceEstimates (e.g., ones from other
        subjects). Note that due to file specification limitations, the
        subject name isn't saved to or loaded from files written to disk.

    Returns
    -------
    stc : SourceEstimate | VolSourceEstimate
        The soure estimate object loaded from file.

    Notes
    -----
     - for volume source estimates, ``fname`` should provide the path to a
       single file named '*-vl.stc` or '*-vol.stc'
     - for surface source estimates, ``fname`` should either provide the
       path to the file corresponding to a single hemisphere ('*-lh.stc',
       '*-rh.stc') or only specify the asterisk part in these patterns. In any
       case, the function expects files for both hemisphere with names
       following this pattern.
     - for single time point .w files, ``fname`` should follow the same
       pattern as for surface estimates, except that files are named
       '*-lh.w' and '*-rh.w'.
     N/A fname_arg fname N/A ftype None N/A N/A N/A N/A os path exists fname N/A N/A N/A N/A N/A fname endswith -vl.stc N/A N/A fname endswith -vol.stc N/A N/A fname endswith -vl.w N/A N/A fname endswith -vol.w N/A N/A ftype volume N/A N/A N/A N/A fname endswith .stc N/A N/A ftype surface N/A N/A N/A fname endswith N/A -lh.stc -rh.stc N/A N/A fname N/A fname N/A -7 N/A N/A err N/A Invalid .stc filename: %r; needs to end with hemisphere tag ('...-lh.stc' or '...-rh.stc') fname N/A N/A IOError err N/A N/A N/A N/A fname endswith .w N/A N/A ftype w N/A N/A N/A fname endswith N/A -lh.w -rh.w N/A N/A fname N/A fname N/A -5 N/A N/A err N/A Invalid .w filename: %r; needs to end with hemisphere tag ('...-lh.w' or '...-rh.w') fname N/A N/A IOError err N/A N/A N/A N/A fname endswith -stc.h5 N/A N/A ftype h5 N/A fname N/A fname N/A -7 N/A N/A N/A RuntimeError N/A Unknown extension for file %s fname_arg N/A N/A ftype volume N/A N/A stc_exist N/A N/A N/A N/A os path exists f N/A f N/A N/A fname -rh.stc N/A fname -lh.stc N/A w_exist N/A N/A N/A N/A os path exists f N/A f N/A N/A fname -rh.w N/A fname -lh.w N/A h5_exist N/A N/A N/A os path exists N/A fname -stc.h5 N/A N/A N/A all stc_exist N/A ftype w N/A N/A ftype surface N/A N/A N/A all w_exist N/A N/A ftype w N/A N/A h5_exist N/A N/A ftype h5 N/A N/A N/A N/A any stc_exist N/A any w_exist N/A N/A N/A IOError N/A Hemisphere missing for %r fname_arg N/A N/A N/A IOError N/A SourceEstimate File(s) not found for: %r fname_arg N/A N/A ftype volume N/A N/A N/A N/A fname endswith .stc N/A N/A kwargs N/A _read_stc fname N/A N/A N/A N/A fname endswith .w N/A N/A kwargs N/A _read_w fname N/A N/A kwargs N/A data N/A N/A kwargs N/A data N/A N/A N/A N/A np newaxis N/A N/A kwargs N/A tmin 0.0 N/A N/A kwargs N/A tstep 0.0 N/A N/A N/A IOError Volume source estimate must end with .stc or .w N/A N/A N/A ftype surface N/A N/A lh N/A _read_stc N/A fname -lh.stc N/A rh N/A _read_stc N/A fname -rh.stc N/A N/A N/A lh N/A tmin N/A rh N/A tmin N/A N/A N/A lh N/A tstep N/A rh N/A tstep N/A kwargs N/A N/A lh copy N/A N/A kwargs N/A data N/A N/A np r_ N/A N/A N/A lh N/A data N/A rh N/A data N/A N/A kwargs N/A vertices N/A N/A lh N/A vertices N/A rh N/A vertices N/A N/A N/A ftype w N/A N/A lh N/A _read_w N/A fname -lh.w N/A rh N/A _read_w N/A fname -rh.w N/A kwargs N/A N/A lh copy N/A N/A kwargs N/A data N/A N/A N/A np atleast_2d N/A N/A np r_ N/A N/A N/A lh N/A data N/A rh N/A data T N/A N/A kwargs N/A vertices N/A N/A lh N/A vertices N/A rh N/A vertices N/A N/A kwargs N/A tmin 0.0 N/A N/A kwargs N/A tstep 1.0 N/A N/A N/A ftype h5 N/A N/A kwargs N/A read_hdf5 N/A fname -stc.h5 title mnepython N/A N/A ftype volume N/A N/A vertices N/A kwargs N/A vertices N/A N/A any N/A N/A N/A np any N/A N/A N/A np diff N/A N/A v astype int 0 N/A v vertices N/A N/A sidx N/A N/A N/A np argsort verts N/A verts vertices N/A vertices N/A N/A verts N/A idx N/A N/A verts idx N/A zip vertices sidx N/A data N/A N/A kwargs N/A data N/A N/A N/A np r_ N/A N/A N/A sidx N/A 0 N/A N/A len N/A sidx N/A 0 N/A sidx N/A 1 N/A N/A kwargs N/A vertices vertices N/A N/A kwargs N/A data data N/A N/A subject kwargs N/A N/A N/A kwargs N/A subject subject N/A N/A N/A subject None N/A subject N/A kwargs N/A subject N/A N/A N/A RuntimeError N/A provided subject name "%s" does not match subject name from the file "%s N/A subject N/A kwargs N/A subject N/A N/A ftype volume N/A N/A stc N/A VolSourceEstimate kwargs N/A N/A stc N/A SourceEstimate kwargs N/A stc N/A _make_stc N/A N/A data vertices tmin tstep subject N/A None None None N/A N/A Helper function to generate a surface, volume or mixed source estimate
     N/A N/A N/A isinstance vertices list N/A N/A len vertices 2 N/A N/A stc N/A SourceEstimate data vertices vertices tmin tmin tstep tstep subject subject N/A N/A N/A N/A isinstance vertices N/A np ndarray N/A N/A isinstance vertices list N/A N/A len vertices 1 N/A N/A stc N/A VolSourceEstimate data vertices vertices tmin tmin tstep tstep subject subject N/A N/A N/A N/A isinstance vertices list N/A N/A len vertices 2 N/A N/A stc N/A MixedSourceEstimate data vertices vertices tmin tmin tstep tstep subject subject N/A N/A N/A ValueError vertices has to be either a list with one or more arrays or an array N/A stc N/A _verify_source_estimate_compat N/A N/A a b N/A N/A N/A Make sure two SourceEstimates are compatible for arith. operations N/A compat False N/A N/A N/A len N/A a vertices N/A len N/A b vertices N/A N/A N/A all N/A N/A N/A np array_equal av vv N/A N/A av vv N/A zip N/A a vertices N/A b vertices N/A N/A compat True N/A N/A compat N/A N/A N/A ValueError Cannot combine SourceEstimates that do not have the same vertices. Consider using stc.expand(). N/A N/A N/A a subject N/A b subject N/A N/A N/A ValueError N/A source estimates do not have the same subject names, %r and %r N/A N/A a subject N/A b subject N/A _BaseSourceEstimate N/A ToDataFrameMixin TimeMixin N/A N/A Abstract base class for source estimates

    Parameters
    ----------
    data : array of shape (n_dipoles, n_times) | 2-tuple (kernel, sens_data)
        The data in source space. The data can either be a single array or
        a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and
        "sens_data" shape (n_sensors, n_times). In this case, the source
        space data corresponds to "numpy.dot(kernel, sens_data)".
    vertices : array | list of two arrays
        Vertex numbers corresponding to the data.
    tmin : float
        Time point of the first sample in data.
    tstep : float
        Time step between successive samples in data.
    subject : str | None
        The subject name. While not necessary, it is safer to set the
        subject parameter to avoid analysis errors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Attributes
    ----------
    subject : str | None
        The subject name.
    times : array of shape (n_times,)
        The time vector.
    vertices : array or list of arrays of shape (n_dipoles,)
        The indices of the dipoles in the different source spaces. Can
        be an array if there is only one source space (e.g., for volumes).
    data : array of shape (n_dipoles, n_times)
        The data in source space.
    shape : tuple
        The shape of the data. A tuple of int (n_dipoles, n_times).
     __init__ N/A N/A self data vertices tmin tstep subject verbose N/A None None None None None N/A N/A N/A kernel sens_data N/A None None N/A N/A isinstance data tuple N/A N/A N/A N/A len data 2 N/A N/A N/A ValueError If data is a tuple it has to be length 2 N/A N/A kernel sens_data data N/A data None N/A N/A N/A N/A kernel shape N/A 1 N/A N/A sens_data shape N/A 0 N/A N/A N/A ValueError kernel and sens_data have invalid dimensions N/A N/A isinstance vertices list N/A N/A N/A N/A all N/A N/A isinstance v N/A np ndarray N/A v vertices N/A N/A N/A ValueError Vertices, if a list, must contain numpy arrays N/A N/A any N/A N/A N/A np any N/A N/A N/A np diff N/A N/A v astype int 0 N/A v vertices N/A N/A N/A ValueError Vertices must be ordered in increasing order. N/A n_src N/A sum N/A N/A len v N/A v vertices N/A N/A N/A len vertices 1 N/A N/A vertices N/A vertices N/A 0 N/A N/A N/A isinstance vertices N/A np ndarray N/A N/A n_src N/A len vertices N/A N/A N/A ValueError Vertices must be a list or numpy array N/A N/A N/A data None N/A N/A N/A data shape N/A 0 n_src N/A N/A N/A ValueError N/A Number of vertices (%i) and stc.shape[0] (%i) must match N/A n_src N/A N/A data shape N/A 0 N/A N/A self _data data N/A N/A self tmin tmin N/A N/A self tstep tstep N/A N/A self vertices vertices N/A N/A self verbose verbose N/A N/A self _kernel kernel N/A N/A self _sens_data sens_data N/A N/A self _kernel_removed False N/A N/A self times None N/A N/A N/A self _update_times N/A N/A self subject N/A _check_subject None subject False N/A verbose sfreq N/A N/A self N/A N/A N/A Sample rate of the data N/A N/A 1.0 N/A self tstep N/A property _remove_kernel_sens_data_ N/A N/A self N/A N/A N/A Remove kernel and sensor space data and compute self._data
         N/A N/A N/A N/A self _kernel None N/A N/A self _sens_data None N/A N/A N/A self _kernel_removed True N/A N/A self _data N/A N/A np dot N/A self _kernel N/A self _sens_data N/A N/A self _kernel None N/A N/A self _sens_data None N/A crop N/A N/A self tmin tmax N/A None None N/A N/A Restrict SourceEstimate to a time interval

        Parameters
        ----------
        tmin : float | None
            The first time point in seconds. If None the first present is used.
        tmax : float | None
            The last time point in seconds. If None the last present is used.
         N/A mask N/A _time_mask N/A self times tmin tmax sfreq N/A self sfreq N/A N/A self tmin N/A N/A self times N/A N/A N/A N/A N/A np where mask N/A 0 N/A 0 N/A N/A N/A N/A self _kernel None N/A N/A self _sens_data None N/A N/A N/A self _sens_data N/A N/A self _sens_data N/A N/A N/A mask N/A N/A N/A self _data N/A N/A self _data N/A N/A N/A mask N/A N/A N/A self _update_times N/A self N/A resample N/A N/A self sfreq npad window n_jobs verbose N/A None boxcar 1 None N/A N/A Resample data

        Parameters
        ----------
        sfreq : float
            New sample rate to use.
        npad : int | str
            Amount to pad the start and end of the data.
            Can also be "auto" to use a padding that will result in
            a power-of-two size (can be much faster).
        window : string or tuple
            Window to use in resampling. See scipy.signal.resample.
        n_jobs : int
            Number of jobs to run in parallel.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.

        Notes
        -----
        For some data, it may be more accurate to use npad=0 to reduce
        artifacts. This is dataset dependent -- check your data!

        Note that the sample rate of the original data is inferred from tstep.
         N/A N/A npad None N/A N/A npad 100 N/A N/A warn_ npad is currently taken to be 100, but will be changed to "auto" in 0.12. Please set the value explicitly. DeprecationWarning N/A N/A N/A self _remove_kernel_sens_data_ N/A o_sfreq N/A 1.0 N/A self tstep N/A N/A self _data N/A resample N/A self _data sfreq o_sfreq npad n_jobs n_jobs N/A N/A self tstep N/A 1.0 sfreq N/A N/A N/A self _update_times N/A verbose data N/A N/A self N/A N/A N/A Numpy array of source estimate data N/A N/A N/A self _data None N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A self _data N/A property shape N/A N/A self N/A N/A N/A Shape of the data N/A N/A N/A self _data None N/A N/A N/A N/A self _data shape N/A N/A N/A N/A N/A self _kernel shape N/A 0 N/A N/A N/A self _sens_data shape N/A 1 N/A property _update_times N/A N/A self N/A N/A N/A Update the times attribute after changing tmin, tmax, or tstep N/A N/A self times N/A N/A self tmin N/A N/A self tstep N/A N/A np arange N/A N/A self shape N/A 1 N/A __add__ N/A N/A self a N/A N/A N/A stc N/A N/A copy deepcopy self N/A stc a N/A stc N/A __iadd__ N/A N/A self a N/A N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A isinstance a _BaseSourceEstimate N/A N/A N/A _verify_source_estimate_compat self a N/A N/A self _data N/A a data N/A N/A N/A self _data a N/A self N/A mean N/A N/A self N/A N/A N/A Make a summary stc file with mean power between tmin and tmax.

        Returns
        -------
        stc : instance of SourceEstimate
            The modified stc (method operates inplace).
         N/A data N/A self data N/A tmax N/A N/A self tmin N/A N/A self tstep N/A N/A data shape N/A 1 N/A tmin N/A N/A N/A self tmin tmax 2.0 N/A tstep N/A tmax N/A self tmin N/A mean_stc N/A SourceEstimate N/A N/A N/A N/A self data mean axis 1 N/A N/A N/A N/A np newaxis vertices N/A self vertices tmin tmin tstep tstep subject N/A self subject N/A mean_stc N/A __sub__ N/A N/A self a N/A N/A N/A stc N/A N/A copy deepcopy self N/A stc a N/A stc N/A __isub__ N/A N/A self a N/A N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A isinstance a _BaseSourceEstimate N/A N/A N/A _verify_source_estimate_compat self a N/A N/A self _data N/A a data N/A N/A N/A self _data a N/A self N/A __truediv__ N/A N/A self a N/A N/A N/A N/A N/A self __div__ a N/A __div__ N/A N/A self a N/A N/A N/A stc N/A N/A copy deepcopy self N/A stc a N/A stc N/A __itruediv__ N/A N/A self a N/A N/A N/A N/A N/A self __idiv__ a N/A __idiv__ N/A N/A self a N/A N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A isinstance a _BaseSourceEstimate N/A N/A N/A _verify_source_estimate_compat self a N/A N/A self _data N/A a data N/A N/A N/A self _data a N/A self N/A __mul__ N/A N/A self a N/A N/A N/A stc N/A N/A copy deepcopy self N/A stc a N/A stc N/A __imul__ N/A N/A self a N/A N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A isinstance a _BaseSourceEstimate N/A N/A N/A _verify_source_estimate_compat self a N/A N/A self _data N/A a data N/A N/A N/A self _data a N/A self N/A __pow__ N/A N/A self a N/A N/A N/A stc N/A N/A copy deepcopy self N/A stc a N/A stc N/A __ipow__ N/A N/A self a N/A N/A N/A N/A N/A self _remove_kernel_sens_data_ N/A N/A self _data a N/A self N/A __radd__ N/A N/A self a N/A N/A N/A N/A self a N/A __rsub__ N/A N/A self a N/A N/A N/A N/A self a N/A __rmul__ N/A N/A self a N/A N/A N/A N/A self a N/A __rdiv__ N/A N/A self a N/A N/A N/A N/A self a N/A __neg__ N/A N/A self N/A N/A N/A stc N/A N/A copy deepcopy self N/A N/A N/A stc _remove_kernel_sens_data_ N/A N/A stc _data -1 N/A stc N/A __pos__ N/A N/A self N/A N/A N/A self N/A sqrt N/A N/A self N/A N/A N/A Take the square root

        Returns
        -------
        stc : instance of SourceEstimate
            A copy of the SourceEstimate with sqrt(data).
         N/A N/A self 0.5 N/A copy N/A N/A self N/A N/A N/A Return copy of SourceEstimate instance N/A N/A N/A copy deepcopy self N/A bin N/A N/A self width tstart tstop func N/A None None N/A np mean N/A N/A Returns a SourceEstimate object with data summarized over time bins

        Time bins of ``width`` seconds. This method is intended for
        visualization only. No filter is applied to the data before binning,
        making the method inappropriate as a tool for downsampling data.

        Parameters
        ----------
        width : scalar
            Width of the individual bins in seconds.
        tstart : scalar | None
            Time point where the first bin starts. The default is the first
            time point of the stc.
        tstop : scalar | None
            Last possible time point contained in a bin (if the last bin would
            be shorter than width it is dropped). The default is the last time
            point of the stc.
        func : callable
            Function that is applied to summarize the data. Needs to accept a
            numpy.array as first input and an ``axis`` keyword argument.

        Returns
        -------
        stc : instance of SourceEstimate
            The binned SourceEstimate.
         N/A N/A tstart None N/A N/A tstart N/A self tmin N/A N/A tstop None N/A N/A tstop N/A N/A self times N/A -1 N/A times N/A N/A np arange tstart N/A tstop N/A self tstep width N/A N/A nv _ N/A self shape N/A nt N/A N/A len times 1 N/A data N/A N/A np empty N/A nv nt dtype N/A N/A self data dtype N/A i N/A range nt N/A N/A idx N/A N/A N/A self times N/A times N/A i N/A N/A self times N/A times N/A N/A i 1 N/A N/A data N/A N/A N/A i N/A func N/A N/A self data N/A N/A N/A idx axis 1 N/A tmin N/A N/A times N/A 0 N/A width 2.0 N/A stc N/A _make_stc data vertices N/A self vertices tmin tmin tstep width subject N/A self subject N/A stc N/A transform_data N/A N/A self func idx tmin_idx tmax_idx N/A None None None N/A N/A Get data after a linear (time) transform has been applied

        The transorm is applied to each source time course independently.


        Parameters
        ----------
        func : callable
            The transform to be applied, including parameters (see, e.g.,
            `mne.fixes.partial`). The first parameter of the function is the
            input data. The first return value is the transformed data,
            remaining outputs are ignored. The first dimension of the
            transformed data has to be the same as the first dimension of the
            input data.
        idx : array | None
            Indicices of source time courses for which to compute transform.
            If None, all time courses are used.
        tmin_idx : int | None
            Index of first time point to include. If None, the index of the
            first time point is used.
        tmax_idx : int | None
            Index of the first time point not to include. If None, time points
            up to (and including) the last time point are included.

        Returns
        -------
        data_t : ndarray
            The transformed data.

        Notes
        -----
        Applying transforms can be significantly faster if the
        SourceEstimate object was created using "(kernel, sens_data)", for
        the "data" parameter as the transform is applied in sensor space.
        Inverse methods, e.g., "apply_inverse_epochs", or "lcmv_epochs" do
        this automatically (if possible).
         N/A N/A idx None N/A N/A idx N/A slice None None N/A N/A N/A N/A self _kernel None N/A N/A self _sens_data None N/A N/A N/A self _kernel_removed N/A N/A N/A warn_ Performance can be improved by not accessing the data attribute before calling this method. N/A data_t N/A func N/A N/A self data N/A N/A idx N/A tmin_idx tmax_idx N/A N/A isinstance data_t tuple N/A N/A data_t N/A data_t N/A 0 N/A N/A sens_data_t N/A func N/A N/A self _sens_data N/A N/A N/A tmin_idx tmax_idx N/A N/A isinstance sens_data_t tuple N/A N/A sens_data_t N/A sens_data_t N/A 0 N/A data_shape N/A sens_data_t shape N/A N/A N/A len data_shape 2 N/A N/A sens_data_t N/A N/A sens_data_t reshape N/A data_shape N/A 0 N/A N/A np prod N/A data_shape N/A 1 N/A data_t N/A N/A np dot N/A N/A self _kernel N/A N/A idx N/A sens_data_t N/A N/A N/A len data_shape 2 N/A N/A data_t N/A N/A data_t reshape N/A N/A data_t shape N/A 0 N/A data_shape N/A 1 N/A data_t N/A transform N/A N/A self func idx tmin tmax copy N/A None None None False N/A N/A Apply linear transform

        The transform is applied to each source time course independently.

        Parameters
        ----------
        func : callable
            The transform to be applied, including parameters (see, e.g.,
            mne.fixes.partial). The first parameter of the function is the
            input data. The first two dimensions of the transformed data
            should be (i) vertices and (ii) time.  Transforms which yield 3D
            output (e.g. time-frequency transforms) are valid, so long as the
            first two dimensions are vertices and time.  In this case, the
            copy parameter (see below) must be True and a list of
            SourceEstimates, rather than a single instance of SourceEstimate,
            will be returned, one for each index of the 3rd dimension of the
            transformed data.  In the case of transforms yielding 2D output
            (e.g. filtering), the user has the option of modifying the input
            inplace (copy = False) or returning a new instance of
            SourceEstimate (copy = True) with the transformed data.
        idx : array | None
            Indices of source time courses for which to compute transform.
            If None, all time courses are used.
        tmin : float | int | None
            First time point to include (ms). If None, self.tmin is used.
        tmax : float | int | None
            Last time point to include (ms). If None, self.tmax is used.
        copy : bool
            If True, return a new instance of SourceEstimate instead of
            modifying the input inplace.

        Returns
        -------
        stcs : instance of SourceEstimate | list
            The transformed stc or, in the case of transforms which yield
            N-dimensional output (where N > 2), a list of stcs. For a list,
            copy must be True.

        Notes
        -----
        Applying transforms can be significantly faster if the
        SourceEstimate object was created using "(kernel, sens_data)", for
        the "data" parameter as the transform is applied in sensor space.
        Inverse methods, e.g., "apply_inverse_epochs", or "lcmv_epochs" do
        this automatically (if possible).
         N/A times N/A 1000.0 N/A self times N/A t_idx N/A N/A N/A np where N/A _time_mask times tmin tmax sfreq N/A self sfreq N/A 0 N/A N/A tmin None N/A N/A tmin_idx None N/A N/A tmin_idx N/A t_idx N/A 0 N/A N/A tmax None N/A N/A tmax_idx None N/A N/A tmax_idx N/A t_idx N/A -1 N/A data_t N/A N/A self transform_data func idx idx tmin_idx tmin_idx tmax_idx tmax_idx N/A N/A idx None N/A N/A idx_lh N/A idx N/A N/A idx N/A len N/A self lh_vertno N/A idx_rh N/A N/A idx N/A N/A idx N/A len N/A self lh_vertno N/A len N/A self lh_vertno N/A verts_lh N/A N/A self lh_vertno N/A idx_lh N/A verts_rh N/A N/A self rh_vertno N/A idx_rh N/A N/A verts_lh N/A self lh_vertno N/A verts_rh N/A self rh_vertno N/A verts N/A verts_lh verts_rh N/A tmin_idx N/A N/A tmin_idx None 0 tmin_idx N/A tmax_idx N/A N/A tmax_idx None -1 tmax_idx N/A tmin N/A N/A self times N/A tmin_idx N/A times N/A N/A np arange N/A N/A self times N/A tmin_idx N/A N/A N/A self times N/A tmax_idx N/A N/A self tstep 2 N/A self tstep N/A N/A N/A data_t ndim 2 N/A N/A copy N/A N/A stcs N/A N/A SourceEstimate N/A data_t N/A N/A N/A N/A a verts tmin N/A self tstep N/A self subject N/A a N/A range N/A N/A data_t shape N/A -1 N/A N/A N/A ValueError copy must be True if transformed data has more than 2 dimensions N/A N/A stcs N/A N/A copy self N/A N/A self copy N/A N/A N/A stcs _data N/A stcs vertices N/A data_t verts N/A N/A N/A stcs tmin N/A stcs times N/A tmin times N/A stcs N/A N/A SourceEstimate N/A _BaseSourceEstimate N/A N/A Container for surface source estimates

    Parameters
    ----------
    data : array of shape (n_dipoles, n_times) | 2-tuple (kernel, sens_data)
        The data in source space. The data can either be a single array or
        a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and
        "sens_data" shape (n_sensors, n_times). In this case, the source
        space data corresponds to "numpy.dot(kernel, sens_data)".
    vertices : list of two arrays
        Vertex numbers corresponding to the data.
    tmin : scalar
        Time point of the first sample in data.
    tstep : scalar
        Time step between successive samples in data.
    subject : str | None
        The subject name. While not necessary, it is safer to set the
        subject parameter to avoid analysis errors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Attributes
    ----------
    subject : str | None
        The subject name.
    times : array of shape (n_times,)
        The time vector.
    vertices : list of two arrays of shape (n_dipoles,)
        The indices of the dipoles in the left and right source space.
    data : array of shape (n_dipoles, n_times)
        The data in source space.
    shape : tuple
        The shape of the data. A tuple of int (n_dipoles, n_times).
     __init__ N/A N/A self data vertices tmin tstep subject verbose N/A None None None None None N/A N/A N/A N/A N/A isinstance vertices list N/A N/A len vertices 2 N/A N/A N/A ValueError Vertices, if a list, must contain two numpy arrays N/A N/A N/A _BaseSourceEstimate __init__ self data vertices vertices tmin tmin tstep tstep subject subject verbose verbose N/A verbose save N/A N/A self fname ftype verbose N/A stc None N/A N/A Save the source estimates to a file

        Parameters
        ----------
        fname : string
            The stem of the file name. The file names used for surface source
            spaces are obtained by adding "-lh.stc" and "-rh.stc" (or "-lh.w"
            and "-rh.w") to the stem provided, for the left and the right
            hemisphere, respectively.
        ftype : string
            File format to use. Allowed values are "stc" (default), "w",
            and "h5". The "w" format only supports a single time point.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.
         N/A N/A ftype N/A stc w h5 N/A N/A N/A ValueError N/A ftype must be "stc", "w", or "h5", not "%s" ftype N/A lh_data N/A N/A self data N/A N/A len N/A self lh_vertno N/A rh_data N/A N/A self data N/A N/A N/A len N/A self rh_vertno N/A N/A ftype stc N/A N/A N/A N/A logger info Writing STC to disk... N/A N/A _write_stc N/A fname -lh.stc tmin N/A self tmin tstep N/A self tstep vertices N/A self lh_vertno data lh_data N/A N/A _write_stc N/A fname -rh.stc tmin N/A self tmin tstep N/A self tstep vertices N/A self rh_vertno data rh_data N/A N/A N/A ftype w N/A N/A N/A N/A N/A self shape N/A 1 1 N/A N/A N/A ValueError w files can only contain a single time point N/A N/A N/A logger info Writing STC to disk (w format)... N/A N/A _write_w N/A fname -lh.w vertices N/A self lh_vertno data N/A lh_data N/A N/A N/A 0 N/A N/A _write_w N/A fname -rh.w vertices N/A self rh_vertno data N/A rh_data N/A N/A N/A 0 N/A N/A N/A ftype h5 N/A N/A N/A write_hdf5 N/A fname -stc.h5 N/A dict vertices N/A self vertices data N/A self data tmin N/A self tmin tstep N/A self tstep subject N/A self subject title mnepython N/A N/A N/A logger info [done] N/A verbose __repr__ N/A N/A self N/A N/A N/A N/A isinstance N/A self vertices list N/A N/A nv N/A sum N/A N/A len v N/A v N/A self vertices N/A N/A nv N/A N/A self vertices size N/A s N/A %d vertices nv N/A N/A N/A self subject None N/A N/A s N/A , subject : %s N/A self subject N/A s N/A , tmin : %s (ms) N/A 1000.0 N/A self tmin N/A s N/A , tmax : %s (ms) N/A 1000.0 N/A N/A self times N/A -1 N/A s N/A , tstep : %s (ms) N/A 1000.0 N/A self tstep N/A s N/A , data size : %s x %s N/A self shape N/A N/A <SourceEstimate  |  %s> s N/A lh_data N/A N/A self N/A N/A N/A N/A N/A self data N/A N/A len N/A self lh_vertno N/A property rh_data N/A N/A self N/A N/A N/A N/A N/A self data N/A N/A len N/A self lh_vertno N/A property lh_vertno N/A N/A self N/A N/A N/A N/A N/A self vertices N/A 0 N/A property rh_vertno N/A N/A self N/A N/A N/A N/A N/A self vertices N/A 1 N/A property _hemilabel_stc N/A N/A self label N/A N/A N/A N/A N/A label hemi lh N/A N/A stc_vertices N/A N/A self vertices N/A 0 N/A N/A stc_vertices N/A N/A self vertices N/A 1 N/A idx N/A N/A N/A np nonzero N/A in1d stc_vertices N/A label vertices N/A 0 N/A vertices N/A stc_vertices N/A idx N/A N/A N/A label hemi rh N/A N/A values N/A N/A self data N/A N/A idx N/A len N/A N/A self vertices N/A 0 N/A N/A values N/A N/A self data N/A idx N/A N/A vertices values N/A in_label N/A N/A self label N/A N/A N/A Returns a SourceEstimate object restricted to a label

        SourceEstimate contains the time course of
        activation of all sources inside the label.

        Parameters
        ----------
        label : Label | BiHemiLabel
            The label (as created for example by mne.read_label). If the label
            does not match any sources in the SourceEstimate, a ValueError is
            raised.
         N/A N/A N/A N/A label subject None N/A N/A self subject None N/A N/A label subject N/A self subject N/A N/A N/A RuntimeError N/A label and stc must have same subject names, currently "%s" and "%s" N/A N/A label subject N/A self subject N/A N/A N/A label hemi both N/A N/A N/A lh_vert lh_val N/A N/A self _hemilabel_stc N/A label lh N/A N/A rh_vert rh_val N/A N/A self _hemilabel_stc N/A label rh N/A vertices N/A lh_vert rh_vert N/A values N/A N/A np vstack N/A lh_val rh_val N/A N/A N/A N/A label hemi lh N/A N/A N/A lh_vert values N/A N/A self _hemilabel_stc label N/A vertices N/A lh_vert N/A N/A np array N/A int N/A N/A N/A N/A label hemi rh N/A N/A N/A rh_vert values N/A N/A self _hemilabel_stc label N/A vertices N/A N/A N/A np array N/A int rh_vert N/A N/A N/A TypeError N/A Expected  Label or BiHemiLabel; got %r label N/A N/A N/A sum N/A N/A len v N/A v vertices 0 N/A N/A N/A ValueError No vertices match the label in the stc file N/A label_stc N/A SourceEstimate values vertices vertices tmin N/A self tmin tstep N/A self tstep subject N/A self subject N/A label_stc N/A expand N/A N/A self vertices N/A N/A N/A Expand SourceEstimate to include more vertices

        This will add rows to stc.data (zero-filled) and modify stc.vertices
        to include all vertices in stc.vertices and the input vertices.

        Parameters
        ----------
        vertices : list of array
            New vertices to add. Can also contain old values.

        Returns
        -------
        stc : instance of SourceEstimate
            The modified stc (note: method operates inplace).
         N/A N/A N/A isinstance vertices list N/A N/A N/A TypeError vertices must be a list N/A N/A N/A N/A len N/A self vertices N/A len vertices N/A N/A N/A ValueError vertices must have the same length as stc.vertices N/A N/A N/A self _remove_kernel_sens_data_ N/A inserters N/A list N/A offsets N/A 0 N/A N/A vi N/A v_old v_new N/A enumerate N/A zip N/A self vertices vertices N/A N/A v_new N/A N/A np setdiff1d v_new v_old N/A inds N/A N/A np searchsorted v_old v_new N/A inserters N/A N/A N/A inds copy N/A offsets N/A N/A len v_old N/A N/A N/A self vertices N/A vi N/A N/A np insert v_old inds v_new N/A inds N/A N/A ii offset N/A N/A ii offset N/A zip inserters N/A offsets N/A -1 N/A inds N/A N/A np concatenate inds N/A new_data N/A N/A np zeros N/A N/A len inds N/A N/A N/A self _data shape N/A 1 N/A N/A self _data N/A N/A np insert N/A self _data inds new_data axis 0 N/A self N/A extract_label_time_course N/A N/A self labels src mode allow_empty verbose N/A mean_flip False None N/A N/A Extract label time courses for lists of labels

        This function will extract one time course for each label. The way the
        time courses are extracted depends on the mode parameter.

        Valid values for mode are:

            - 'mean': Average within each label.
            - 'mean_flip': Average within each label with sign flip depending
              on source orientation.
            - 'pca_flip': Apply an SVD to the time courses within each label
              and use the scaled and sign-flipped first right-singular vector
              as the label time course. The scaling is performed such that the
              power of the label time course is the same as the average
              per-vertex time course power within the label. The sign of the
              resulting time course is adjusted by multiplying it with
              "sign(dot(u, flip))" where u is the first left-singular vector,
              and flip is a sing-flip vector based on the vertex normals. This
              procedure assures that the phase does not randomly change by 180
              degrees from one stc to the next.
            - 'max': Max value within each label.


        Parameters
        ----------
        labels : Label | list of Label
            The labels for which to extract the time courses.
        src : list
            Source spaces for left and right hemisphere.
        mode : str
            Extraction mode, see explanation above.
        allow_empty : bool
            Instead of emitting an error, return all-zero time course for
            labels that do not have any vertices in the source estimate.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).

        Returns
        -------
        label_tc : array, shape=(len(labels), n_times)
            Extracted time course for each label.

        See Also
        --------
        extract_label_time_course : extract time courses for multiple STCs
         N/A label_tc N/A extract_label_time_course self labels src mode mode return_generator False allow_empty allow_empty verbose verbose N/A label_tc N/A verbose center_of_mass N/A N/A self subject hemi restrict_vertices subjects_dir N/A None None False None N/A N/A Return the vertex on a given surface that is at the center of mass
        of  the activity in stc. Note that all activity must occur in a single
        hemisphere, otherwise an error is returned. The "mass" of each point in
        space for computing the spatial center of mass is computed by summing
        across time, and vice-versa for each point in time in computing the
        temporal center of mass. This is useful for quantifying spatio-temporal
        cluster locations, especially when combined with the function
        mne.source_space.vertex_to_mni().

        Parameters
        ----------
        subject : string | None
            The subject the stc is defined for.
        hemi : int, or None
            Calculate the center of mass for the left (0) or right (1)
            hemisphere. If None, one of the hemispheres must be all zeroes,
            and the center of mass will be calculated for the other
            hemisphere (useful for getting COM for clusters).
        restrict_vertices : bool, or array of int
            If True, returned vertex will be one from stc. Otherwise, it could
            be any vertex from surf. If an array of int, the returned vertex
            will come from that array. For most accuruate estimates, do not
            restrict vertices.
        subjects_dir : str, or None
            Path to the SUBJECTS_DIR. If None, the path is obtained by using
            the environment variable SUBJECTS_DIR.

        Returns
        -------
        vertex : int
            Vertex of the spatial center of mass for the inferred hemisphere,
            with each vertex weighted by the sum of the stc across time. For a
            boolean stc, then, this would be weighted purely by the duration
            each vertex was active.
        hemi : int
            Hemisphere the vertex was taken from.
        t : float
            Time of the temporal center of mass (weighted by the sum across
            source vertices).

        References:
            Used in Larson and Lee, "The cortical dynamics underlying effective
            switching of auditory spatial attention", NeuroImage 2012.
         N/A subject N/A _check_subject N/A self subject subject N/A values N/A N/A np sum N/A self data axis 1 N/A vert_inds N/A N/A N/A np arange N/A len N/A N/A self vertices N/A 0 N/A N/A N/A np arange N/A len N/A N/A self vertices N/A 1 N/A len N/A N/A self vertices N/A 0 N/A N/A hemi None N/A N/A hemi N/A N/A N/A np where N/A N/A np array N/A N/A N/A np sum N/A values N/A vi N/A vi vert_inds N/A 0 N/A N/A N/A N/A len hemi 1 N/A N/A N/A ValueError Could not infer hemisphere N/A hemi N/A hemi N/A 0 N/A N/A hemi N/A 0 1 N/A N/A N/A ValueError hemi must be 0 or 1 N/A subjects_dir N/A get_subjects_dir subjects_dir raise_error True N/A values N/A values N/A N/A vert_inds N/A hemi N/A hemis N/A lh rh N/A surf N/A N/A N/A os path join subjects_dir subject surf N/A N/A hemis N/A hemi .sphere N/A N/A isinstance surf string_types N/A N/A surf N/A read_surface surf N/A N/A restrict_vertices False N/A N/A restrict_vertices N/A N/A np arange N/A N/A N/A surf N/A 0 shape N/A 0 N/A N/A N/A restrict_vertices True N/A N/A restrict_vertices N/A N/A self vertices N/A hemi N/A N/A N/A np any N/A N/A self data 0 N/A N/A N/A ValueError Cannot compute COM with negative values N/A pos N/A N/A N/A surf N/A 0 N/A N/A N/A N/A self vertices N/A hemi N/A T N/A c_o_m N/A N/A N/A np sum N/A pos values axis 1 N/A N/A np sum values N/A vertex N/A N/A np argmin N/A N/A np sqrt N/A N/A np mean N/A N/A N/A N/A surf N/A 0 N/A N/A restrict_vertices N/A c_o_m 2 axis 1 N/A vertex N/A restrict_vertices N/A vertex N/A masses N/A N/A N/A N/A np sum N/A self data axis 0 astype float N/A t_ind N/A N/A N/A np sum N/A masses N/A N/A np arange N/A N/A self shape N/A 1 N/A N/A np sum masses N/A t N/A N/A self tmin N/A N/A self tstep t_ind N/A N/A vertex hemi t N/A plot N/A N/A self subject surface hemi colormap time_label smoothing_steps transparent alpha time_viewer config_opts subjects_dir figure views colorbar clim N/A None inflated lh auto time=%0.2f ms 10 None 1.0 False None None None lat True auto N/A N/A Plot SourceEstimates with PySurfer

        Note: PySurfer currently needs the SUBJECTS_DIR environment variable,
        which will automatically be set by this function. Plotting multiple
        SourceEstimates with different values for subjects_dir will cause
        PySurfer to use the wrong FreeSurfer surfaces when using methods of
        the returned Brain object. It is therefore recommended to set the
        SUBJECTS_DIR environment variable or always use the same value for
        subjects_dir (within the same Python session).

        Parameters
        ----------
        subject : str | None
            The subject name corresponding to FreeSurfer environment
            variable SUBJECT. If None stc.subject will be used. If that
            is None, the environment will be used.
        surface : str
            The type of surface (inflated, white etc.).
        hemi : str, 'lh' | 'rh' | 'split' | 'both'
            The hemisphere to display.
        colormap : str | np.ndarray of float, shape(n_colors, 3 | 4)
            Name of colormap to use or a custom look up table. If array, must
            be (n x 3) or (n x 4) array for with RGB or RGBA values between
            0 and 255. If 'auto', either 'hot' or 'mne' will be chosen
            based on whether 'lims' or 'pos_lims' are specified in `clim`.
        time_label : str
            How to print info about the time instant visualized.
        smoothing_steps : int
            The amount of smoothing.
        transparent : bool | None
            If True, use a linear transparency between fmin and fmid.
            None will choose automatically based on colormap type.
        alpha : float
            Alpha value to apply globally to the overlay.
        time_viewer : bool
            Display time viewer GUI.
        config_opts : dict
            Keyword arguments for Brain initialization.
            See pysurfer.viz.Brain.
        subjects_dir : str
            The path to the FreeSurfer subjects reconstructions.
            It corresponds to FreeSurfer environment variable SUBJECTS_DIR.
        figure : instance of mayavi.core.scene.Scene | None
            If None, the last figure will be cleaned and a new figure will
            be created.
        views : str | list
            View to use. See surfer.Brain().
        colorbar : bool
            If True, display colorbar on scene.
        clim : str | dict
            Colorbar properties specification. If 'auto', set clim
            automatically based on data percentiles. If dict, should contain:

                kind : str
                    Flag to specify type of limits. 'value' or 'percent'.
                lims : list | np.ndarray | tuple of float, 3 elements
                    Note: Only use this if 'colormap' is not 'mne'.
                    Left, middle, and right bound for colormap.
                pos_lims : list | np.ndarray | tuple of float, 3 elements
                    Note: Only use this if 'colormap' is 'mne'.
                    Left, middle, and right bound for colormap. Positive values
                    will be mirrored directly across zero during colormap
                    construction to obtain negative control points.


        Returns
        -------
        brain : Brain
            A instance of surfer.viz.Brain from PySurfer.
         N/A brain N/A plot_source_estimates self subject surface surface hemi hemi colormap colormap time_label time_label smoothing_steps smoothing_steps transparent transparent alpha alpha time_viewer time_viewer config_opts config_opts subjects_dir subjects_dir figure figure views views colorbar colorbar clim clim N/A brain N/A to_original_src N/A N/A self src_orig subject_orig subjects_dir verbose N/A None None None N/A N/A Return a SourceEstimate from morphed source to the original subject

        Parameters
        ----------
        src_orig : instance of SourceSpaces
            The original source spaces that were morphed to the current
            subject.
        subject_orig : str | None
            The original subject. For most source spaces this shouldn't need
            to be provided, since it is stored in the source space itself.
        subjects_dir : string, or None
            Path to SUBJECTS_DIR if it is not set in the environment.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).

        See Also
        --------
        morph_source_spaces

        Notes
        -----
        .. versionadded:: 0.10.0
         N/A N/A N/A self subject None N/A N/A N/A ValueError stc.subject must be set N/A src_orig N/A _ensure_src src_orig kind surf N/A subject_orig N/A _ensure_src_subject src_orig subject_orig N/A N/A data_idx vertices N/A _get_morph_src_reordering N/A self vertices src_orig subject_orig N/A self subject subjects_dir N/A N/A SourceEstimate N/A N/A self _data N/A data_idx vertices N/A self tmin N/A self tstep subject_orig N/A verbose morph N/A N/A self subject_to grade smooth subjects_dir buffer_size n_jobs subject_from sparse verbose N/A 5 None None 64 1 None False None N/A N/A Morph a source estimate from one subject to another

        Parameters
        ----------
        subject_to : string
            Name of the subject on which to morph as named in the SUBJECTS_DIR
        grade : int, list (of two arrays), or None
            Resolution of the icosahedral mesh (typically 5). If None, all
            vertices will be used (potentially filling the surface). If a list,
            then values will be morphed to the set of vertices specified in
            in grade[0] and grade[1]. Note that specifying the vertices (e.g.,
            grade=[np.arange(10242), np.arange(10242)] for fsaverage on a
            standard grade 5 source space) can be substantially faster than
            computing vertex locations. Note that if subject='fsaverage'
            and 'grade=5', this set of vertices will automatically be used
            (instead of computed) for speed, since this is a common morph.
            NOTE : If sparse=True, grade has to be set to None.
        smooth : int or None
            Number of iterations for the smoothing of the surface data.
            If None, smooth is automatically defined to fill the surface
            with non-zero values.
        subjects_dir : string, or None
            Path to SUBJECTS_DIR if it is not set in the environment.
        buffer_size : int
            Morph data in chunks of `buffer_size` time instants.
            Saves memory when morphing long time intervals.
        n_jobs : int
            Number of jobs to run in parallel.
        subject_from : string
            Name of the original subject as named in the SUBJECTS_DIR.
            If None, self.subject will be used.
        sparse : bool
            Morph as a sparse source estimate. If True the only
            parameters used are subject_to and subject_from,
            and grade has to be None.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).

        Returns
        -------
        stc_to : SourceEstimate
            Source estimate for the destination subject.
         N/A subject_from N/A _check_subject N/A self subject subject_from N/A sparse N/A N/A N/A grade None N/A N/A N/A RuntimeError grade must be set to None if sparse=True. N/A N/A _morph_sparse self subject_from subject_to subjects_dir N/A N/A N/A morph_data subject_from subject_to self grade smooth subjects_dir buffer_size n_jobs verbose N/A verbose morph_precomputed N/A N/A self subject_to vertices_to morph_mat subject_from N/A None N/A N/A Morph source estimate between subjects using a precomputed matrix

        Parameters
        ----------
        subject_to : string
            Name of the subject on which to morph as named in the SUBJECTS_DIR.
        vertices_to : list of array of int
            The vertices on the destination subject's brain.
        morph_mat : sparse matrix
            The morphing matrix, usually from compute_morph_matrix.
        subject_from : string | None
            Name of the original subject as named in the SUBJECTS_DIR.
            If None, self.subject will be used.

        Returns
        -------
        stc_to : SourceEstimate
            Source estimate for the destination subject.
         N/A subject_from N/A _check_subject N/A self subject subject_from N/A N/A morph_data_precomputed subject_from subject_to self vertices_to morph_mat N/A get_peak N/A N/A self hemi tmin tmax mode vert_as_index time_as_index N/A None None None abs False False N/A N/A Get location and latency of peak amplitude

        Parameters
        ----------
        hemi : {'lh', 'rh', None}
            The hemi to be considered. If None, the entire source space is
            considered.
        tmin : float | None
            The minimum point in time to be considered for peak getting.
        tmax : float | None
            The maximum point in time to be considered for peak getting.
        mode : {'pos', 'neg', 'abs'}
            How to deal with the sign of the data. If 'pos' only positive
            values will be considered. If 'neg' only negative values will
            be considered. If 'abs' absolute values will be considered.
            Defaults to 'abs'.
        vert_as_index : bool
            whether to return the vertex index instead of of its ID.
            Defaults to False.
        time_as_index : bool
            Whether to return the time index instead of the latency.
            Defaults to False.

        Returns
        -------
        pos : int
            The vertex exhibiting the maximum response, either ID or index.
        latency : float | int
            The time point of the maximum response, either latency in seconds
            or index.
         N/A data N/A N/A lh rh None N/A self lh_data N/A self rh_data N/A self data N/A hemi N/A vertno N/A N/A lh rh None N/A self lh_vertno N/A self rh_vertno N/A N/A np concatenate N/A self vertices N/A hemi N/A N/A vert_idx time_idx N/A _get_peak data N/A self times tmin tmax mode N/A N/A N/A vert_as_index vert_idx N/A vertno N/A vert_idx N/A time_as_index time_idx N/A N/A self times N/A time_idx N/A N/A VolSourceEstimate N/A _BaseSourceEstimate N/A N/A Container for volume source estimates

    Parameters
    ----------
    data : array of shape (n_dipoles, n_times) | 2-tuple (kernel, sens_data)
        The data in source space. The data can either be a single array or
        a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and
        "sens_data" shape (n_sensors, n_times). In this case, the source
        space data corresponds to "numpy.dot(kernel, sens_data)".
    vertices : array
        Vertex numbers corresponding to the data.
    tmin : scalar
        Time point of the first sample in data.
    tstep : scalar
        Time step between successive samples in data.
    subject : str | None
        The subject name. While not necessary, it is safer to set the
        subject parameter to avoid analysis errors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Attributes
    ----------
    subject : str | None
        The subject name.
    times : array of shape (n_times,)
        The time vector.
    vertices : array of shape (n_dipoles,)
        The indices of the dipoles in the source space.
    data : array of shape (n_dipoles, n_times)
        The data in source space.
    shape : tuple
        The shape of the data. A tuple of int (n_dipoles, n_times).

    Notes
    -----
    .. versionadded:: 0.9.0
     __init__ N/A N/A self data vertices tmin tstep subject verbose N/A None None None None None N/A N/A N/A N/A N/A isinstance vertices N/A np ndarray N/A N/A isinstance vertices list N/A N/A len vertices 1 N/A N/A N/A ValueError Vertices must be a numpy array or a list with one array N/A N/A N/A _BaseSourceEstimate __init__ self data vertices vertices tmin tmin tstep tstep subject subject verbose verbose N/A verbose save N/A N/A self fname ftype verbose N/A stc None N/A N/A Save the source estimates to a file

        Parameters
        ----------
        fname : string
            The stem of the file name. The stem is extended with "-vl.stc"
            or "-vl.w".
        ftype : string
            File format to use. Allowed values are "stc" (default) and "w".
            The "w" format only supports a single time point.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.
         N/A N/A ftype N/A stc w N/A N/A N/A ValueError N/A ftype must be "stc" or "w", not "%s" ftype N/A N/A ftype stc N/A N/A N/A N/A logger info Writing STC to disk... N/A N/A N/A N/A N/A fname endswith -vl.stc N/A N/A fname endswith -vol.stc N/A N/A fname -vl.stc N/A N/A _write_stc fname tmin N/A self tmin tstep N/A self tstep vertices N/A self vertices data N/A self data N/A N/A N/A ftype w N/A N/A N/A N/A logger info Writing STC to disk (w format)... N/A N/A N/A N/A N/A fname endswith -vl.w N/A N/A fname endswith -vol.w N/A N/A fname -vl.w N/A N/A _write_w fname vertices N/A self vertices data N/A self data N/A N/A N/A logger info [done] N/A verbose save_as_volume N/A N/A self fname src dest mri_resolution N/A mri False N/A N/A Save a volume source estimate in a nifti file

        Parameters
        ----------
        fname : string
            The name of the generated nifti file.
        src : list
            The list of source spaces (should actually be of length 1)
        dest : 'mri' | 'surf'
            If 'mri' the volume is defined in the coordinate system of
            the original T1 image. If 'surf' the coordinate system
            of the FreeSurfer surface is used (Surface RAS).
        mri_resolution: bool
            It True the image is saved in MRI resolution.
            WARNING: if you have many time points the file produced can be
            huge.

        Returns
        -------
        img : instance Nifti1Image
            The image object.

        Notes
        -----
        .. versionadded:: 0.9.0
         N/A N/A save_stc_as_volume fname self src dest dest mri_resolution mri_resolution N/A as_volume N/A N/A self src dest mri_resolution N/A mri False N/A N/A Export volume source estimate as a nifti object

        Parameters
        ----------
        src : list
            The list of source spaces (should actually be of length 1)
        dest : 'mri' | 'surf'
            If 'mri' the volume is defined in the coordinate system of
            the original T1 image. If 'surf' the coordinate system
            of the FreeSurfer surface is used (Surface RAS).
        mri_resolution: bool
            It True the image is saved in MRI resolution.
            WARNING: if you have many time points the file produced can be
            huge.

        Returns
        -------
        img : instance Nifti1Image
            The image object.

        Notes
        -----
        .. versionadded:: 0.9.0
         N/A N/A save_stc_as_volume None self src dest dest mri_resolution mri_resolution N/A __repr__ N/A N/A self N/A N/A N/A N/A isinstance N/A self vertices list N/A N/A nv N/A sum N/A N/A len v N/A v N/A self vertices N/A N/A nv N/A N/A self vertices size N/A s N/A %d vertices nv N/A N/A N/A self subject None N/A N/A s N/A , subject : %s N/A self subject N/A s N/A , tmin : %s (ms) N/A 1000.0 N/A self tmin N/A s N/A , tmax : %s (ms) N/A 1000.0 N/A N/A self times N/A -1 N/A s N/A , tstep : %s (ms) N/A 1000.0 N/A self tstep N/A s N/A , data size : %s x %s N/A self shape N/A N/A <VolSourceEstimate  |  %s> s N/A get_peak N/A N/A self tmin tmax mode vert_as_index time_as_index N/A None None abs False False N/A N/A Get location and latency of peak amplitude

        Parameters
        ----------
        tmin : float | None
            The minimum point in time to be considered for peak getting.
        tmax : float | None
            The maximum point in time to be considered for peak getting.
        mode : {'pos', 'neg', 'abs'}
            How to deal with the sign of the data. If 'pos' only positive
            values will be considered. If 'neg' only negative values will
            be considered. If 'abs' absolute values will be considered.
            Defaults to 'abs'.
        vert_as_index : bool
            whether to return the vertex index instead of of its ID.
            Defaults to False.
        time_as_index : bool
            Whether to return the time index instead of the latency.
            Defaults to False.

        Returns
        -------
        pos : int
            The vertex exhibiting the maximum response, either ID or index.
        latency : float
            The latency in seconds.
         N/A N/A vert_idx time_idx N/A _get_peak N/A self data N/A self times tmin tmax mode N/A N/A N/A vert_as_index vert_idx N/A N/A self vertices N/A vert_idx N/A time_as_index time_idx N/A N/A self times N/A time_idx N/A N/A MixedSourceEstimate N/A _BaseSourceEstimate N/A N/A Container for mixed surface and volume source estimates

    Parameters
    ----------
    data : array of shape (n_dipoles, n_times) | 2-tuple (kernel, sens_data)
        The data in source space. The data can either be a single array or
        a tuple with two arrays: "kernel" shape (n_vertices, n_sensors) and
        "sens_data" shape (n_sensors, n_times). In this case, the source
        space data corresponds to "numpy.dot(kernel, sens_data)".
    vertices : list of arrays
        Vertex numbers corresponding to the data.
    tmin : scalar
        Time point of the first sample in data.
    tstep : scalar
        Time step between successive samples in data.
    subject : str | None
        The subject name. While not necessary, it is safer to set the
        subject parameter to avoid analysis errors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Attributes
    ----------
    subject : str | None
        The subject name.
    times : array of shape (n_times,)
        The time vector.
    vertices : list of arrays of shape (n_dipoles,)
        The indices of the dipoles in each source space.
    data : array of shape (n_dipoles, n_times)
        The data in source space.
    shape : tuple
        The shape of the data. A tuple of int (n_dipoles, n_times).

    Notes
    -----
    .. versionadded:: 0.9.0
     __init__ N/A N/A self data vertices tmin tstep subject verbose N/A None None None None None N/A N/A N/A N/A N/A isinstance vertices list N/A N/A len vertices 2 N/A N/A N/A ValueError Vertices must be a list of numpy arrays with one array per source space. N/A N/A N/A _BaseSourceEstimate __init__ self data vertices vertices tmin tmin tstep tstep subject subject verbose verbose N/A verbose plot_surface N/A N/A self src subject surface hemi colormap time_label smoothing_steps transparent alpha time_viewer config_opts subjects_dir figure views colorbar clim N/A None inflated lh auto time=%02.f ms 10 None 1.0 False N/A None None lat True auto N/A N/A Plot surface source estimates with PySurfer

        Note: PySurfer currently needs the SUBJECTS_DIR environment variable,
        which will automatically be set by this function. Plotting multiple
        SourceEstimates with different values for subjects_dir will cause
        PySurfer to use the wrong FreeSurfer surfaces when using methods of
        the returned Brain object. It is therefore recommended to set the
        SUBJECTS_DIR environment variable or always use the same value for
        subjects_dir (within the same Python session).

        Parameters
        ----------
        src : SourceSpaces
            The source spaces to plot.
        subject : str | None
            The subject name corresponding to FreeSurfer environment
            variable SUBJECT. If None stc.subject will be used. If that
            is None, the environment will be used.
        surface : str
            The type of surface (inflated, white etc.).
        hemi : str, 'lh' | 'rh' | 'split' | 'both'
            The hemisphere to display. Using 'both' or 'split' requires
            PySurfer version 0.4 or above.
        colormap : str | np.ndarray of float, shape(n_colors, 3 | 4)
            Name of colormap to use. See `plot_source_estimates`.
        time_label : str
            How to print info about the time instant visualized.
        smoothing_steps : int
            The amount of smoothing.
        transparent : bool | None
            If True, use a linear transparency between fmin and fmid.
            None will choose automatically based on colormap type.
        alpha : float
            Alpha value to apply globally to the overlay.
        time_viewer : bool
            Display time viewer GUI.
        config_opts : dict
            Keyword arguments for Brain initialization.
            See pysurfer.viz.Brain.
        subjects_dir : str
            The path to the FreeSurfer subjects reconstructions.
            It corresponds to FreeSurfer environment variable SUBJECTS_DIR.
        figure : instance of mayavi.core.scene.Scene | None
            If None, the last figure will be cleaned and a new figure will
            be created.
        views : str | list
            View to use. See surfer.Brain().
        colorbar : bool
            If True, display colorbar on scene.
        clim : str | dict
            Colorbar properties specification. See `plot_source_estimates`.

        Returns
        -------
        brain : Brain
            A instance of surfer.viz.Brain from PySurfer.
         N/A surf N/A _ensure_src src kind surf N/A data N/A N/A self data N/A N/A N/A N/A surf N/A 0 N/A nuse N/A N/A surf N/A 1 N/A nuse N/A vertices N/A N/A s N/A vertno N/A s surf N/A stc N/A SourceEstimate data vertices N/A self tmin N/A self tstep N/A self subject N/A self verbose N/A N/A plot_source_estimates stc subject surface surface hemi hemi colormap colormap time_label time_label smoothing_steps smoothing_steps transparent transparent alpha alpha time_viewer time_viewer config_opts config_opts subjects_dir subjects_dir figure figure views views colorbar colorbar clim clim N/A N/A _morph_buffer N/A N/A data idx_use e smooth n_vertices nearest maps warn verbose N/A True None N/A N/A Morph data from one subject's source space to another

    Parameters
    ----------
    data : array, or csr sparse matrix
        A n_vertices x n_times (or other dimension) dataset to morph.
    idx_use : array of int
        Vertices from the original subject's data.
    e : sparse matrix
        The mesh edges of the "from" subject.
    smooth : int
        Number of smoothing iterations to perform. A hard limit of 100 is
        also imposed.
    n_vertices : int
        Number of vertices.
    nearest : array of int
        Vertices on the destination surface to use.
    maps : sparse matrix
        Morph map from one subject to the other.
    warn : bool
        If True, warn if not all vertices were used.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    data_morphed : array, or csr sparse matrix
        The morphed data (same type as input).
     N/A n_iter 99 N/A N/A smooth None N/A N/A N/A smooth 0 N/A N/A N/A ValueError The number of smoothing operations ("smooth") has to be at least 1. N/A smooth 1 N/A e N/A N/A e tocsr N/A N/A N/A sparse issparse data N/A N/A use_sparse True N/A N/A N/A isinstance data N/A sparse csr_matrix N/A N/A data N/A N/A data tocsr N/A N/A use_sparse False N/A done False N/A k N/A range N/A n_iter 1 N/A N/A mult N/A N/A np zeros N/A N/A e shape N/A 1 N/A N/A mult N/A idx_use 1 N/A idx_use_data idx_use N/A data_sum N/A e mult N/A idx_use N/A N/A N/A np where data_sum N/A 0 N/A idx_out idx_use N/A N/A smooth None N/A N/A N/A N/A k n_iter N/A N/A len idx_use n_vertices N/A N/A idx_out None N/A done True N/A N/A N/A k smooth N/A N/A idx_out None N/A done True N/A data N/A _morph_mult data e use_sparse idx_use_data idx_out N/A N/A done True N/A N/A N/A use_sparse N/A N/A N/A data data N/A N/A N/A data_sum N/A idx_use repeat N/A N/A np diff N/A data indptr N/A N/A data N/A N/A data_sum N/A idx_use N/A N/A N/A None N/A use_sparse N/A N/A N/A data_sum N/A N/A data_sum 0 1 N/A N/A data data N/A N/A data_sum repeat N/A N/A np diff N/A data indptr N/A N/A N/A data N/A N/A idx_use N/A N/A N/A data_sum N/A idx_use N/A N/A N/A None N/A N/A N/A N/A len idx_use N/A len data_sum warn N/A N/A N/A warn_ N/A %s/%s vertices not included in smoothing, consider increasing the number of steps N/A N/A N/A len data_sum N/A len idx_use N/A len data_sum N/A N/A N/A logger info N/A     %d smooth iterations done. N/A k 1 N/A data_morphed N/A N/A maps N/A N/A nearest N/A data N/A data_morphed N/A verbose _morph_mult N/A N/A data e use_sparse idx_use_data idx_use_out N/A None N/A N/A Helper for morphing

    Equivalent to "data = (e[:, idx_use_data] * data)[idx_use_out]"
    but faster.
     N/A N/A N/A len idx_use_data N/A N/A e shape N/A 1 N/A N/A use_sparse N/A N/A data N/A N/A e N/A N/A N/A idx_use_data data N/A N/A N/A col row N/A N/A np meshgrid N/A N/A np arange N/A N/A data shape N/A 1 idx_use_data N/A d_sparse N/A N/A sparse csr_matrix N/A N/A N/A data ravel N/A N/A N/A row ravel N/A N/A col ravel shape N/A N/A N/A e shape N/A 1 N/A N/A data shape N/A 1 N/A data N/A e d_sparse N/A data N/A N/A np asarray N/A N/A data todense N/A N/A data N/A e data N/A N/A idx_use_out None N/A N/A data N/A data N/A idx_use_out N/A data N/A _get_subject_sphere_tris N/A N/A subject subjects_dir N/A N/A N/A spheres N/A N/A N/A N/A os path join subjects_dir subject surf N/A xh .sphere.reg N/A xh N/A lh rh N/A tris N/A N/A N/A read_surface s N/A 1 N/A s spheres N/A tris N/A _sparse_argmax_nnz_row N/A N/A csr_mat N/A N/A N/A Return index of the maximum non-zero index in each row
     N/A n_rows N/A N/A csr_mat shape N/A 0 N/A idx N/A N/A np empty n_rows dtype N/A np int N/A k N/A range n_rows N/A N/A row N/A N/A N/A csr_mat N/A k tocoo N/A N/A idx N/A k N/A N/A row col N/A N/A N/A np argmax N/A row data N/A idx N/A _morph_sparse N/A N/A stc subject_from subject_to subjects_dir N/A None N/A N/A Morph sparse source estimates to an other subject

    Parameters
    ----------
    stc : SourceEstimate
        The sparse STC.
    subject_from : str
        The subject on which stc is defined.
    subject_to : str
        The target subject.
    subjects_dir : str
        Path to SUBJECTS_DIR if it is not set in the environment.

    Returns
    -------
    stc_morph : SourceEstimate
        The morphed source estimates.
     N/A maps N/A read_morph_map subject_to subject_from subjects_dir N/A stc_morph N/A N/A stc copy N/A N/A stc_morph subject subject_to N/A cnt 0 N/A N/A k hemi N/A enumerate N/A lh rh N/A N/A N/A N/A N/A N/A stc vertices N/A k size 0 N/A N/A map_hemi N/A maps N/A k N/A vertno_k N/A _sparse_argmax_nnz_row N/A map_hemi N/A N/A N/A stc vertices N/A k N/A order N/A N/A np argsort vertno_k N/A n_active_hemi N/A len vertno_k N/A data_hemi N/A N/A stc_morph _data N/A cnt N/A cnt n_active_hemi N/A N/A N/A stc_morph _data N/A cnt N/A cnt n_active_hemi N/A data_hemi N/A order N/A N/A N/A stc_morph vertices N/A k N/A vertno_k N/A order N/A cnt n_active_hemi N/A N/A N/A N/A stc_morph vertices N/A k N/A N/A np array N/A int N/A stc_morph N/A morph_data N/A N/A subject_from subject_to stc_from grade smooth subjects_dir buffer_size n_jobs warn verbose N/A 5 None None 64 1 True None N/A N/A Morph a source estimate from one subject to another

    Parameters
    ----------
    subject_from : string
        Name of the original subject as named in the SUBJECTS_DIR
    subject_to : string
        Name of the subject on which to morph as named in the SUBJECTS_DIR
    stc_from : SourceEstimate
        Source estimates for subject "from" to morph
    grade : int, list (of two arrays), or None
        Resolution of the icosahedral mesh (typically 5). If None, all
        vertices will be used (potentially filling the surface). If a list,
        then values will be morphed to the set of vertices specified in
        in grade[0] and grade[1]. Note that specifying the vertices (e.g.,
        grade=[np.arange(10242), np.arange(10242)] for fsaverage on a
        standard grade 5 source space) can be substantially faster than
        computing vertex locations. Note that if subject='fsaverage'
        and 'grade=5', this set of vertices will automatically be used
        (instead of computed) for speed, since this is a common morph.
    smooth : int or None
        Number of iterations for the smoothing of the surface data.
        If None, smooth is automatically defined to fill the surface
        with non-zero values.
    subjects_dir : string, or None
        Path to SUBJECTS_DIR if it is not set in the environment.
    buffer_size : int
        Morph data in chunks of `buffer_size` time instants.
        Saves memory when morphing long time intervals.
    n_jobs : int
        Number of jobs to run in parallel
    warn : bool
        If True, warn if not all vertices were used.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    stc_to : SourceEstimate
        Source estimate for the destination subject.
     N/A N/A N/A isinstance stc_from SourceEstimate N/A N/A N/A ValueError Morphing is only possible with surface source estimates N/A N/A N/A logger info Morphing data... N/A subjects_dir N/A get_subjects_dir subjects_dir raise_error True N/A nearest N/A grade_to_vertices subject_to grade subjects_dir n_jobs N/A tris N/A _get_subject_sphere_tris subject_from subjects_dir N/A maps N/A read_morph_map subject_from subject_to subjects_dir N/A data N/A N/A stc_from lh_data N/A stc_from rh_data N/A data_morphed N/A None None N/A n_chunks N/A ceil N/A N/A N/A N/A stc_from data shape N/A 1 N/A float buffer_size N/A N/A parallel my_morph_buffer _ N/A parallel_func _morph_buffer n_jobs N/A hemi N/A 0 1 N/A N/A e N/A mesh_edges N/A tris N/A hemi N/A N/A N/A e data N/A N/A N/A e data 2 1 N/A n_vertices N/A N/A e shape N/A 0 N/A e N/A e N/A N/A sparse eye n_vertices n_vertices N/A idx_use N/A N/A stc_from vertices N/A hemi N/A N/A N/A len idx_use 0 N/A N/A N/A N/A data_morphed N/A hemi N/A N/A np concatenate N/A parallel N/A N/A my_morph_buffer data_buffer idx_use e smooth n_vertices N/A nearest N/A hemi N/A maps N/A hemi warn warn N/A data_buffer N/A N/A np array_split N/A data N/A hemi n_chunks axis 1 axis 1 N/A vertices N/A N/A nearest N/A 0 N/A nearest N/A 1 N/A N/A N/A data_morphed N/A 0 None N/A N/A N/A N/A data_morphed N/A 1 None N/A N/A data N/A N/A np r_ N/A N/A N/A N/A N/A vertices N/A N/A N/A np array N/A int N/A N/A np array N/A int N/A N/A data N/A data_morphed N/A 1 N/A vertices N/A N/A N/A np array N/A int N/A vertices N/A 1 N/A N/A N/A N/A data_morphed N/A 1 None N/A N/A data N/A data_morphed N/A 0 N/A vertices N/A N/A vertices N/A 0 N/A N/A np array N/A int N/A N/A data N/A N/A np r_ N/A N/A N/A data_morphed N/A 0 N/A data_morphed N/A 1 N/A stc_to N/A SourceEstimate data vertices N/A stc_from tmin N/A stc_from tstep subject subject_to verbose N/A stc_from verbose N/A N/A N/A logger info [done] N/A stc_to N/A verbose compute_morph_matrix N/A N/A subject_from subject_to vertices_from vertices_to smooth subjects_dir warn verbose N/A None None True None N/A N/A Get a matrix that morphs data from one subject to another

    Parameters
    ----------
    subject_from : string
        Name of the original subject as named in the SUBJECTS_DIR
    subject_to : string
        Name of the subject on which to morph as named in the SUBJECTS_DIR
    vertices_from : list of arrays of int
        Vertices for each hemisphere (LH, RH) for subject_from
    vertices_to : list of arrays of int
        Vertices for each hemisphere (LH, RH) for subject_to
    smooth : int or None
        Number of iterations for the smoothing of the surface data.
        If None, smooth is automatically defined to fill the surface
        with non-zero values.
    subjects_dir : string
        Path to SUBJECTS_DIR is not set in the environment
    warn : bool
        If True, warn if not all vertices were used.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    morph_matrix : sparse matrix
        matrix that morphs data from subject_from to subject_to
     N/A N/A N/A logger info Computing morph matrix... N/A subjects_dir N/A get_subjects_dir subjects_dir raise_error True N/A tris N/A _get_subject_sphere_tris subject_from subjects_dir N/A maps N/A read_morph_map subject_from subject_to subjects_dir N/A morpher N/A N/A None 2 N/A hemi N/A 0 1 N/A N/A e N/A mesh_edges N/A tris N/A hemi N/A N/A N/A e data N/A N/A N/A e data 2 1 N/A n_vertices N/A N/A e shape N/A 0 N/A e N/A e N/A N/A sparse eye n_vertices n_vertices N/A idx_use N/A vertices_from N/A hemi N/A N/A N/A len idx_use 0 N/A N/A N/A morpher N/A hemi N/A N/A N/A m N/A N/A sparse eye N/A len idx_use N/A len idx_use format csr N/A N/A morpher N/A hemi N/A _morph_buffer m idx_use e smooth n_vertices N/A vertices_to N/A hemi N/A maps N/A hemi warn warn N/A N/A isinstance N/A morpher N/A 0 list N/A N/A morpher N/A morpher N/A 1 N/A N/A N/A isinstance N/A morpher N/A 1 list N/A N/A morpher N/A morpher N/A 0 N/A N/A morpher N/A sparse_block_diag morpher format csr N/A N/A N/A logger info [done] N/A morpher N/A verbose grade_to_vertices N/A N/A subject grade subjects_dir n_jobs verbose N/A None 1 None N/A N/A Convert a grade to source space vertices for a given subject

    Parameters
    ----------
    subject : str
        Name of the subject
    grade : int
        Resolution of the icosahedral mesh (typically 5). If None, all
        vertices will be used (potentially filling the surface). If a list,
        then values will be morphed to the set of vertices specified in
        in grade[0] and grade[1]. Note that specifying the vertices (e.g.,
        grade=[np.arange(10242), np.arange(10242)] for fsaverage on a
        standard grade 5 source space) can be substantially faster than
        computing vertex locations. Note that if subject='fsaverage'
        and 'grade=5', this set of vertices will automatically be used
        (instead of computed) for speed, since this is a common morph.
    subjects_dir : string, or None
        Path to SUBJECTS_DIR if it is not set in the environment
    n_jobs : int
        Number of jobs to run in parallel
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    vertices : list of arrays of int
        Vertex numbers for LH and RH
     N/A N/A N/A subject fsaverage N/A grade 5 N/A N/A N/A N/A N/A np arange 10242 N/A N/A np arange 10242 N/A subjects_dir N/A get_subjects_dir subjects_dir raise_error True N/A spheres_to N/A N/A N/A N/A os path join subjects_dir subject surf N/A xh .sphere.reg N/A xh N/A lh rh N/A N/A lhs rhs N/A N/A N/A read_surface s N/A 0 N/A s spheres_to N/A N/A grade None N/A N/A N/A isinstance grade list N/A N/A N/A N/A N/A len grade 2 N/A N/A N/A ValueError grade as a list must have two elements (arrays of output vertices) N/A vertices grade N/A N/A ico N/A _get_ico_tris grade return_surf True N/A lhs N/A N/A N/A np sqrt N/A N/A np sum N/A lhs 2 axis 1 N/A N/A N/A None N/A rhs N/A N/A N/A np sqrt N/A N/A np sum N/A rhs 2 axis 1 N/A N/A N/A None N/A N/A parallel my_compute_nearest _ N/A parallel_func _compute_nearest n_jobs N/A N/A lhs rhs rr N/A N/A N/A a astype N/A np float32 N/A a N/A lhs rhs N/A ico N/A rr N/A vertices N/A parallel N/A N/A my_compute_nearest xhs rr N/A xhs N/A lhs rhs N/A vertices N/A N/A N/A np sort verts N/A verts vertices N/A N/A vertices N/A N/A N/A np arange N/A N/A lhs shape N/A 0 N/A N/A np arange N/A N/A rhs shape N/A 0 N/A vertices N/A verbose morph_data_precomputed N/A N/A subject_from subject_to stc_from vertices_to morph_mat N/A N/A N/A Morph source estimate between subjects using a precomputed matrix

    Parameters
    ----------
    subject_from : string
        Name of the original subject as named in the SUBJECTS_DIR.
    subject_to : string
        Name of the subject on which to morph as named in the SUBJECTS_DIR.
    stc_from : SourceEstimate
        Source estimates for subject "from" to morph.
    vertices_to : list of array of int
        The vertices on the destination subject's brain.
    morph_mat : sparse matrix
        The morphing matrix, typically from compute_morph_matrix.

    Returns
    -------
    stc_to : SourceEstimate
        Source estimate for the destination subject.
     N/A N/A N/A N/A sparse issparse morph_mat N/A N/A N/A ValueError morph_mat must be a sparse matrix N/A N/A N/A N/A isinstance vertices_to list N/A N/A N/A len vertices_to 2 N/A N/A N/A ValueError vertices_to must be a list of length 2 N/A N/A N/A N/A sum N/A N/A len v N/A v vertices_to N/A N/A morph_mat shape N/A 0 N/A N/A N/A ValueError number of vertices in vertices_to must match morph_mat.shape[0] N/A N/A N/A N/A N/A N/A stc_from data shape N/A 0 N/A N/A morph_mat shape N/A 1 N/A N/A N/A ValueError stc_from.data.shape[0] must be the same as morph_mat.shape[0] N/A N/A N/A N/A stc_from subject None N/A N/A stc_from subject subject_from N/A N/A N/A ValueError stc_from.subject and subject_from must match N/A data N/A morph_mat N/A stc_from data N/A stc_to N/A SourceEstimate data vertices_to N/A stc_from tmin N/A stc_from tstep verbose N/A stc_from verbose subject subject_to N/A stc_to N/A spatio_temporal_src_connectivity N/A N/A src n_times dist verbose N/A None None N/A N/A Compute connectivity for a source space activation over time

    Parameters
    ----------
    src : instance of SourceSpaces
        The source space.
    n_times : int
        Number of time instants.
    dist : float, or None
        Maximal geodesic distance (in m) between vertices in the
        source space to consider neighbors. If None, immediate neighbors
        are extracted from an ico surface.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatio-temporal
        graph structure. If N is the number of vertices in the
        source space, the N first nodes in the graph are the
        vertices are time 1, the nodes from 2 to 2N are the vertices
        during time 2, etc.
     N/A N/A dist None N/A N/A N/A N/A N/A src N/A 0 N/A use_tris None N/A N/A N/A RuntimeError The source space does not appear to be an ico surface. Connectivity cannot be extracted from non-ico source spaces. N/A used_verts N/A N/A N/A np unique N/A s N/A use_tris N/A s src N/A lh_tris N/A N/A np searchsorted N/A used_verts N/A 0 N/A N/A src N/A 0 N/A use_tris N/A rh_tris N/A N/A np searchsorted N/A used_verts N/A 1 N/A N/A src N/A 1 N/A use_tris N/A tris N/A N/A np concatenate N/A lh_tris N/A N/A rh_tris N/A N/A np max lh_tris 1 N/A connectivity N/A spatio_temporal_tris_connectivity tris n_times N/A masks N/A N/A in1d u N/A s N/A vertno N/A N/A s u N/A zip src used_verts N/A N/A N/A sum N/A N/A u size N/A u used_verts N/A N/A N/A connectivity shape N/A 0 n_times N/A N/A N/A ValueError Used vertices do not match connectivity shape N/A N/A N/A N/A N/A np sum m N/A m masks N/A N/A len N/A s N/A vertno N/A s src N/A N/A N/A ValueError Vertex mask does not match number of vertices N/A masks N/A N/A np concatenate masks N/A missing N/A N/A 100 N/A float N/A N/A len masks N/A N/A np sum masks N/A len masks N/A missing N/A N/A N/A warn_ N/A %0.1f%% of original source space vertices have been omitted, tri-based connectivity will have holes.
Consider using distance-based connectivity or morphing data to all source space vertices. missing N/A masks N/A N/A np tile masks n_times N/A masks N/A N/A N/A np where masks N/A 0 N/A connectivity N/A N/A connectivity tocsr N/A connectivity N/A connectivity N/A masks N/A connectivity N/A connectivity N/A N/A N/A masks N/A connectivity N/A N/A connectivity tocoo N/A connectivity N/A N/A N/A spatio_temporal_dist_connectivity src n_times dist N/A verbose grade_to_tris N/A N/A grade verbose N/A None N/A N/A Get tris defined for a certain grade

    Parameters
    ----------
    grade : int
        Grade of an icosahedral mesh.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    tris : list
        2-element list containing Nx3 arrays of tris, suitable for use in
        spatio_temporal_tris_connectivity.
     N/A a N/A _get_ico_tris grade None False N/A tris N/A N/A np concatenate N/A a N/A a N/A N/A N/A np max a 1 N/A tris N/A verbose spatio_temporal_tris_connectivity N/A N/A tris n_times remap_vertices verbose N/A False None N/A N/A Compute connectivity from triangles and time instants

    Parameters
    ----------
    tris : array
        N x 3 array defining triangles.
    n_times : int
        Number of time points
    remap_vertices : bool
        Reassign vertex indices based on unique values. Useful
        to process a subset of triangles. Defaults to False.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatio-temporal
        graph structure. If N is the number of vertices in the
        source space, the N first nodes in the graph are the
        vertices are time 1, the nodes from 2 to 2N are the vertices
        during time 2, etc.
     N/A remap_vertices N/A N/A N/A N/A logger info Reassigning vertex indices. N/A tris N/A N/A np searchsorted N/A N/A np unique tris tris N/A edges N/A N/A N/A mesh_edges tris tocoo N/A N/A _get_connectivity_from_edges edges n_times N/A verbose spatio_temporal_dist_connectivity N/A N/A src n_times dist verbose N/A None N/A N/A Compute connectivity from distances in a source space and time instants

    Parameters
    ----------
    src : instance of SourceSpaces
        The source space must have distances between vertices computed, such
        that src['dist'] exists and is useful. This can be obtained using MNE
        with a call to mne_add_patch_info with the --dist option.
    n_times : int
        Number of time points
    dist : float
        Maximal geodesic distance (in m) between vertices in the
        source space to consider neighbors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatio-temporal
        graph structure. If N is the number of vertices in the
        source space, the N first nodes in the graph are the
        vertices are time 1, the nodes from 2 to 2N are the vertices
        during time 2, etc.
     N/A N/A N/A N/A src N/A 0 N/A dist None N/A N/A N/A RuntimeError src must have distances included, consider using
mne_add_patch_info with --dist argument N/A edges N/A sparse_block_diag N/A N/A N/A N/A s N/A dist N/A N/A N/A s N/A vertno N/A N/A N/A N/A N/A s N/A vertno N/A s src N/A N/A N/A edges data N/A N/A N/A np less_equal N/A edges data dist N/A edges N/A N/A edges tocsr N/A N/A N/A edges eliminate_zeros N/A edges N/A N/A edges tocoo N/A N/A _get_connectivity_from_edges edges n_times N/A verbose spatial_src_connectivity N/A N/A src dist verbose N/A None None N/A N/A Compute connectivity for a source space activation

    Parameters
    ----------
    src : instance of SourceSpaces
        The source space.
    dist : float, or None
        Maximal geodesic distance (in m) between vertices in the
        source space to consider neighbors. If None, immediate neighbors
        are extracted from an ico surface.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatial graph structure.
     N/A N/A spatio_temporal_src_connectivity src 1 dist N/A verbose spatial_tris_connectivity N/A N/A tris remap_vertices verbose N/A False None N/A N/A Compute connectivity from triangles

    Parameters
    ----------
    tris : array
        N x 3 array defining triangles.
    remap_vertices : bool
        Reassign vertex indices based on unique values. Useful
        to process a subset of triangles. Defaults to False.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatial graph structure.
     N/A N/A spatio_temporal_tris_connectivity tris 1 remap_vertices N/A verbose spatial_dist_connectivity N/A N/A src dist verbose N/A None N/A N/A Compute connectivity from distances in a source space

    Parameters
    ----------
    src : instance of SourceSpaces
        The source space must have distances between vertices computed, such
        that src['dist'] exists and is useful. This can be obtained using MNE
        with a call to mne_add_patch_info with the --dist option.
    dist : float
        Maximal geodesic distance (in m) between vertices in the
        source space to consider neighbors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatial graph structure.
     N/A N/A spatio_temporal_dist_connectivity src 1 dist N/A spatial_inter_hemi_connectivity N/A N/A src dist verbose N/A None N/A N/A Get vertices on each hemisphere that are close to the other hemisphere

    Parameters
    ----------
    src : instance of SourceSpaces
        The source space. Must be surface type.
    dist : float
        Maximal Euclidean distance (in m) between vertices in one hemisphere
        compared to the other to consider neighbors.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    connectivity : sparse COO matrix
        The connectivity matrix describing the spatial graph structure.
        Typically this should be combined (addititively) with another
        existing intra-hemispheric connectivity matrix, e.g. computed
        using geodesic distances.
     scipy.spatial.distance cdist N/A src N/A _ensure_src src kind surf N/A conn N/A cdist N/A N/A N/A src N/A 0 N/A rr N/A N/A N/A src N/A 0 N/A vertno N/A N/A N/A src N/A 1 N/A rr N/A N/A N/A src N/A 1 N/A vertno N/A conn N/A N/A sparse csr_matrix N/A conn dist dtype int N/A empties N/A N/A N/A sparse csr_matrix N/A nv nv dtype int N/A nv N/A conn shape N/A conn N/A N/A sparse vstack N/A N/A N/A sparse hstack N/A N/A empties N/A 0 conn N/A N/A sparse hstack N/A N/A conn T N/A empties N/A 1 N/A conn N/A _get_connectivity_from_edges N/A N/A edges n_times verbose N/A None N/A N/A Given edges sparse matrix, create connectivity matrix N/A n_vertices N/A N/A edges shape N/A 0 N/A N/A N/A logger info N/A -- number of connected vertices : %d n_vertices N/A nnz N/A N/A edges col size N/A aux N/A N/A n_vertices N/A N/A N/A np arange n_times N/A N/A N/A None N/A N/A np ones N/A 1 nnz N/A np int N/A col N/A N/A N/A N/A N/A edges col N/A N/A None N/A aux ravel N/A row N/A N/A N/A N/A N/A edges row N/A N/A None N/A aux ravel N/A N/A n_times 1 N/A N/A o N/A N/A N/A N/A n_vertices N/A N/A N/A np arange N/A n_times 1 N/A N/A N/A None N/A N/A N/A np arange n_vertices N/A N/A None N/A ravel N/A d N/A N/A N/A N/A n_vertices N/A N/A N/A np arange 1 n_times N/A N/A N/A None N/A N/A N/A np arange n_vertices N/A N/A None N/A ravel N/A row N/A N/A np concatenate N/A row o d N/A col N/A N/A np concatenate N/A col d o N/A data N/A N/A np ones N/A N/A N/A N/A edges data size n_times N/A N/A 2 n_vertices N/A n_times 1 dtype N/A np int N/A connectivity N/A coo_matrix N/A data N/A row col shape N/A N/A N/A n_times n_vertices 2 N/A connectivity N/A verbose _get_ico_tris N/A N/A grade verbose return_surf N/A None False N/A N/A Get triangles for ico surface. N/A ico N/A _get_ico_surface grade N/A N/A return_surf N/A N/A N/A ico N/A tris N/A N/A ico N/A verbose save_stc_as_volume N/A N/A fname stc src dest mri_resolution N/A mri False N/A N/A Save a volume source estimate in a nifti file

    Parameters
    ----------
    fname : string | None
        The name of the generated nifti file. If None, the image is only
        returned and not saved.
    stc : instance of VolSourceEstimate
        The source estimate
    src : list
        The list of source spaces (should actually be of length 1)
    dest : 'mri' | 'surf'
        If 'mri' the volume is defined in the coordinate system of
        the original T1 image. If 'surf' the coordinate system
        of the FreeSurfer surface is used (Surface RAS).
    mri_resolution: bool
        It True the image is saved in MRI resolution.
        WARNING: if you have many time points the file produced can be
        huge.

    Returns
    -------
    img : instance Nifti1Image
        The image object.
     N/A N/A N/A isinstance stc VolSourceEstimate N/A N/A N/A Exception Only volume source estimates can be saved as volumes N/A n_times N/A N/A N/A stc data shape N/A 1 N/A shape N/A N/A src N/A 0 N/A shape N/A shape3d N/A N/A shape N/A 2 N/A shape N/A 1 N/A shape N/A 0 N/A shape N/A n_times N/A shape N/A 2 N/A shape N/A 1 N/A shape N/A 0 N/A vol N/A N/A np zeros shape N/A mask3d N/A N/A N/A N/A N/A N/A src N/A 0 N/A inuse reshape shape3d astype N/A np bool N/A mri_resolution N/A N/A mri_shape3d N/A N/A N/A src N/A 0 N/A mri_height N/A N/A src N/A 0 N/A mri_depth N/A N/A src N/A 0 N/A mri_width N/A mri_shape N/A n_times N/A N/A src N/A 0 N/A mri_height N/A N/A src N/A 0 N/A mri_depth N/A N/A src N/A 0 N/A mri_width N/A mri_vol N/A N/A np zeros mri_shape N/A interpolator N/A N/A src N/A 0 N/A interpolator N/A N/A k v N/A enumerate vol N/A N/A N/A v N/A mask3d N/A N/A stc data N/A N/A N/A k N/A mri_resolution N/A N/A N/A mri_vol N/A k N/A N/A N/A interpolator N/A N/A v ravel reshape mri_shape3d N/A mri_resolution N/A N/A vol mri_vol N/A vol N/A vol T N/A mri_resolution N/A N/A affine N/A N/A N/A N/A N/A src N/A 0 N/A vox_mri_t N/A trans copy N/A N/A affine N/A N/A N/A N/A N/A src N/A 0 N/A src_mri_t N/A trans copy N/A N/A dest mri N/A N/A affine N/A N/A np dot N/A N/A N/A src N/A 0 N/A mri_ras_t N/A trans affine N/A N/A affine N/A 3 1000.0 N/A N/A N/A nibabel nib N/A N/A N/A ImportError N/A N/A N/A ImportError nibabel is required to save volume images. N/A header N/A N/A N/A nib nifti1 Nifti1Header N/A N/A N/A header set_xyzt_units mm msec N/A N/A N/A header N/A pixdim N/A 4 N/A 1000.0 N/A stc tstep N/A N/A N/A warnings catch_warnings record True N/A N/A img N/A N/A nib Nifti1Image vol affine header header N/A N/A fname None N/A N/A N/A N/A nib save img fname N/A img N/A _get_label_flip N/A N/A labels label_vertidx src N/A N/A N/A Helper function to get sign-flip for labels label label_sign_flip N/A label_flip N/A list N/A N/A label vertidx N/A zip labels label_vertidx N/A N/A N/A N/A label hemi both N/A N/A N/A ValueError BiHemiLabel not supported when using sign-flip N/A N/A vertidx None N/A N/A flip N/A N/A label_sign_flip label src N/A N/A N/A None N/A N/A flip None N/A N/A N/A label_flip append flip N/A label_flip N/A _gen_extract_label_time_course N/A N/A stcs labels src mode allow_empty verbose N/A mean False None N/A N/A Generator for extract_label_time_course N/A n_labels N/A len labels N/A vertno N/A N/A s N/A vertno N/A s src N/A nvert N/A N/A len vn N/A vn vertno N/A label_vertidx N/A list N/A label labels N/A N/A N/A N/A label hemi both N/A N/A sub_labels N/A N/A label lh N/A label rh N/A N/A sub_labels N/A label N/A this_vertidx N/A list N/A slabel sub_labels N/A N/A N/A N/A slabel hemi lh N/A N/A this_vertno N/A N/A np intersect1d N/A vertno N/A 0 N/A slabel vertices N/A vertidx N/A N/A np searchsorted N/A vertno N/A 0 this_vertno N/A N/A N/A N/A slabel hemi rh N/A N/A this_vertno N/A N/A np intersect1d N/A vertno N/A 1 N/A slabel vertices N/A vertidx N/A N/A nvert N/A 0 N/A N/A np searchsorted N/A vertno N/A 1 this_vertno N/A N/A N/A ValueError N/A label %s has invalid hemi N/A label name N/A N/A N/A this_vertidx append vertidx N/A this_vertidx N/A N/A np concatenate this_vertidx N/A N/A N/A len this_vertidx 0 N/A N/A msg N/A source space does not contain any vertices for label %s N/A label name N/A N/A allow_empty N/A N/A N/A ValueError msg N/A N/A N/A warn_ N/A msg . Assigning all-zero time series to label. N/A this_vertidx None N/A N/A N/A label_vertidx append this_vertidx N/A N/A mode mean N/A N/A N/A N/A N/A mode mean_flip N/A N/A label_flip N/A _get_label_flip labels label_vertidx src N/A N/A N/A mode pca_flip N/A N/A label_flip N/A _get_label_flip labels label_vertidx src N/A N/A N/A mode max N/A N/A N/A N/A N/A ValueError N/A %s is an invalid mode mode N/A stc stcs N/A N/A N/A N/A N/A len N/A N/A stc vertices N/A 0 N/A nvert N/A 0 N/A N/A len N/A N/A stc vertices N/A 1 N/A nvert N/A 1 N/A N/A N/A ValueError stc not compatible with source space N/A N/A any N/A N/A N/A np any N/A svn vn N/A N/A svn vn N/A zip N/A stc vertices vertno N/A N/A N/A ValueError stc not compatible with source space N/A N/A N/A logger info N/A Extracting time courses for %d labels (mode: %s) N/A n_labels mode N/A label_tc N/A N/A np zeros N/A n_labels N/A N/A N/A stc data shape N/A 1 dtype N/A N/A stc data dtype N/A N/A mode mean N/A N/A N/A i vertidx N/A enumerate label_vertidx N/A N/A N/A vertidx None N/A N/A N/A label_tc N/A i N/A N/A np mean N/A N/A stc data N/A N/A vertidx N/A axis 0 N/A N/A N/A mode mean_flip N/A N/A N/A i N/A vertidx flip N/A enumerate N/A zip label_vertidx label_flip N/A N/A N/A vertidx None N/A N/A N/A label_tc N/A i N/A N/A np mean N/A flip N/A N/A stc data N/A N/A vertidx N/A axis 0 N/A N/A N/A mode pca_flip N/A N/A N/A i N/A vertidx flip N/A enumerate N/A zip label_vertidx label_flip N/A N/A N/A vertidx None N/A N/A N/A U s V N/A N/A linalg svd N/A N/A stc data N/A N/A vertidx N/A full_matrices False N/A sign N/A N/A np sign N/A N/A np dot N/A U N/A N/A N/A 0 flip N/A scale N/A N/A N/A linalg norm s N/A N/A np sqrt N/A len vertidx N/A N/A label_tc N/A i N/A N/A sign scale N/A V N/A 0 N/A N/A N/A mode max N/A N/A N/A i vertidx N/A enumerate label_vertidx N/A N/A N/A vertidx None N/A N/A N/A label_tc N/A i N/A N/A np max N/A N/A np abs N/A N/A stc data N/A N/A vertidx N/A axis 0 N/A N/A N/A ValueError N/A %s is an invalid mode mode N/A N/A label_tc N/A verbose extract_label_time_course N/A N/A stcs labels src mode allow_empty return_generator verbose N/A mean_flip False False None N/A N/A Extract label time course for lists of labels and source estimates

    This function will extract one time course for each label and source
    estimate. The way the time courses are extracted depends on the mode
    parameter.

    Valid values for mode are:

        - 'mean': Average within each label.
        - 'mean_flip': Average within each label with sign flip depending
          on source orientation.
        - 'pca_flip': Apply an SVD to the time courses within each label
          and use the scaled and sign-flipped first right-singular vector
          as the label time course. The scaling is performed such that the
          power of the label time course is the same as the average
          per-vertex time course power within the label. The sign of the
          resulting time course is adjusted by multiplying it with
          "sign(dot(u, flip))" where u is the first left-singular vector,
          and flip is a sing-flip vector based on the vertex normals. This
          procedure assures that the phase does not randomly change by 180
          degrees from one stc to the next.
        - 'max': Max value within each label.


    Parameters
    ----------
    stcs : SourceEstimate | list (or generator) of SourceEstimate
        The source estimates from which to extract the time course.
    labels : Label | list of Label
        The labels for which to extract the time course.
    src : list
        Source spaces for left and right hemisphere.
    mode : str
        Extraction mode, see explanation above.
    allow_empty : bool
        Instead of emitting an error, return all-zero time courses for labels
        that do not have any vertices in the source estimate.
    return_generator : bool
        If True, a generator instead of a list is returned.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    label_tc : array | list (or generator) of array, shape=(len(labels), n_times)
        Extracted time course for each label and source estimate.
     N/A N/A isinstance stcs SourceEstimate N/A N/A stcs N/A stcs N/A return_several False N/A return_generator False N/A N/A return_several True N/A N/A N/A isinstance labels list N/A N/A labels N/A labels N/A label_tc N/A _gen_extract_label_time_course stcs labels src mode mode allow_empty allow_empty N/A N/A return_generator N/A N/A label_tc N/A list label_tc N/A N/A return_several N/A N/A label_tc N/A label_tc N/A 0 N/A label_tc N/A verbose