Module ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias identifier ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad ExtSlice Slice Index Num decorator_list orelse FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad attr BoolOpAnd Call NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareEq Call NameLoad NameLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad Call NameLoad NameLoad keyword NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareEq Call NameLoad NameLoad ListLoad Str Str Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Num NameLoad body Assign NameStore TupleLoad Str Str Str If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad NameLoad If UnaryOpNot Call NameLoad Str Str body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot CompareLtLtE Num NameLoad Num body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Str 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 If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign NameStore Call NameLoad NameLoad If CompareIn Str NameLoad body Raise Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore Dict Str Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Dict Str NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str AugAssignAdd NameStore Str AugAssignAdd NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Str Str AugAssignAdd NameStore IfExp Call NameLoad NameLoad Str BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore ListComp BinOpMod Str NameLoad comprehension NameStore NameLoad CompareIn NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr Delete AttributeDel NameLoad attr If Call NameLoad NameLoad Str body Delete AttributeDel NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad Index Num If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad If BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign TupleStore NameStore AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str ListLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Slice NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Index Num Slice attr Assign TupleStore NameStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Str If BoolOpAnd UnaryOpNot NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call NameLoad NameLoad Num For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad AugAssignDiv NameStore NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad orelse If BoolOpAnd NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignDiv NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Num attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpDiv AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareLt NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameStore AttributeLoad NameLoad attr AugAssignMult AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Delete NameDel Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareGt AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body ImportFrom alias Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Str Str orelse If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad keyword NameLoad AttributeLoad NameLoad attr AugAssignDiv AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad ExtSlice Index NameLoad Slice Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignSub NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad Index Num AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Delete AttributeDel NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad ExtSlice Slice Slice NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad ExtSlice Index Num Slice NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad BinOpAdd AttributeLoad NameLoad attr IfExp NameLoad NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr ListLoad IfExp NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListLoad Assign AttributeStore NameLoad attr IfExp CompareGt Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr ListLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad keyword Num NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension NameStore NameLoad orelse Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore SubscriptStore NameLoad Index Str ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpMod Str BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword Num keyword BinOpAdd NameLoad Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr BinOpMult ListLoad Num Num Num Num Num keyword Str keyword AttributeLoad NameLoad attr keyword Num keyword BinOpAdd NameLoad Num keyword Num If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore ListComp NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str CompareIn SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str ListLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad Str body If CompareLt AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr Num SubscriptLoad AttributeLoad NameLoad attr Index Num If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad If Call NameLoad NameLoad Str body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num Num Str NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body If CompareIsNot NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad Str body If CompareIs NameLoad NameLoad body Assign NameStore Num If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr orelse Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareGtE NameLoad NameLoad Index Num orelse If CompareEq NameLoad Str body If CompareIs NameLoad NameLoad body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad attr Slice Num If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str NameLoad Call NameLoad NameLoad Return TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad NameLoad Num Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num keyword NameLoad AugAssignAdd NameStore ListLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd BinOpMod Str NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Slice Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad NameLoad Return TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Raise Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad Index Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str If CompareNotEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad BinOpAdd AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot CompareLtELtE AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignSub NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn NameLoad TupleLoad NameLoad ListLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If CompareNotIn NameLoad TupleLoad NameLoad ListLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpSub NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Slice NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Slice NameLoad Slice NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad attr NameLoad If CompareGt NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call NameLoad NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignMult NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Expr Call NameLoad NameLoad Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Raise Expr Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call 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 NameLoad Num NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad Str Num Str NameLoad body Expr Str Return Call 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 FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str TupleLoad Num Num NameLoad body Expr Str Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Return Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Str Num NameLoad Str Num Num Num Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call 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 Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad CompareLtE Call AttributeLoad BinOpDiv AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If CompareLt NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return ListComp IfExp BoolOpOr Call NameLoad NameLoad NameLoad CompareIs NameLoad NameLoad NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num comprehension NameStore TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num Num Str NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num Num NameLoad body Expr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword ListLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore IfExp CompareIsNot NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If CompareGt Call NameLoad NameLoad Num body If Call NameLoad SubscriptLoad NameLoad Index Num TupleLoad NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad For NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad IfExp UnaryOpNot Call NameLoad NameLoad NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIsNot SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Str NameLoad Assign NameStore Dict Str Str IfExp CompareIs NameLoad NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Str NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad NameLoad Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad Num If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore ListComp Call NameLoad NameLoad comprehension NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad ListLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore ListLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad Str NameLoad NameLoad NameLoad If CompareNotIn NameLoad ListLoad NameLoad ListLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad BinOpMod Str NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad Str NameLoad AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad Str NameLoad AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad Str NameLoad AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareGt Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad Call NameLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore TupleLoad Call NameLoad NameLoad IfExp CompareGt Call NameLoad NameLoad Num Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Str If CompareNotEq Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Num NameLoad Str Num Num Num Num NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call 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 NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad keyword Str keyword NameLoad orelse If BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad If CompareLtE NameLoad Num body Assign NameStore ListComp Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad Index Num comprehension NameStore NameLoad orelse Assign NameStore ListComp Call NameLoad Call NameLoad NameLoad keyword NameLoad comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Return TupleLoad ListLoad Num Num ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore BinOpMult BinOpSub BinOpDiv NameLoad NameLoad NameLoad NameLoad AugAssignDiv NameStore Call NameLoad NameLoad AugAssignMult NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index TupleLoad Num Num Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Str If CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad orelse Assign NameStore Str Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Num If CompareGt Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad comprehension NameStore Call NameLoad Num NameLoad NameLoad Return NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body ImportFrom alias For TupleStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore IfExp NameLoad Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Expr SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Index Num Expr Call NameLoad NameLoad Expr Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Str NameLoad NameLoad NameLoad Str NameLoad NameLoad Num NameLoad body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If CompareEq NameLoad Str body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr Num Num keyword AttributeLoad NameLoad attr Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Index SubscriptLoad NameLoad Index Num Assign NameStore NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareEq Call NameLoad NameLoad SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num body Assign NameStore NameLoad Assign NameStore NameLoad orelse Raise Call NameLoad Str Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body If NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num attr keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad ListLoad NameLoad ListLoad Num ListLoad Num NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body If BoolOpOr CompareEq Call NameLoad NameLoad Num CompareEq Call NameLoad NameLoad Num body If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str Return NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign TupleStore NameStore NameStore NameStore NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad body If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad If CompareGt Call NameLoad NameLoad Num body If Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Call NameLoad BinOpAdd Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list NameLoad
N/A inspect isfunction collections namedtuple copy deepcopy N/A os N/A json N/A numpy np scipy linalg ecg qrs_detector _get_ecg_channel_index _make_ecg create_ecg_epochs eog _find_eog_events _get_eog_channel_index infomax_ infomax cov compute_whitener N/A Covariance Evoked io.pick pick_types pick_channels pick_info _pick_data_channels _DATA_CH_TYPES_SPLIT io.write write_double_matrix write_string write_name_list write_int start_block end_block io.tree dir_tree_find io.open fiff_open io.tag read_tag io.meas_info write_meas_info read_meas_info io.constants Bunch FIFF io.base _BaseRaw epochs _BaseEpochs viz plot_ica_components plot_ica_scores plot_ica_sources plot_ica_overlay viz.utils _prepare_trellis tight_layout plt_show _setup_vmin_vmax viz.topomap _prepare_topo_plot _check_outlines plot_topomap _hide_frame channels.channels _contains_ch_type ContainsMixin io.write start_file end_file write_id utils check_version logger check_fname verbose _reject_data_segments check_random_state _get_fast_dot compute_corr _check_copy_dep fixes _get_args filter band_pass_filter bads find_outliers ctps_ ctps externals.six string_types text_type N/A __all__ N/A ICA ica_find_ecg_events ica_find_eog_events get_score_funcs read_ica run_ica _make_xy_sfunc N/A N/A func ndim_output N/A False N/A N/A Aux function N/A ndim_output N/A sfunc N/A N/A x y N/A N/A N/A N/A N/A N/A np array N/A N/A func a N/A N/A y ravel N/A a x N/A N/A N/A 0 N/A N/A sfunc N/A N/A x y N/A N/A N/A N/A N/A np array N/A N/A func a N/A N/A y ravel N/A a x N/A N/A N/A sfunc __name__ N/A N/A . join N/A score_func N/A func __module__ N/A func __name__ N/A N/A sfunc __doc__ N/A func __doc__ N/A sfunc N/A get_score_funcs N/A N/A N/A N/A N/A Helper to get the score functions scipy stats scipy.spatial distance N/A score_funcs N/A Bunch N/A xy_arg_dist_funcs N/A N/A n f N/A N/A n f N/A N/A N/A vars distance items N/A N/A isfunction f N/A N/A N/A n startswith _ N/A xy_arg_stats_funcs N/A N/A n f N/A N/A n f N/A N/A N/A vars stats items N/A N/A isfunction f N/A N/A N/A n startswith _ N/A N/A N/A score_funcs update N/A dict N/A N/A n N/A _make_xy_sfunc f N/A N/A n f xy_arg_dist_funcs N/A N/A _get_args f N/A u v N/A N/A N/A score_funcs update N/A dict N/A N/A n N/A _make_xy_sfunc f ndim_output True N/A N/A n f xy_arg_stats_funcs N/A N/A _get_args f N/A x y N/A score_funcs N/A ICA N/A ContainsMixin N/A N/A M/EEG signal decomposition using Independent Component Analysis (ICA)

    This object can be used to estimate ICA components and then
    remove some from Raw or Epochs for data exploration or artifact
    correction.

    Caveat! If supplying a noise covariance keep track of the projections
    available in the cov or in the raw object. For example, if you are
    interested in EOG or ECG artifacts, EOG and ECG projections should be
    temporally removed before fitting the ICA. You can say::

        >> projs, raw.info['projs'] = raw.info['projs'], []
        >> ica.fit(raw)
        >> raw.info['projs'] = projs

    .. note:: Methods implemented are FastICA (default), Infomax and
              Extended-Infomax. Infomax can be quite sensitive to differences
              in floating point arithmetic due to exponential non-linearity.
              Extended-Infomax seems to be more stable in this respect
              enhancing reproducibility and stability of results.

    Parameters
    ----------
    n_components : int | float | None
        The number of components used for ICA decomposition. If int, it must be
        smaller then max_pca_components. If None, all PCA components will be
        used. If float between 0 and 1 components will be selected by the
        cumulative percentage of explained variance.
    max_pca_components : int | None
        The number of components used for PCA decomposition. If None, no
        dimension reduction will be applied and max_pca_components will equal
        the number of channels supplied on decomposing data. Defaults to None.
    n_pca_components : int | float
        The number of PCA components used after ICA recomposition. The ensuing
        attribute allows to balance noise reduction against potential loss of
        features due to dimensionality reduction. If greater than
        ``self.n_components_``, the next ``n_pca_components`` minus
        ``n_components_`` PCA components will be added before restoring the
        sensor space data. The attribute gets updated each time the according
        parameter for in .pick_sources_raw or .pick_sources_epochs is changed.
        If float, the number of components selected matches the number of
        components with a cumulative explained variance below
        `n_pca_components`.
    noise_cov : None | instance of mne.cov.Covariance
        Noise covariance used for whitening. If None, channels are just
        z-scored.
    random_state : None | int | instance of np.random.RandomState
        np.random.RandomState to initialize the FastICA estimation.
        As the estimation is non-deterministic it can be useful to
        fix the seed to have reproducible results. Defaults to None.
    method : {'fastica', 'infomax', 'extended-infomax'}
        The ICA method to use. Defaults to 'fastica'.
    fit_params : dict | None.
        Additional parameters passed to the ICA estimator chosen by `method`.
    max_iter : int, optional
        Maximum number of iterations during fit.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Attributes
    ----------
    current_fit : str
        Flag informing about which data type (raw or epochs) was used for
        the fit.
    ch_names : list-like
        Channel names resulting from initial picking.
        The number of components used for ICA decomposition.
    ``n_components_`` : int
        If fit, the actual number of components used for ICA decomposition.
    n_pca_components : int
        See above.
    max_pca_components : int
        The number of components used for PCA dimensionality reduction.
    verbose : bool, str, int, or None
        See above.
    ``pca_components_` : ndarray
        If fit, the PCA components
    ``pca_mean_`` : ndarray
        If fit, the mean vector used to center the data before doing the PCA.
    ``pca_explained_variance_`` : ndarray
        If fit, the variance explained by each PCA component
    ``mixing_matrix_`` : ndarray
        If fit, the mixing matrix to restore observed data, else None.
    ``unmixing_matrix_`` : ndarray
        If fit, the matrix to unmix observed data, else None.
    exclude : list
        List of sources indices to exclude, i.e. artifact components identified
        throughout the ICA solution. Indices added to this list, will be
        dispatched to the .pick_sources methods. Source indices passed to
        the .pick_sources method via the 'exclude' argument are added to the
        .exclude attribute. When saving the ICA also the indices are restored.
        Hence, artifact components once identified don't have to be added
        again. To dump this 'artifact memory' say: ica.exclude = []
    info : None | instance of Info
        The measurement info copied from the object fitted.
    `n_samples_` : int
        the number of samples used on fit.
    `labels_` : dict
        A dictionary of independent component indices, grouped by types of
        independent components. This attribute is set by some of the artifact
        detection functions.
     __init__ N/A N/A self n_components max_pca_components n_pca_components noise_cov random_state method fit_params max_iter verbose N/A None None None None None fastica None 200 None N/A N/A methods N/A fastica infomax extended-infomax N/A N/A method methods N/A N/A N/A ValueError N/A `method` must be "%s". You passed: "%s" N/A N/A N/A " or " join methods method N/A N/A N/A check_version sklearn 0.12 N/A N/A N/A RuntimeError the scikit-learn package (version >= 0.12)is required for ICA N/A N/A self noise_cov noise_cov N/A N/A N/A max_pca_components None N/A n_components max_pca_components N/A N/A N/A ValueError n_components must be smaller than max_pca_components N/A N/A N/A isinstance n_components float N/A N/A 0 n_components 1 N/A N/A N/A ValueError Selecting ICA components by explained variance needs values between 0.0 and 1.0  N/A N/A self current_fit unfitted N/A N/A self verbose verbose N/A N/A self n_components n_components N/A N/A self max_pca_components max_pca_components N/A N/A self n_pca_components n_pca_components N/A N/A self ch_names None N/A N/A self random_state random_state N/A N/A fit_params None N/A N/A fit_params N/A N/A fit_params N/A deepcopy fit_params N/A N/A extended fit_params N/A N/A N/A ValueError 'extended' parameter provided. You should rather use method='extended-infomax'. N/A N/A method fastica N/A N/A update N/A algorithm fun fun_args parallel logcosh None N/A N/A N/A fit_params update N/A dict N/A N/A k v N/A N/A k v N/A N/A update items N/A k fit_params N/A N/A N/A method infomax N/A N/A N/A N/A fit_params update N/A extended False N/A N/A N/A method extended-infomax N/A N/A N/A N/A fit_params update N/A extended True N/A N/A max_iter fit_params N/A N/A N/A fit_params N/A max_iter max_iter N/A N/A self max_iter max_iter N/A N/A self fit_params fit_params N/A N/A self exclude N/A N/A N/A self info None N/A N/A self method method N/A verbose __repr__ N/A N/A self N/A N/A N/A ICA fit information N/A N/A N/A self current_fit unfitted N/A N/A s no N/A N/A N/A N/A self current_fit raw N/A N/A s raw data N/A N/A s epochs N/A s  decomposition,  N/A s N/A fit (%s): %s samples,  N/A N/A self method N/A str N/A getattr self n_samples_ N/A s N/A N/A hasattr self n_components_ N/A %s components N/A str N/A self n_components_ no dimension reduction N/A N/A N/A self info None N/A N/A ch_fit N/A N/A "%s" c N/A c _DATA_CH_TYPES_SPLIT N/A c self N/A s N/A N/A , channels used: {0} format N/A N/A ;  join ch_fit N/A N/A self exclude N/A N/A s N/A , %i sources marked for exclusion N/A len N/A self exclude N/A N/A <ICA  |  %s> s N/A fit N/A N/A self inst picks start stop decim reject flat tstep verbose N/A None None None None None None 2.0 None N/A N/A Run the ICA decomposition on raw data

        Caveat! If supplying a noise covariance keep track of the projections
        available in the cov, the raw or the epochs object. For example,
        if you are interested in EOG or ECG artifacts, EOG and ECG projections
        should be temporally removed before fitting the ICA.

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            Raw measurements to be decomposed.
        picks : array-like of int
            Channels to be included. This selection remains throughout the
            initialized ICA solution. If None only good data channels are used.
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, data will be used from the first sample.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, data will be used to the last sample.
        decim : int | None
            Increment for selecting each nth time slice. If None, all samples
            within ``start`` and ``stop`` are used.
        reject : dict | None
            Rejection parameters based on peak-to-peak amplitude.
            Valid keys are 'grad', 'mag', 'eeg', 'seeg', 'ecog', 'eog', 'ecg'.
            If reject is None then no rejection is done. Example::

                reject = dict(grad=4000e-13, # T / m (gradiometers)
                              mag=4e-12, # T (magnetometers)
                              eeg=40e-6, # V (EEG channels)
                              eog=250e-6 # V (EOG channels)
                              )

            It only applies if `inst` is of type Raw.
        flat : dict | None
            Rejection parameters based on flatness of signal.
            Valid keys are 'grad', 'mag', 'eeg', 'seeg', 'ecog', 'eog', 'ecg'.
            Values are floats that set the minimum acceptable peak-to-peak
            amplitude. If flat is None then no rejection is done.
            It only applies if `inst` is of type Raw.
        tstep : float
            Length of data chunks for artifact rejection in seconds.
            It only applies if `inst` is of type Raw.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.

        Returns
        -------
        self : instance of ICA
            Returns the modified instance.
         N/A N/A isinstance inst _BaseRaw N/A N/A N/A N/A self _fit_raw inst picks start stop decim reject flat tstep verbose N/A N/A N/A isinstance inst _BaseEpochs N/A N/A N/A N/A self _fit_epochs inst picks decim verbose N/A N/A N/A ValueError Data input must be of Raw or Epochs type N/A self N/A verbose _reset N/A N/A self N/A N/A N/A Aux method N/A N/A self _pre_whitener N/A N/A self unmixing_matrix_ N/A N/A self mixing_matrix_ N/A N/A self n_components_ N/A N/A self n_samples_ N/A N/A self pca_components_ N/A N/A self pca_explained_variance_ N/A N/A self pca_mean_ N/A N/A hasattr self drop_inds_ N/A N/A N/A self drop_inds_ N/A _fit_raw N/A N/A self raw picks start stop decim reject flat tstep verbose N/A N/A N/A Aux method
         N/A N/A N/A self current_fit unfitted N/A N/A N/A N/A self _reset N/A N/A picks None N/A N/A picks N/A _pick_data_channels N/A raw info exclude bads with_ref_meg False N/A N/A N/A logger info N/A Fitting ICA to data using %i channels. 
Please be patient, this may take some time N/A len picks N/A N/A N/A self max_pca_components None N/A N/A N/A self max_pca_components N/A len picks N/A N/A N/A logger info Inferring max_pca_components from picks. N/A N/A self info N/A pick_info N/A raw info picks N/A N/A N/A self info N/A comps N/A N/A N/A N/A self info N/A comps N/A N/A N/A self ch_names N/A N/A self info N/A ch_names N/A N/A start stop N/A _check_start_stop raw start stop N/A data N/A N/A raw N/A N/A picks N/A start stop N/A 0 N/A N/A decim None N/A N/A data N/A data N/A N/A N/A decim N/A N/A N/A reject None N/A flat None N/A N/A N/A data N/A self drop_inds_ N/A _reject_data_segments data reject flat decim N/A self info tstep N/A N/A self n_samples_ N/A N/A data shape N/A 1 N/A N/A data N/A self _pre_whitener N/A N/A self _pre_whiten data N/A raw info picks N/A N/A N/A self _fit data N/A self max_pca_components raw N/A self N/A _fit_epochs N/A N/A self epochs picks decim verbose N/A N/A N/A Aux method
         N/A N/A N/A self current_fit unfitted N/A N/A N/A N/A self _reset N/A N/A picks None N/A N/A picks N/A _pick_data_channels N/A epochs info exclude bads with_ref_meg False N/A N/A N/A logger info N/A Fitting ICA to data using %i channels. 
Please be patient, this may take some time N/A len picks N/A N/A self info N/A pick_info N/A epochs info picks N/A N/A N/A self info N/A comps N/A N/A N/A N/A self info N/A comps N/A N/A N/A self ch_names N/A N/A self info N/A ch_names N/A N/A N/A self max_pca_components None N/A N/A N/A self max_pca_components N/A len picks N/A N/A N/A logger info Inferring max_pca_components from picks. N/A data N/A N/A N/A epochs get_data N/A N/A N/A picks N/A N/A decim None N/A N/A data N/A data N/A N/A N/A N/A decim N/A N/A self n_samples_ N/A N/A np prod N/A N/A data N/A N/A N/A 0 N/A shape N/A N/A data N/A self _pre_whitener N/A N/A self _pre_whiten N/A N/A np hstack data N/A epochs info picks N/A N/A N/A self _fit data N/A self max_pca_components epochs N/A self N/A _pre_whiten N/A N/A self data info picks N/A N/A N/A Aux function N/A fast_dot N/A _get_fast_dot N/A has_pre_whitener N/A hasattr self _pre_whitener N/A N/A N/A has_pre_whitener N/A N/A self noise_cov None N/A N/A info N/A pick_info info picks N/A pre_whitener N/A N/A np empty N/A N/A len data 1 N/A ch_type _DATA_CH_TYPES_SPLIT N/A N/A N/A _contains_ch_type info ch_type N/A N/A N/A ch_type seeg N/A N/A this_picks N/A pick_types info meg False seeg True N/A N/A N/A ch_type ecog N/A N/A this_picks N/A pick_types info meg False ecog True N/A N/A N/A ch_type eeg N/A N/A this_picks N/A pick_types info meg False eeg True N/A N/A this_picks N/A pick_types info meg ch_type N/A N/A pre_whitener N/A this_picks N/A N/A np std N/A data N/A this_picks N/A data pre_whitener N/A N/A N/A N/A has_pre_whitener N/A N/A self noise_cov None N/A N/A N/A pre_whitener _ N/A compute_whitener N/A self noise_cov info picks N/A N/A N/A N/A data shape N/A 0 N/A N/A pre_whitener shape N/A 1 N/A data N/A fast_dot pre_whitener data N/A N/A N/A has_pre_whitener N/A N/A self noise_cov None N/A N/A data N/A self _pre_whitener N/A pre_whitener N/A self _pre_whitener N/A N/A data N/A fast_dot N/A self _pre_whitener data N/A pre_whitener N/A self _pre_whitener N/A N/A data pre_whitener N/A _fit N/A N/A self data max_pca_components fit_type N/A N/A N/A Aux function  sklearn.decomposition RandomizedPCA N/A random_state N/A check_random_state N/A self random_state N/A pca N/A RandomizedPCA n_components max_pca_components whiten True copy True random_state random_state N/A N/A isinstance N/A self n_components float N/A N/A full_var N/A N/A N/A N/A np var data axis 1 sum N/A data N/A N/A pca fit_transform N/A data T N/A N/A isinstance N/A self n_components float N/A N/A explained_variance_ratio_ N/A N/A pca explained_variance_ full_var N/A n_components_ N/A N/A np sum N/A N/A N/A explained_variance_ratio_ cumsum N/A self n_components N/A N/A n_components_ 1 N/A N/A N/A RuntimeError One PCA component captures most of the explained variance, your threshold results in 0 components. You should select a higher value. N/A N/A N/A logger info N/A Selection by explained variance: %i components n_components_ N/A sel N/A slice n_components_ N/A N/A N/A N/A self n_components None N/A N/A sel N/A slice N/A self n_components N/A N/A N/A logger info N/A Selection by number: %i components N/A self n_components N/A N/A N/A N/A logger info N/A Using all PCA components: %i N/A len N/A pca components_ N/A sel N/A slice N/A len N/A pca components_ N/A N/A self pca_mean_ N/A pca mean_ N/A N/A self pca_components_ N/A pca components_ N/A N/A self pca_explained_variance_ exp_var N/A pca explained_variance_ N/A N/A self pca_components_ N/A N/A np sqrt N/A exp_var N/A N/A N/A None N/A pca N/A N/A self n_components_ N/A sel stop N/A N/A N/A self n_pca_components None N/A N/A N/A N/A self n_pca_components N/A len N/A self pca_components_ N/A N/A N/A self n_pca_components N/A len N/A self pca_components_ N/A N/A N/A self method fastica N/A sklearn.decomposition FastICA N/A ica N/A FastICA whiten False random_state random_state N/A self fit_params N/A N/A N/A ica fit N/A data N/A N/A N/A sel N/A N/A self unmixing_matrix_ N/A getattr ica components_ unmixing_matrix_ N/A N/A N/A N/A self method N/A infomax extended-infomax N/A N/A N/A self unmixing_matrix_ N/A infomax N/A data N/A N/A N/A sel random_state random_state N/A self fit_params N/A N/A self unmixing_matrix_ N/A N/A N/A np sqrt N/A exp_var N/A sel N/A N/A None N/A N/A N/A self mixing_matrix_ N/A N/A linalg pinv N/A self unmixing_matrix_ N/A N/A self current_fit fit_type N/A _transform N/A N/A self data N/A N/A N/A Compute sources from data (operates inplace) N/A fast_dot N/A _get_fast_dot N/A N/A N/A self pca_mean_ None N/A N/A data N/A N/A self pca_mean_ N/A N/A N/A None N/A pca_data N/A fast_dot N/A N/A self pca_components_ N/A N/A self n_components_ data N/A sources N/A fast_dot N/A self unmixing_matrix_ pca_data N/A sources N/A _transform_raw N/A N/A self raw start stop N/A N/A N/A N/A N/A hasattr self mixing_matrix_ N/A N/A N/A RuntimeError No fit available. Please fit ICA. N/A N/A start stop N/A _check_start_stop raw start stop N/A picks N/A pick_types N/A raw info include N/A self ch_names exclude bads meg False ref_meg False N/A N/A N/A len picks N/A len N/A self ch_names N/A N/A N/A RuntimeError N/A Raw doesn't match fitted data: %i channels fitted but %i channels supplied. 
Please provide Raw compatible with ica.ch_names N/A N/A len N/A self ch_names N/A len picks N/A N/A data _ N/A N/A self _pre_whiten N/A N/A raw N/A N/A picks N/A start stop N/A 0 N/A raw info picks N/A N/A N/A self _transform data N/A _transform_epochs N/A N/A self epochs concatenate N/A N/A N/A Aux method
         N/A N/A N/A hasattr self mixing_matrix_ N/A N/A N/A RuntimeError No fit available. Please fit ICA N/A picks N/A pick_types N/A epochs info include N/A self ch_names exclude bads meg False ref_meg False N/A N/A N/A len picks N/A len N/A self ch_names N/A N/A N/A RuntimeError N/A Epochs don't match fitted data: %i channels fitted but %i channels supplied. 
Please provide Epochs compatible with ica.ch_names N/A N/A len N/A self ch_names N/A len picks N/A data N/A N/A np hstack N/A N/A N/A epochs get_data N/A N/A N/A picks N/A N/A data _ N/A N/A self _pre_whiten data N/A epochs info picks N/A sources N/A N/A self _transform data N/A N/A concatenate N/A N/A sources N/A N/A np array N/A N/A np split sources N/A len N/A epochs events 1 N/A sources N/A _transform_evoked N/A N/A self evoked N/A N/A N/A Aux method
         N/A N/A N/A hasattr self mixing_matrix_ N/A N/A N/A RuntimeError No fit available. Please first fit ICA N/A picks N/A pick_types N/A evoked info include N/A self ch_names exclude bads meg False ref_meg False N/A N/A N/A len picks N/A len N/A self ch_names N/A N/A N/A RuntimeError N/A Evoked doesn't match fitted data: %i channels fitted but %i channels supplied. 
Please provide Evoked compatible with ica.ch_names N/A N/A len N/A self ch_names N/A len picks N/A N/A data _ N/A N/A self _pre_whiten N/A N/A evoked data N/A picks N/A evoked info picks N/A sources N/A N/A self _transform data N/A sources N/A get_sources N/A N/A self inst add_channels start stop N/A None None None N/A N/A Estimate sources given the unmixing matrix

        This method will return the sources in the container format passed.
        Typical usecases:

        1. pass Raw object to use `raw.plot` for ICA sources
        2. pass Epochs object to compute trial-based statistics in ICA space
        3. pass Evoked object to investigate time-locking in ICA space

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            Object to compute sources from and to represent sources in.
        add_channels : None | list of str
            Additional channels  to be added. Useful to e.g. compare sources
            with some reference. Defaults to None
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, the entire data will be used.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, the entire data will be used.

        Returns
        -------
        sources : instance of Raw, Epochs or Evoked
            The ICA sources time series.
         N/A N/A isinstance inst _BaseRaw N/A N/A sources N/A N/A self _sources_as_raw inst add_channels start stop N/A N/A N/A isinstance inst _BaseEpochs N/A N/A sources N/A N/A self _sources_as_epochs inst add_channels False N/A N/A N/A isinstance inst Evoked N/A N/A sources N/A N/A self _sources_as_evoked inst add_channels N/A N/A N/A ValueError Data input must be of Raw, Epochs or Evoked type N/A sources N/A _sources_as_raw N/A N/A self raw add_channels start stop N/A N/A N/A Aux method
         N/A sources N/A N/A self _transform_raw raw start start stop stop N/A N/A raw preload N/A N/A data N/A raw _data N/A N/A raw _data N/A out N/A N/A raw copy N/A N/A raw preload N/A N/A N/A raw _data data N/A N/A start stop N/A _check_start_stop raw start stop N/A N/A add_channels None N/A N/A raw_picked N/A N/A N/A N/A raw copy pick_channels add_channels N/A N/A data_ times_ N/A raw_picked N/A N/A N/A start stop N/A data_ N/A N/A np r_ N/A N/A sources data_ N/A N/A data_ sources N/A N/A _ times_ N/A raw N/A N/A 0 N/A start stop N/A N/A out _data data_ N/A N/A out _times times_ N/A N/A out _filenames N/A list N/A N/A out preload True N/A N/A out _first_samps N/A N/A np array N/A N/A N/A raw first_samp N/A start start 0 N/A N/A out _last_samps N/A N/A np array N/A N/A stop N/A N/A out first_samp stop N/A raw last_samp N/A N/A out _projector None N/A N/A N/A self _export_info N/A out info raw add_channels N/A N/A N/A out _update_times N/A out N/A _sources_as_epochs N/A N/A self epochs add_channels concatenate N/A N/A N/A Aux method N/A out N/A N/A epochs copy N/A sources N/A N/A self _transform_epochs epochs concatenate N/A N/A add_channels None N/A N/A picks N/A N/A N/A N/A epochs ch_names index k N/A k add_channels N/A N/A picks N/A N/A N/A out _data N/A N/A N/A len picks 0 N/A N/A np concatenate N/A sources N/A N/A N/A epochs get_data N/A N/A N/A picks axis 1 sources N/A N/A N/A self _export_info N/A out info epochs add_channels N/A N/A out preload True N/A N/A out _raw None N/A N/A out _projector None N/A out N/A _sources_as_evoked N/A N/A self evoked add_channels N/A N/A N/A Aux method
         N/A N/A add_channels None N/A N/A picks N/A N/A N/A N/A evoked ch_names index k N/A k add_channels N/A N/A picks N/A N/A sources N/A N/A self _transform_evoked evoked N/A N/A N/A len picks 1 N/A N/A data N/A N/A np r_ N/A N/A sources N/A N/A evoked data N/A picks N/A N/A data sources N/A out N/A N/A evoked copy N/A N/A out data data N/A N/A N/A self _export_info N/A out info evoked add_channels N/A out N/A _export_info N/A N/A self info container add_channels N/A N/A N/A Aux method
         N/A ch_names N/A N/A ch_info N/A info N/A chs N/A N/A ii N/A range N/A self n_components_ N/A N/A this_source N/A ICA %03d N/A ii 1 N/A N/A N/A ch_names append this_source N/A N/A N/A ch_info append N/A dict ch_name this_source cal 1 logno N/A ii 1 coil_type N/A FIFF FIFFV_COIL_NONE kind N/A FIFF FIFFV_MISC_CH coord_Frame N/A FIFF FIFFV_COORD_UNKNOWN loc N/A N/A np array N/A N/A 0.0 0.0 0.0 1.0 3 dtype f4 unit N/A FIFF FIFF_UNIT_NONE range 1.0 scanno N/A ii 1 unit_mul 0 N/A N/A add_channels None N/A N/A ch_names add_channels N/A ch_info N/A k N/A k N/A N/A container info N/A chs N/A N/A k N/A ch_name add_channels N/A N/A info N/A bads N/A N/A ch_names N/A k N/A k N/A self exclude N/A N/A info N/A projs N/A N/A N/A N/A info _update_redundant N/A N/A N/A info _check_consistency N/A score_sources N/A N/A self inst target score_func start stop l_freq h_freq verbose N/A None pearsonr None None None None None N/A N/A Assign score to components based on statistic or metric

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            The object to reconstruct the sources from.
        target : array-like | ch_name | None
            Signal to which the sources shall be compared. It has to be of
            the same shape as the sources. If some string is supplied, a
            routine will try to find a matching channel. If None, a score
            function expecting only one input-array argument must be used,
            for instance, scipy.stats.skew (default).
        score_func : callable | str label
            Callable taking as arguments either two input arrays
            (e.g. Pearson correlation) or one input
            array (e. g. skewness) and returns a float. For convenience the
            most common score_funcs are available via string labels:
            Currently, all distance metrics from scipy.spatial and All
            functions from scipy.stats taking compatible input arguments are
            supported. These function have been modified to support iteration
            over the rows of a 2D array.
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, data will be used from the first sample.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, data will be used to the last sample.
        l_freq : float
            Low pass frequency.
        h_freq : float
            High pass frequency.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.

        Returns
        -------
        scores : ndarray
            scores for each source as returned from score_func
         N/A N/A isinstance inst _BaseRaw N/A N/A sources N/A N/A self _transform_raw inst start stop N/A N/A N/A isinstance inst _BaseEpochs N/A N/A sources N/A N/A self _transform_epochs inst concatenate True N/A N/A N/A isinstance inst Evoked N/A N/A sources N/A N/A self _transform_evoked inst N/A N/A N/A ValueError Input must be of Raw, Epochs or Evoked type N/A N/A target None N/A N/A target N/A N/A self _check_target target inst start stop N/A N/A N/A N/A sources shape N/A -1 N/A N/A target shape N/A -1 N/A N/A N/A ValueError Sources and target do not have the samenumber of time slices. N/A N/A verbose None N/A N/A verbose N/A self verbose N/A N/A isinstance inst N/A _BaseRaw _BaseRaw N/A N/A N/A sources target N/A _band_pass_filter self sources target l_freq h_freq verbose N/A scores N/A _find_sources sources target score_func N/A scores N/A verbose _check_target N/A N/A self target inst start stop N/A N/A N/A Aux Method N/A N/A isinstance inst _BaseRaw N/A N/A N/A start stop N/A _check_start_stop inst start stop N/A N/A hasattr target ndim N/A N/A N/A N/A target ndim 2 N/A N/A target N/A N/A target reshape 1 N/A N/A target shape N/A -1 N/A N/A isinstance target string_types N/A N/A pick N/A _get_target_ch inst target N/A N/A target _ N/A inst N/A N/A pick N/A start stop N/A N/A N/A isinstance inst _BaseEpochs N/A N/A N/A isinstance target string_types N/A N/A pick N/A _get_target_ch inst target N/A target N/A N/A N/A inst get_data N/A N/A N/A pick N/A N/A hasattr target ndim N/A N/A N/A N/A N/A target ndim 3 N/A N/A min N/A target shape 1 N/A N/A target N/A N/A target ravel N/A N/A N/A isinstance inst Evoked N/A N/A N/A isinstance target string_types N/A N/A pick N/A _get_target_ch inst target N/A target N/A N/A inst data N/A pick N/A target N/A find_bads_ecg N/A N/A self inst ch_name threshold start stop l_freq h_freq method verbose N/A None None None None 8 16 ctps None N/A N/A Detect ECG related components using correlation

        Note. If no ECG channel is available, routine attempts to create
        an artificial ECG based on cross-channel averaging.

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            Object to compute sources from.
        ch_name : str
            The name of the channel to use for ECG peak detection.
            The argument is mandatory if the dataset contains no ECG
            channels.
        threshold : float
            The value above which a feature is classified as outlier. If
            method is 'ctps', defaults to 0.25, else defaults to 3.0.
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, data will be used from the first sample.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, data will be used to the last sample.
        l_freq : float
            Low pass frequency.
        h_freq : float
            High pass frequency.
        method : {'ctps', 'correlation'}
            The method used for detection. If 'ctps', cross-trial phase
            statistics [1] are used to detect ECG related components.
            Thresholding is then based on the significance value of a Kuiper
            statistic.
            If 'correlation', detection is based on Pearson correlation
            between the filtered data and the filtered ECG channel.
            Thresholding is based on iterative z-scoring. The above
            threshold components will be masked and the z-score will
            be recomputed until no supra-threshold component remains.
            Defaults to 'ctps'.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.

        Returns
        -------
        ecg_idx : list of int
            The indices of ECG related components.
        scores : np.ndarray of float, shape (``n_components_``)
            The correlation scores.

        See also
        --------
        find_bads_eog

        References
        ----------
        [1] Dammers, J., Schiek, M., Boers, F., Silex, C., Zvyagintsev,
            M., Pietrzyk, U., Mathiak, K., 2008. Integration of amplitude
            and phase statistics for complete artifact removal in independent
            components of neuromagnetic recordings. Biomedical
            Engineering, IEEE Transactions on 55 (10), 2353-2362.
         N/A N/A verbose None N/A N/A verbose N/A self verbose N/A idx_ecg N/A _get_ecg_channel_index ch_name inst N/A N/A idx_ecg None N/A N/A N/A verbose None N/A N/A verbose N/A self verbose N/A N/A ecg times N/A _make_ecg inst start stop verbose N/A ch_name ECG-MAG N/A N/A ecg N/A N/A inst ch_names N/A idx_ecg N/A N/A N/A inst ch_names N/A self ch_names N/A N/A extra_picks N/A pick_types N/A inst info meg False ecg True N/A ch_names_to_pick N/A N/A self ch_names N/A N/A N/A inst ch_names N/A k N/A k extra_picks N/A inst N/A N/A N/A N/A inst copy pick_channels ch_names_to_pick N/A N/A method ctps N/A N/A N/A threshold None N/A N/A threshold 0.25 N/A N/A isinstance inst _BaseRaw N/A N/A sources N/A N/A N/A N/A self get_sources N/A create_ecg_epochs inst get_data N/A N/A N/A isinstance inst _BaseEpochs N/A N/A sources N/A N/A N/A N/A self get_sources inst get_data N/A N/A N/A ValueError With `ctps` only Raw and Epochs input is supported N/A N/A _ p_vals _ N/A ctps sources N/A scores N/A N/A p_vals max -1 N/A ecg_idx N/A N/A N/A np where N/A scores threshold N/A 0 N/A N/A N/A method correlation N/A N/A N/A threshold None N/A N/A threshold 3.0 N/A scores N/A N/A self score_sources inst target ecg score_func pearsonr start start stop stop l_freq l_freq h_freq h_freq verbose verbose N/A ecg_idx N/A find_outliers scores threshold threshold N/A N/A N/A ValueError N/A Method "%s" not supported. method N/A ecg_idx N/A ecg_idx N/A N/A N/A N/A N/A N/A np abs N/A scores N/A ecg_idx argsort N/A -1 N/A N/A N/A hasattr self labels_ N/A N/A N/A self labels_ N/A dict N/A N/A N/A self labels_ N/A ecg N/A list ecg_idx N/A N/A N/A self labels_ N/A N/A ecg/%s ch_name N/A list ecg_idx N/A N/A N/A N/A self labels_ N/A ecg scores N/A verbose find_bads_eog N/A N/A self inst ch_name threshold start stop l_freq h_freq verbose N/A None 3.0 None None 1 10 None N/A N/A Detect EOG related components using correlation

        Detection is based on Pearson correlation between the
        filtered data and the filtered EOG channel.
        Thresholding is based on adaptive z-scoring. The above threshold
        components will be masked and the z-score will be recomputed
        until no supra-threshold component remains.

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            Object to compute sources from.
        ch_name : str
            The name of the channel to use for EOG peak detection.
            The argument is mandatory if the dataset contains no ECG
            channels.
        threshold : int | float
            The value above which a feature is classified as outlier.
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, data will be used from the first sample.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, data will be used to the last sample.
        l_freq : float
            Low pass frequency.
        h_freq : float
            High pass frequency.
        verbose : bool, str, int, or None
            If not None, override default verbose level (see mne.verbose).
            Defaults to self.verbose.

        Returns
        -------
        eog_idx : list of int
            The indices of EOG related components, sorted by score.
        scores : np.ndarray of float, shape (``n_components_``) | list of array
            The correlation scores.

        See Also
        --------
        find_bads_ecg
         N/A N/A verbose None N/A N/A verbose N/A self verbose N/A eog_inds N/A _get_eog_channel_index ch_name inst N/A N/A N/A len eog_inds 2 N/A N/A eog_inds N/A eog_inds N/A 1 N/A N/A N/A logger info N/A Using EOG channel %s N/A N/A inst ch_names N/A N/A eog_inds N/A 0 N/A N/A scores eog_idx N/A N/A N/A N/A eog_chs N/A N/A N/A inst ch_names N/A k N/A k eog_inds N/A targets N/A N/A N/A self _check_target k inst start stop N/A k eog_chs N/A N/A N/A inst ch_names N/A self ch_names N/A N/A inst N/A N/A N/A N/A inst copy pick_channels N/A self ch_names N/A N/A N/A hasattr self labels_ N/A N/A N/A self labels_ N/A dict N/A N/A ii N/A eog_ch target N/A enumerate N/A zip eog_chs targets N/A N/A scores N/A N/A N/A self score_sources inst target target score_func pearsonr start start stop stop l_freq l_freq h_freq h_freq verbose verbose N/A this_idx N/A find_outliers N/A scores N/A -1 threshold threshold N/A eog_idx N/A this_idx N/A N/A N/A self labels_ N/A N/A N/A eog/%i/ ii eog_ch N/A list this_idx N/A scores_ N/A N/A np concatenate N/A N/A N/A scores N/A ii N/A inds N/A N/A ii inds N/A enumerate eog_idx N/A eog_idx_ N/A N/A N/A np concatenate eog_idx N/A N/A N/A N/A N/A N/A np abs scores_ argsort N/A -1 N/A eog_idx_unique N/A list N/A N/A np unique eog_idx_ N/A eog_idx N/A N/A i eog_idx_ N/A N/A N/A i eog_idx_unique N/A N/A N/A N/A eog_idx append i N/A N/A N/A eog_idx_unique remove i N/A N/A N/A len scores 1 N/A N/A scores N/A scores N/A 0 N/A N/A N/A self labels_ N/A eog N/A list eog_idx N/A N/A N/A N/A self labels_ N/A eog scores N/A verbose apply N/A N/A self inst include exclude n_pca_components start stop copy N/A None None None None None None N/A N/A Remove selected components from the signal.

        Given the unmixing matrix, transform data,
        zero out components, and inverse transform the data.
        This procedure will reconstruct M/EEG signals from which
        the dynamics described by the excluded components is subtracted.

        Parameters
        ----------
        inst : instance of Raw, Epochs or Evoked
            The data to be processed.
        include : array_like of int.
            The indices referring to columns in the ummixing matrix. The
            components to be kept.
        exclude : array_like of int.
            The indices referring to columns in the ummixing matrix. The
            components to be zeroed out.
        n_pca_components : int | float | None
            The number of PCA components to be kept, either absolute (int)
            or percentage of the explained variance (float). If None (default),
            all PCA components will be used.
        start : int | float | None
            First sample to include. If float, data will be interpreted as
            time in seconds. If None, data will be used from the first sample.
        stop : int | float | None
            Last sample to not include. If float, data will be interpreted as
            time in seconds. If None, data will be used to the last sample.
        copy : bool
            This parameter has been deprecated and will be removed in 0.13.
            Use inst.copy() instead.
            Whether to return a new instance or modify in place.
         N/A inst N/A _check_copy_dep inst copy N/A N/A isinstance inst _BaseRaw N/A N/A out N/A N/A self _apply_raw raw inst include include exclude exclude n_pca_components n_pca_components start start stop stop N/A N/A N/A isinstance inst _BaseEpochs N/A N/A out N/A N/A self _apply_epochs epochs inst include include exclude exclude n_pca_components n_pca_components N/A N/A N/A isinstance inst Evoked N/A N/A out N/A N/A self _apply_evoked evoked inst include include exclude exclude n_pca_components n_pca_components N/A N/A N/A ValueError Data input must be of Raw, Epochs or Evoked type N/A out N/A _apply_raw N/A N/A self raw include exclude n_pca_components start stop N/A N/A N/A Aux method N/A N/A N/A raw preload N/A N/A N/A ValueError Raw data must be preloaded to apply ICA N/A N/A exclude None N/A N/A exclude N/A list N/A set N/A self exclude N/A N/A exclude N/A list N/A set N/A N/A self exclude exclude N/A N/A n_pca_components None N/A N/A N/A self n_pca_components n_pca_components N/A N/A start stop N/A _check_start_stop raw start stop N/A picks N/A pick_types N/A raw info meg False include N/A self ch_names exclude bads ref_meg False N/A data N/A N/A raw N/A N/A picks N/A start stop N/A 0 N/A N/A data _ N/A N/A self _pre_whiten data N/A raw info picks N/A data N/A N/A self _pick_sources data include exclude N/A N/A raw N/A N/A picks N/A start stop data N/A raw N/A _apply_epochs N/A N/A self epochs include exclude n_pca_components N/A N/A N/A N/A N/A epochs preload N/A N/A N/A ValueError Epochs must be preloaded to apply ICA N/A picks N/A pick_types N/A epochs info meg False ref_meg False include N/A self ch_names exclude bads N/A N/A N/A len picks N/A len N/A self ch_names N/A N/A N/A RuntimeError N/A Epochs don't match fitted data: %i channels fitted but %i channels supplied. 
Please provide Epochs compatible with ica.ch_names N/A N/A len N/A self ch_names N/A len picks N/A N/A n_pca_components None N/A N/A N/A self n_pca_components n_pca_components N/A data N/A N/A np hstack N/A N/A N/A epochs get_data N/A N/A N/A picks N/A N/A data _ N/A N/A self _pre_whiten data N/A epochs info picks N/A data N/A N/A self _pick_sources data include include exclude exclude N/A N/A N/A epochs _data N/A N/A N/A picks N/A N/A np array N/A N/A np split data N/A len N/A epochs events 1 N/A N/A epochs preload True N/A epochs N/A _apply_evoked N/A N/A self evoked include exclude n_pca_components N/A N/A N/A picks N/A pick_types N/A evoked info meg False ref_meg False include N/A self ch_names exclude bads N/A N/A N/A len picks N/A len N/A self ch_names N/A N/A N/A RuntimeError N/A Evoked does not match fitted data: %i channels fitted but %i channels supplied. 
Please provide an Evoked object that's compatible with ica.ch_names N/A N/A len N/A self ch_names N/A len picks N/A N/A n_pca_components None N/A N/A N/A self n_pca_components n_pca_components N/A data N/A N/A evoked data N/A picks N/A N/A data _ N/A N/A self _pre_whiten data N/A evoked info picks N/A data N/A N/A self _pick_sources data include include exclude exclude N/A N/A N/A evoked data N/A picks data N/A evoked N/A _pick_sources N/A N/A self data include exclude N/A N/A N/A Aux function N/A fast_dot N/A _get_fast_dot N/A N/A exclude None N/A N/A exclude N/A self exclude N/A N/A exclude N/A list N/A set N/A N/A self exclude N/A list exclude N/A _n_pca_comp N/A N/A self _check_n_pca_components N/A self n_pca_components N/A N/A N/A N/A self n_components_ _n_pca_comp N/A self max_pca_components N/A N/A N/A ValueError n_pca_components must be >= n_components and <= max_pca_components. N/A n_components N/A self n_components_ N/A N/A N/A logger info N/A Transforming to ICA space (%i components) n_components N/A N/A N/A self pca_mean_ None N/A N/A data N/A N/A self pca_mean_ N/A N/A N/A None N/A sel_keep N/A N/A np arange n_components N/A N/A include N/A None N/A N/A N/A sel_keep N/A N/A np unique include N/A N/A N/A exclude N/A None N/A N/A N/A sel_keep N/A N/A np setdiff1d N/A N/A np arange n_components exclude N/A N/A N/A logger info N/A Zeroing out %i ICA components N/A n_components N/A len sel_keep N/A unmixing N/A N/A np eye _n_pca_comp N/A N/A unmixing N/A N/A n_components N/A n_components N/A self unmixing_matrix_ N/A unmixing N/A N/A np dot unmixing N/A N/A self pca_components_ N/A _n_pca_comp N/A mixing N/A N/A np eye _n_pca_comp N/A N/A mixing N/A N/A n_components N/A n_components N/A self mixing_matrix_ N/A mixing N/A N/A np dot N/A N/A N/A self pca_components_ N/A _n_pca_comp T mixing N/A N/A _n_pca_comp n_components N/A N/A sel_keep N/A N/A np concatenate N/A sel_keep N/A range n_components _n_pca_comp N/A proj_mat N/A N/A np dot N/A mixing N/A N/A N/A sel_keep N/A unmixing N/A N/A sel_keep N/A N/A data N/A fast_dot proj_mat data N/A N/A N/A self pca_mean_ None N/A N/A data N/A N/A self pca_mean_ N/A N/A N/A None N/A N/A N/A self noise_cov None N/A N/A data N/A self _pre_whitener N/A N/A data N/A fast_dot N/A N/A linalg pinv N/A self _pre_whitener data N/A data N/A save N/A N/A self fname N/A N/A N/A Store ICA solution into a fiff file.

        Parameters
        ----------
        fname : str
            The absolute path of the file name to save the ICA solution into.
            The file name should end with -ica.fif or -ica.fif.gz.
         N/A N/A N/A self current_fit unfitted N/A N/A N/A RuntimeError No fit available. Please first fit ICA N/A N/A check_fname fname ICA N/A -ica.fif -ica.fif.gz N/A N/A N/A logger info N/A Writing ica solution to %s... fname N/A fid N/A start_file fname N/A N/A N/A N/A _write_ica fid self N/A N/A N/A Exception N/A N/A N/A N/A os remove fname N/A N/A N/A end_file fid N/A self N/A verbose copy N/A N/A self N/A N/A N/A Copy the ICA object

        Returns
        -------
        ica : instance of ICA
            The copied object.
         N/A N/A deepcopy self N/A plot_components N/A N/A self picks ch_type res layout vmin vmax cmap sensors colorbar title show outlines contours image_interp head_pos N/A None None 64 None None None RdBu_r True False None True head 6 bilinear None N/A N/A Project unmixing matrix on interpolated sensor topography.

        Parameters
        ----------
        picks : int | array-like | None
            The indices of the sources to be plotted.
            If None all are plotted in batches of 20.
        ch_type : 'mag' | 'grad' | 'planar1' | 'planar2' | 'eeg' | None
            The channel type to plot. For 'grad', the gradiometers are
            collected in pairs and the RMS for each pair is plotted.
            If None, then first available channel type from order given
            above is used. Defaults to None.
        res : int
            The resolution of the topomap image (n pixels along each side).
        layout : None | Layout
            Layout instance specifying sensor positions (does not need to
            be specified for Neuromag data). If possible, the correct layout is
            inferred from the data.
        vmin : float | callable
            The value specfying the lower bound of the color range.
            If None, and vmax is None, -vmax is used. Else np.min(data).
            If callable, the output equals vmin(data).
        vmax : float | callable
            The value specfying the upper bound of the color range.
            If None, the maximum absolute value is used. If vmin is None,
            but vmax is not, defaults to np.min(data).
            If callable, the output equals vmax(data).
        cmap : matplotlib colormap
            Colormap.
        sensors : bool | str
            Add markers for sensor locations to the plot. Accepts matplotlib
            plot format string (e.g., 'r+' for red plusses). If True, a circle
            will be used (via .add_artist). Defaults to True.
        colorbar : bool
            Plot a colorbar.
        title : str | None
            Title to use.
        show : bool
            Call pyplot.show() at the end.
        outlines : 'head' | 'skirt' | dict | None
            The outlines to be drawn. If 'head', the default head scheme will
            be drawn. If 'skirt' the head scheme will be drawn, but sensors are
            allowed to be plotted outside of the head circle. If dict, each key
            refers to a tuple of x and y positions, the values in 'mask_pos'
            will serve as image mask, and the 'autoshrink' (bool) field will
            trigger automated shrinking of the positions due to points outside
            the outline. Alternatively, a matplotlib patch object can be passed
            for advanced masking options, either directly or as a function that
            returns patches (required for multi-axis plots). If None, nothing
            will be drawn. Defaults to 'head'.
        contours : int | False | None
            The number of contour lines to draw. If 0, no contours will
            be drawn.
        image_interp : str
            The image interpolation to be used. All matplotlib options are
            accepted.
        head_pos : dict | None
            If None (default), the sensors are positioned such that they span
            the head circle. If dict, can have entries 'center' (tuple) and
            'scale' (tuple) for what the center and scale of the head should be
            relative to the electrode locations.

        Returns
        -------
        fig : instance of matplotlib.pyplot.Figure
            The figure object.
         N/A N/A plot_ica_components self picks picks ch_type ch_type res res layout layout vmax vmax cmap cmap sensors sensors colorbar colorbar title title show show outlines outlines contours contours image_interp image_interp head_pos head_pos N/A plot_sources N/A N/A self inst picks exclude start stop title show block N/A None None None None None True False N/A N/A Plot estimated latent sources given the unmixing matrix.

        Typical usecases:

        1. plot evolution of latent sources over time based on (Raw input)
        2. plot latent source around event related time windows (Epochs input)
        3. plot time-locking in ICA space (Evoked input)


        Parameters
        ----------
        inst : instance of mne.io.Raw, mne.Epochs, mne.Evoked
            The object to plot the sources from.
        picks : ndarray | None.
            The components to be displayed. If None, plot will show the
            sources in the order as fitted.
        exclude : array_like of int
            The components marked for exclusion. If None (default), ICA.exclude
            will be used.
        start : int
            X-axis start index. If None from the beginning.
        stop : int
            X-axis stop index. If None to the end.
        title : str | None
            The figure title. If None a default is provided.
        show : bool
            If True, all open plots will be shown.
        block : bool
            Whether to halt program execution until the figure is closed.
            Useful for interactive selection of components in raw and epoch
            plotter. For evoked, this parameter has no effect. Defaults to
            False.

        Returns
        -------
        fig : instance of pyplot.Figure
            The figure.

        Notes
        -----
        For raw and epoch instances, it is possible to select components for
        exclusion by clicking on the line. The selected components are added to
        ``ica.exclude`` on close. The independent components can be viewed as
        topographies by clicking on the component name on the left of of the
        main axes. The topography view tries to infer the correct electrode
        layout from the data. This should work at least for Neuromag data.

        .. versionadded:: 0.10.0
         N/A N/A plot_ica_sources self inst inst picks picks exclude exclude title title start start stop stop show show block block N/A plot_scores N/A N/A self scores exclude labels axhline title figsize show N/A None None None ICA component scores N/A 12 6 True N/A N/A Plot scores related to detected components.

        Use this function to assess how well your score describes outlier
        sources and how well you were detecting them.

        Parameters
        ----------
        scores : array_like of float, shape (n ica components,) | list of array
            Scores based on arbitrary metric to characterize ICA components.
        exclude : array_like of int
            The components marked for exclusion. If None (default), ICA.exclude
            will be used.
        labels : str | list | 'ecg' | 'eog' | None
            The labels to consider for the axes tests. Defaults to None.
            If list, should match the outer shape of `scores`.
            If 'ecg' or 'eog', the ``labels_`` attributes will be looked up.
            Note that '/' is used internally for sublabels specifying ECG and
            EOG channels.
        axhline : float
            Draw horizontal line to e.g. visualize rejection threshold.
        title : str
            The figure title.
        figsize : tuple of int
            The figure size. Defaults to (12, 6).
        show : bool
            If True, all open plots will be shown.

        Returns
        -------
        fig : instance of matplotlib.pyplot.Figure
            The figure object.
         N/A N/A plot_ica_scores ica self scores scores exclude exclude labels labels axhline axhline title title figsize figsize show show N/A plot_overlay N/A N/A self inst exclude picks start stop title show N/A None None None None None True N/A N/A Overlay of raw and cleaned signals given the unmixing matrix.

        This method helps visualizing signal quality and artifact rejection.

        Parameters
        ----------
        inst : instance of mne.io.Raw or mne.Evoked
            The signals to be compared given the ICA solution. If Raw input,
            The raw data are displayed before and after cleaning. In a second
            panel the cross channel average will be displayed. Since dipolar
            sources will be canceled out this display is sensitive to
            artifacts. If evoked input, butterfly plots for clean and raw
            signals will be superimposed.
        exclude : array_like of int
            The components marked for exclusion. If None (default), ICA.exclude
            will be used.
        picks : array-like of int | None (default)
            Indices of channels to include (if None, all channels
            are used that were included on fitting).
        start : int
            X-axis start index. If None from the beginning.
        stop : int
            X-axis stop index. If None to the end.
        title : str
            The figure title.
        show : bool
            If True, all open plots will be shown.

        Returns
        -------
        fig : instance of pyplot.Figure
            The figure.
         N/A N/A plot_ica_overlay self inst inst exclude exclude picks picks start start stop stop title title show show N/A detect_artifacts N/A N/A self raw start_find stop_find ecg_ch ecg_score_func ecg_criterion eog_ch eog_score_func eog_criterion skew_criterion kurt_criterion var_criterion add_nodes N/A None None None pearsonr 0.1 None pearsonr 0.1 -1 -1 0 None N/A N/A Run ICA artifacts detection workflow.

        Note. This is still experimental and will most likely change. Over
        the next releases. For maximum control use the workflow exposed in
        the examples.

        Hints and caveats:
        - It is highly recommended to bandpass filter ECG and EOG
        data and pass them instead of the channel names as ecg_ch and eog_ch
        arguments.
        - please check your results. Detection by kurtosis and variance
        may be powerful but misclassification of brain signals as
        noise cannot be precluded.
        - Consider using shorter times for start_find and stop_find than
        for start and stop. It can save you much time.

        Example invocation (taking advantage of the defaults)::

            ica.detect_artifacts(ecg_channel='MEG 1531', eog_channel='EOG 061')

        Parameters
        ----------
        raw : instance of Raw
            Raw object to draw sources from.
        start_find : int | float | None
            First sample to include for artifact search. If float, data will be
            interpreted as time in seconds. If None, data will be used from the
            first sample.
        stop_find : int | float | None
            Last sample to not include for artifact search. If float, data will
            be interpreted as time in seconds. If None, data will be used to
            the last sample.
        ecg_ch : str | ndarray | None
            The `target` argument passed to ica.find_sources_raw. Either the
            name of the ECG channel or the ECG time series. If None, this step
            will be skipped.
        ecg_score_func : str | callable
            The `score_func` argument passed to ica.find_sources_raw. Either
            the name of function supported by ICA or a custom function.
        ecg_criterion : float | int | list-like | slice
            The indices of the sorted skewness scores. If float, sources with
            scores smaller than the criterion will be dropped. Else, the scores
            sorted in descending order will be indexed accordingly.
            E.g. range(2) would return the two sources with the highest score.
            If None, this step will be skipped.
        eog_ch : list | str | ndarray | None
            The `target` argument or the list of target arguments subsequently
            passed to ica.find_sources_raw. Either the name of the vertical EOG
            channel or the corresponding EOG time series. If None, this step
            will be skipped.
        eog_score_func : str | callable
            The `score_func` argument passed to ica.find_sources_raw. Either
            the name of function supported by ICA or a custom function.
        eog_criterion : float | int | list-like | slice
            The indices of the sorted skewness scores. If float, sources with
            scores smaller than the criterion will be dropped. Else, the scores
            sorted in descending order will be indexed accordingly.
            E.g. range(2) would return the two sources with the highest score.
            If None, this step will be skipped.
        skew_criterion : float | int | list-like | slice
            The indices of the sorted skewness scores. If float, sources with
            scores smaller than the criterion will be dropped. Else, the scores
            sorted in descending order will be indexed accordingly.
            E.g. range(2) would return the two sources with the highest score.
            If None, this step will be skipped.
        kurt_criterion : float | int | list-like | slice
            The indices of the sorted skewness scores. If float, sources with
            scores smaller than the criterion will be dropped. Else, the scores
            sorted in descending order will be indexed accordingly.
            E.g. range(2) would return the two sources with the highest score.
            If None, this step will be skipped.
        var_criterion : float | int | list-like | slice
            The indices of the sorted skewness scores. If float, sources with
            scores smaller than the criterion will be dropped. Else, the scores
            sorted in descending order will be indexed accordingly.
            E.g. range(2) would return the two sources with the highest score.
            If None, this step will be skipped.
        add_nodes : list of ica_nodes
            Additional list if tuples carrying the following parameters:
            (name : str, target : str | array, score_func : callable,
            criterion : float | int | list-like | slice). This parameter is a
            generalization of the artifact specific parameters above and has
            the same structure. Example:
            add_nodes=('ECG phase lock', ECG 01', my_phase_lock_function, 0.5)

        Returns
        -------
        self : instance of ICA
            The ica object with the detected artifact indices marked for
            exclusion
         N/A N/A N/A logger info     Searching for artifacts... N/A N/A _detect_artifacts self raw raw start_find start_find stop_find stop_find ecg_ch ecg_ch ecg_score_func ecg_score_func ecg_criterion ecg_criterion eog_ch eog_ch eog_score_func eog_score_func eog_criterion eog_criterion skew_criterion skew_criterion kurt_criterion kurt_criterion var_criterion var_criterion add_nodes add_nodes N/A self N/A _check_n_pca_components N/A N/A self _n_pca_comp verbose N/A None N/A N/A Aux function N/A N/A isinstance _n_pca_comp float N/A N/A _n_pca_comp N/A N/A N/A N/A N/A N/A N/A self pca_explained_variance_ N/A N/A N/A self pca_explained_variance_ sum cumsum _n_pca_comp sum N/A N/A N/A logger info N/A Selected %i PCA components by explained variance _n_pca_comp N/A N/A N/A _n_pca_comp None N/A N/A _n_pca_comp N/A self max_pca_components N/A N/A N/A _n_pca_comp N/A self n_components_ N/A N/A _n_pca_comp N/A self n_components_ N/A _n_pca_comp N/A verbose N/A _check_start_stop N/A N/A raw start stop N/A N/A N/A Aux function N/A N/A N/A N/A N/A isinstance c int N/A c None c N/A N/A N/A raw time_as_index c N/A 0 N/A c N/A start stop N/A ica_find_ecg_events N/A N/A raw ecg_source event_id tstart l_freq h_freq qrs_threshold verbose N/A 999 0.0 5 35 auto None N/A N/A Find ECG peaks from one selected ICA source

    Parameters
    ----------
    raw : instance of Raw
        Raw object to draw sources from.
    ecg_source : ndarray
        ICA source resembling ECG to find peaks from.
    event_id : int
        The index to assign to found events.
    tstart : float
        Start detection after tstart seconds. Useful when beginning
        of run is noisy.
    l_freq : float
        Low pass frequency.
    h_freq : float
        High pass frequency.
    qrs_threshold : float | str
        Between 0 and 1. qrs detection threshold. Can also be "auto" to
        automatically choose the threshold that generates a reasonable
        number of heartbeats (40-160 beats / min).
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    ecg_events : array
        Events.
    ch_ECG : string
        Name of channel used.
    average_pulse : float.
        Estimated average pulse.
     N/A N/A N/A logger info Using ICA source to identify heart beats N/A ecg_events N/A qrs_detector N/A N/A raw info N/A sfreq N/A N/A ecg_source ravel tstart tstart thresh_value qrs_threshold l_freq l_freq h_freq h_freq N/A n_events N/A len ecg_events N/A ecg_events N/A N/A np c_ N/A N/A N/A ecg_events N/A raw first_samp N/A N/A np zeros n_events N/A event_id N/A N/A np ones n_events N/A ecg_events N/A verbose ica_find_eog_events N/A N/A raw eog_source event_id l_freq h_freq verbose N/A None 998 1 10 None N/A N/A Locate EOG artifacts from one selected ICA source

    Parameters
    ----------
    raw : instance of Raw
        The raw data.
    eog_source : ndarray
        ICA source resembling EOG to find peaks from.
    event_id : int
        The index to assign to found events.
    l_freq : float
        Low cut-off frequency in Hz.
    h_freq : float
        High cut-off frequency in Hz.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    eog_events : array
        Events
     N/A eog_events N/A _find_eog_events N/A eog_source N/A N/A np newaxis event_id event_id l_freq l_freq h_freq h_freq sampling_rate N/A N/A raw info N/A sfreq first_samp N/A raw first_samp N/A eog_events N/A verbose _get_target_ch N/A N/A container target N/A N/A N/A Aux function N/A picks N/A pick_channels N/A container ch_names include N/A target N/A ref_picks N/A pick_types N/A container info meg False eeg False ref_meg True N/A N/A N/A len ref_picks 0 N/A N/A picks N/A list N/A N/A set picks N/A set ref_picks N/A N/A N/A len picks 0 N/A N/A N/A ValueError N/A %s not in channel list (%s) N/A target N/A container ch_names N/A picks N/A _find_sources N/A N/A sources target score_func N/A N/A N/A Aux function N/A N/A isinstance score_func string_types N/A N/A score_func N/A N/A N/A get_score_funcs get score_func score_func N/A N/A N/A callable score_func N/A N/A N/A ValueError N/A %s is not a valid score_func. score_func N/A scores N/A N/A target None N/A score_func sources target N/A score_func sources 1 N/A scores N/A _serialize N/A N/A dict_ outer_sep inner_sep N/A ; : N/A N/A Aux function N/A s N/A N/A N/A key value N/A N/A dict_ items N/A N/A N/A callable value N/A N/A value N/A value __name__ N/A N/A N/A isinstance value int N/A N/A value N/A int value N/A N/A N/A isinstance value dict N/A N/A N/A subkey subvalue N/A N/A value items N/A N/A N/A isinstance subvalue list N/A N/A N/A N/A len subvalue 0 N/A N/A N/A isinstance N/A subvalue N/A 0 N/A int N/A np integer N/A N/A N/A value N/A subkey N/A N/A int i N/A i subvalue N/A cls N/A N/A N/A np random RandomState Covariance N/A N/A N/A isinstance value cls N/A N/A value N/A cls __name__ N/A N/A N/A s append N/A N/A key inner_sep N/A N/A json dumps value N/A N/A N/A outer_sep join s N/A _deserialize N/A N/A str_ outer_sep inner_sep N/A ; : N/A N/A Aux Function N/A out N/A N/A mapping N/A N/A str_ split outer_sep N/A N/A N/A k v N/A N/A mapping split inner_sep 1 N/A vv N/A N/A json loads v N/A N/A out N/A k N/A N/A N/A isinstance vv text_type vv N/A str vv N/A out N/A _write_ica N/A N/A fid ica N/A N/A N/A Write an ICA object

    Parameters
    ----------
    fid: file
        The file descriptor
    ica:
        The instance of ICA to write
     N/A ica_init N/A dict noise_cov N/A ica noise_cov n_components N/A ica n_components n_pca_components N/A ica n_pca_components max_pca_components N/A ica max_pca_components current_fit N/A ica current_fit N/A N/A N/A ica info None N/A N/A N/A start_block fid N/A FIFF FIFFB_MEAS N/A N/A write_id fid N/A FIFF FIFF_BLOCK_ID N/A N/A N/A N/A ica info N/A meas_id None N/A N/A N/A write_id fid N/A FIFF FIFF_PARENT_BLOCK_ID N/A N/A ica info N/A meas_id N/A N/A write_meas_info fid N/A ica info N/A N/A end_block fid N/A FIFF FIFFB_MEAS N/A N/A start_block fid N/A FIFF FIFFB_MNE_ICA N/A N/A write_string fid N/A FIFF FIFF_MNE_ICA_INTERFACE_PARAMS N/A _serialize ica_init N/A N/A N/A ica ch_names None N/A N/A N/A write_name_list fid N/A FIFF FIFF_MNE_ROW_NAMES N/A ica ch_names N/A n_samples N/A getattr ica n_samples_ None N/A ica_misc N/A n_samples_ labels_ N/A N/A n_samples None None N/A int n_samples N/A getattr ica labels_ None N/A N/A write_string fid N/A FIFF FIFF_MNE_ICA_INTERFACE_PARAMS N/A _serialize ica_init N/A N/A write_string fid N/A FIFF FIFF_MNE_ICA_MISC_PARAMS N/A _serialize ica_misc N/A N/A write_double_matrix fid N/A FIFF FIFF_MNE_ICA_WHITENER N/A ica _pre_whitener N/A N/A write_double_matrix fid N/A FIFF FIFF_MNE_ICA_PCA_COMPONENTS N/A ica pca_components_ N/A N/A write_double_matrix fid N/A FIFF FIFF_MNE_ICA_PCA_MEAN N/A ica pca_mean_ N/A N/A write_double_matrix fid N/A FIFF FIFF_MNE_ICA_PCA_EXPLAINED_VAR N/A ica pca_explained_variance_ N/A N/A write_double_matrix fid N/A FIFF FIFF_MNE_ICA_MATRIX N/A ica unmixing_matrix_ N/A N/A write_int fid N/A FIFF FIFF_MNE_ICA_BADS N/A ica exclude N/A N/A end_block fid N/A FIFF FIFFB_MNE_ICA N/A read_ica N/A N/A fname N/A N/A N/A Restore ICA solution from fif file.

    Parameters
    ----------
    fname : str
        Absolute path to fif file containing ICA matrices.
        The file name should end with -ica.fif or -ica.fif.gz.

    Returns
    -------
    ica : instance of ICA
        The ICA estimator.
     N/A N/A check_fname fname ICA N/A -ica.fif -ica.fif.gz N/A N/A N/A logger info N/A Reading %s ... fname N/A N/A fid tree _ N/A fiff_open fname N/A N/A N/A N/A info meas N/A read_meas_info fid tree clean_bads True N/A N/A N/A ValueError N/A N/A N/A N/A logger info Could not find the measurement info. 
Functionality requiring the info won't be available. N/A info None N/A N/A N/A info N/A filename fname N/A ica_data N/A dir_tree_find tree N/A FIFF FIFFB_MNE_ICA N/A N/A N/A len ica_data 0 N/A N/A ica_data N/A dir_tree_find tree 123 N/A N/A N/A len ica_data 0 N/A N/A N/A N/A fid close N/A N/A ValueError Could not find ICA data N/A my_ica_data N/A ica_data N/A 0 N/A d N/A my_ica_data N/A directory N/A N/A kind N/A d kind N/A pos N/A d pos N/A N/A kind N/A FIFF FIFF_MNE_ICA_INTERFACE_PARAMS N/A N/A tag N/A read_tag fid pos N/A ica_init N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ROW_NAMES N/A N/A tag N/A read_tag fid pos N/A ch_names N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_WHITENER N/A N/A tag N/A read_tag fid pos N/A pre_whitener N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_PCA_COMPONENTS N/A N/A tag N/A read_tag fid pos N/A pca_components N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_PCA_EXPLAINED_VAR N/A N/A tag N/A read_tag fid pos N/A pca_explained_variance N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_PCA_MEAN N/A N/A tag N/A read_tag fid pos N/A pca_mean N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_MATRIX N/A N/A tag N/A read_tag fid pos N/A unmixing_matrix N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_BADS N/A N/A tag N/A read_tag fid pos N/A exclude N/A tag data N/A N/A N/A kind N/A FIFF FIFF_MNE_ICA_MISC_PARAMS N/A N/A tag N/A read_tag fid pos N/A ica_misc N/A tag data N/A N/A N/A fid close N/A N/A ica_init ica_misc N/A N/A _deserialize k N/A k N/A ica_init ica_misc N/A current_fit N/A N/A ica_init pop current_fit N/A N/A N/A ica_init N/A noise_cov N/A Covariance __name__ N/A N/A N/A N/A logger info Reading whitener drawn from noise covariance ... N/A N/A N/A logger info Now restoring ICA solution ... f N/A N/A x N/A N/A N/A N/A N/A x astype N/A np float64 N/A N/A ica_init N/A dict N/A N/A k v N/A N/A k v N/A N/A ica_init items N/A k N/A _get_args N/A ICA __init__ N/A ica N/A ICA ica_init N/A N/A ica current_fit current_fit N/A N/A ica ch_names N/A N/A ch_names split : N/A N/A ica _pre_whitener N/A f pre_whitener N/A N/A ica pca_mean_ N/A f pca_mean N/A N/A ica pca_components_ N/A f pca_components N/A N/A ica n_components_ N/A N/A unmixing_matrix shape N/A 0 N/A N/A ica pca_explained_variance_ N/A f pca_explained_variance N/A N/A ica unmixing_matrix_ N/A f unmixing_matrix N/A N/A ica mixing_matrix_ N/A N/A linalg pinv N/A ica unmixing_matrix_ N/A N/A ica exclude N/A N/A exclude None N/A N/A list exclude N/A N/A ica info info N/A N/A n_samples_ ica_misc N/A N/A N/A ica n_samples_ N/A ica_misc N/A n_samples_ N/A N/A labels_ ica_misc N/A N/A N/A ica labels_ N/A ica_misc N/A labels_ N/A N/A N/A logger info Ready. N/A ica N/A verbose N/A _ica_node N/A namedtuple Node name target score_func criterion _detect_artifacts N/A N/A ica raw start_find stop_find ecg_ch ecg_score_func ecg_criterion eog_ch eog_score_func eog_criterion skew_criterion kurt_criterion var_criterion add_nodes N/A N/A N/A Aux Function scipy stats N/A nodes N/A N/A N/A ecg_ch None N/A N/A nodes N/A N/A _ica_node ECG ecg_ch ecg_score_func ecg_criterion N/A N/A eog_ch N/A None N/A N/A N/A N/A N/A isinstance eog_ch list N/A N/A eog_ch N/A eog_ch N/A N/A idx ch N/A enumerate eog_ch N/A N/A nodes N/A N/A _ica_node N/A EOG %02d idx ch eog_score_func eog_criterion N/A N/A skew_criterion None N/A N/A nodes N/A N/A _ica_node skewness None N/A stats skew skew_criterion N/A N/A kurt_criterion None N/A N/A nodes N/A N/A _ica_node kurtosis None N/A stats kurtosis kurt_criterion N/A N/A var_criterion None N/A N/A nodes N/A N/A _ica_node variance None N/A np var var_criterion N/A N/A add_nodes None N/A N/A N/A N/A nodes extend add_nodes N/A node nodes N/A N/A scores N/A N/A ica score_sources raw start start_find stop stop_find target N/A node target score_func N/A node score_func N/A N/A isinstance N/A node criterion float N/A N/A found N/A list N/A N/A N/A np where N/A N/A N/A np abs scores N/A node criterion N/A 0 N/A N/A found N/A list N/A N/A np atleast_1d N/A N/A N/A N/A abs scores argsort N/A N/A node criterion N/A case N/A N/A len found N/A N/A N/A len found 1 s N/A node name N/A N/A N/A logger info N/A     found %s artifact%s by %s case N/A N/A ica exclude found N/A N/A N/A logger info N/A Artifact indices found:
     N/A N/A N/A str N/A ica exclude strip [] N/A N/A N/A len N/A set N/A ica exclude N/A len N/A ica exclude N/A N/A N/A N/A logger info     Removing duplicate indices... N/A N/A ica exclude N/A list N/A set N/A ica exclude N/A N/A N/A logger info Ready. N/A run_ica N/A N/A raw n_components max_pca_components n_pca_components noise_cov random_state picks start stop start_find stop_find ecg_ch ecg_score_func ecg_criterion eog_ch eog_score_func eog_criterion skew_criterion kurt_criterion var_criterion add_nodes verbose N/A 100 64 None None None None None None None None pearsonr 0.1 None pearsonr 0.1 -1 -1 0 None None N/A N/A Run ICA decomposition on raw data and identify artifact sources

    This function implements an automated artifact removal work flow.

    Hints and caveats:

        - It is highly recommended to bandpass filter ECG and EOG
          data and pass them instead of the channel names as ecg_ch and eog_ch
          arguments.
        - Please check your results. Detection by kurtosis and variance
          can be powerful but misclassification of brain signals as
          noise cannot be precluded. If you are not sure set those to None.
        - Consider using shorter times for start_find and stop_find than
          for start and stop. It can save you much time.

    Example invocation (taking advantage of defaults)::

        ica = run_ica(raw, n_components=.9, start_find=10000, stop_find=12000,
                      ecg_ch='MEG 1531', eog_ch='EOG 061')

    Parameters
    ----------
    raw : instance of Raw
        The raw data to decompose.
    n_components : int | float | None
        The number of components used for ICA decomposition. If int, it must be
        smaller then max_pca_components. If None, all PCA components will be
        used. If float between 0 and 1 components can will be selected by the
        cumulative percentage of explained variance.
    max_pca_components : int | None
        The number of components used for PCA decomposition. If None, no
        dimension reduction will be applied and max_pca_components will equal
        the number of channels supplied on decomposing data.
    n_pca_components
        The number of PCA components used after ICA recomposition. The ensuing
        attribute allows to balance noise reduction against potential loss of
        features due to dimensionality reduction. If greater than
        ``self.n_components_``, the next ``'n_pca_components'`` minus
        ``'n_components_'`` PCA components will be added before restoring the
        sensor space data. The attribute gets updated each time the according
        parameter for in .pick_sources_raw or .pick_sources_epochs is changed.
    noise_cov : None | instance of mne.cov.Covariance
        Noise covariance used for whitening. If None, channels are just
        z-scored.
    random_state : None | int | instance of np.random.RandomState
        np.random.RandomState to initialize the FastICA estimation.
        As the estimation is non-deterministic it can be useful to
        fix the seed to have reproducible results.
    picks : array-like of int
        Channels to be included. This selection remains throughout the
        initialized ICA solution. If None only good data channels are used.
    start : int | float | None
        First sample to include for decomposition. If float, data will be
        interpreted as time in seconds. If None, data will be used from the
        first sample.
    stop : int | float | None
        Last sample to not include for decomposition. If float, data will be
        interpreted as time in seconds. If None, data will be used to the
        last sample.
    start_find : int | float | None
        First sample to include for artifact search. If float, data will be
        interpreted as time in seconds. If None, data will be used from the
        first sample.
    stop_find : int | float | None
        Last sample to not include for artifact search. If float, data will be
        interpreted as time in seconds. If None, data will be used to the last
        sample.
    ecg_ch : str | ndarray | None
        The ``target`` argument passed to ica.find_sources_raw. Either the
        name of the ECG channel or the ECG time series. If None, this step
        will be skipped.
    ecg_score_func : str | callable
        The ``score_func`` argument passed to ica.find_sources_raw. Either
        the name of function supported by ICA or a custom function.
    ecg_criterion : float | int | list-like | slice
        The indices of the sorted skewness scores. If float, sources with
        scores smaller than the criterion will be dropped. Else, the scores
        sorted in descending order will be indexed accordingly.
        E.g. range(2) would return the two sources with the highest score.
        If None, this step will be skipped.
    eog_ch : list | str | ndarray | None
        The ``target`` argument or the list of target arguments subsequently
        passed to ica.find_sources_raw. Either the name of the vertical EOG
        channel or the corresponding EOG time series. If None, this step
        will be skipped.
    eog_score_func : str | callable
        The ``score_func`` argument passed to ica.find_sources_raw. Either
        the name of function supported by ICA or a custom function.
    eog_criterion : float | int | list-like | slice
        The indices of the sorted skewness scores. If float, sources with
        scores smaller than the criterion will be dropped. Else, the scores
        sorted in descending order will be indexed accordingly.
        E.g. range(2) would return the two sources with the highest score.
        If None, this step will be skipped.
    skew_criterion : float | int | list-like | slice
        The indices of the sorted skewness scores. If float, sources with
        scores smaller than the criterion will be dropped. Else, the scores
        sorted in descending order will be indexed accordingly.
        E.g. range(2) would return the two sources with the highest score.
        If None, this step will be skipped.
    kurt_criterion : float | int | list-like | slice
        The indices of the sorted skewness scores. If float, sources with
        scores smaller than the criterion will be dropped. Else, the scores
        sorted in descending order will be indexed accordingly.
        E.g. range(2) would return the two sources with the highest score.
        If None, this step will be skipped.
    var_criterion : float | int | list-like | slice
        The indices of the sorted skewness scores. If float, sources with
        scores smaller than the criterion will be dropped. Else, the scores
        sorted in descending order will be indexed accordingly.
        E.g. range(2) would return the two sources with the highest score.
        If None, this step will be skipped.
    add_nodes : list of ica_nodes
        Additional list if tuples carrying the following parameters:
        (name : str, target : str | array, score_func : callable,
        criterion : float | int | list-like | slice). This parameter is a
        generalization of the artifact specific parameters above and has
        the same structure. Example::

            add_nodes=('ECG phase lock', ECG 01', my_phase_lock_function, 0.5)

    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    ica : instance of ICA
        The ica object with detected artifact sources marked for exclusion
     N/A ica N/A ICA n_components n_components max_pca_components max_pca_components n_pca_components n_pca_components noise_cov noise_cov random_state random_state verbose verbose N/A N/A N/A ica fit raw start start stop stop picks picks N/A N/A N/A logger info N/A %s ica N/A N/A N/A logger info     Now searching for artifacts... N/A N/A _detect_artifacts ica ica raw raw start_find start_find stop_find stop_find ecg_ch ecg_ch ecg_score_func ecg_score_func ecg_criterion ecg_criterion eog_ch eog_ch eog_score_func eog_score_func eog_criterion eog_criterion skew_criterion skew_criterion kurt_criterion kurt_criterion var_criterion var_criterion add_nodes add_nodes N/A ica N/A verbose _band_pass_filter N/A N/A ica sources target l_freq h_freq verbose N/A None N/A N/A N/A N/A l_freq None N/A h_freq None N/A N/A N/A N/A logger info ... filtering ICA sources N/A sources N/A band_pass_filter sources N/A N/A ica info N/A sfreq l_freq h_freq method fft verbose verbose N/A N/A N/A logger info ... filtering target N/A target N/A band_pass_filter target N/A N/A ica info N/A sfreq l_freq h_freq method fft verbose verbose N/A N/A N/A N/A l_freq None N/A h_freq None N/A N/A N/A ValueError Must specify both pass bands N/A N/A sources target N/A verbose _get_ica_map N/A N/A ica components N/A None N/A N/A Get ICA topomap for components N/A fast_dot N/A _get_fast_dot N/A N/A components None N/A N/A components N/A list N/A range N/A ica n_components_ N/A maps N/A fast_dot N/A N/A N/A ica mixing_matrix_ N/A N/A N/A components T N/A N/A ica pca_components_ N/A N/A ica n_components_ N/A maps N/A _find_max_corrs N/A N/A all_maps target threshold N/A N/A N/A Compute correlations between template and target components N/A all_corrs N/A N/A compute_corr target N/A subj T N/A subj all_maps N/A abs_corrs N/A N/A N/A np abs a N/A a all_corrs N/A corr_polarities N/A N/A N/A np sign a N/A a all_corrs N/A N/A threshold 1 N/A N/A max_corrs N/A N/A list N/A N/A N/A np nonzero N/A s_corr threshold N/A 0 N/A s_corr abs_corrs N/A N/A max_corrs N/A N/A list N/A find_outliers s_corr threshold threshold N/A s_corr abs_corrs N/A am N/A N/A l N/A i N/A N/A l i_s N/A zip abs_corrs max_corrs N/A i i_s N/A median_corr_with_target N/A N/A N/A len am 0 N/A N/A np median am 0 N/A polarities N/A N/A l N/A i N/A N/A l i_s N/A zip corr_polarities max_corrs N/A i i_s N/A maxmaps N/A N/A l N/A i N/A N/A l i_s N/A zip all_maps max_corrs N/A i i_s N/A N/A N/A len maxmaps 0 N/A N/A N/A N/A 0 0 N/A N/A newtarget N/A N/A np zeros N/A N/A maxmaps N/A 0 size N/A std_of_maps N/A N/A np std N/A N/A np asarray maxmaps N/A mean_of_maps N/A N/A np std N/A N/A np asarray maxmaps N/A N/A maxmap polarity N/A zip maxmaps polarities N/A N/A newtarget N/A N/A N/A maxmap std_of_maps mean_of_maps polarity N/A newtarget N/A len maxmaps N/A newtarget std_of_maps N/A sim_i_o N/A N/A np abs N/A N/A N/A np corrcoef target newtarget N/A N/A 1 0 N/A N/A newtarget median_corr_with_target sim_i_o max_corrs N/A _plot_corrmap N/A N/A data subjs indices ch_type ica label show outlines layout cmap contours template N/A True N/A N/A Customized ica.plot_components for corrmap N/A N/A template N/A N/A title Detected components N/A N/A label None N/A N/A title N/A  of type  label N/A N/A title Supplied template N/A picks N/A list N/A range N/A len data N/A p 20 N/A N/A N/A len picks p N/A N/A n_components N/A len picks N/A figs N/A N/A _plot_corrmap N/A data N/A k N/A k p N/A subjs N/A k N/A k p N/A indices N/A k N/A k p ch_type ica label show outlines outlines layout layout cmap cmap contours contours N/A k N/A range 0 n_components p N/A figs N/A N/A N/A N/A np isscalar picks N/A N/A picks N/A picks N/A N/A data_picks pos merge_grads names _ N/A _prepare_topo_plot ica ch_type layout N/A N/A pos outlines N/A _check_outlines pos outlines N/A data N/A N/A np atleast_2d data N/A data N/A data N/A N/A N/A data_picks N/A N/A fig axes N/A _prepare_trellis N/A len picks max_col 5 N/A N/A N/A fig suptitle title N/A merge_grads N/A channels.layout _merge_grad_data N/A N/A ii data_ ax subject idx N/A zip picks data axes subjs indices N/A N/A template N/A N/A ttl N/A N/A Subj. {0}, IC {1} format subject idx N/A N/A N/A ax set_title ttl fontsize 12 N/A data_ N/A merge_grads N/A _merge_grad_data data_ data_ N/A N/A vmin_ vmax_ N/A _setup_vmin_vmax data_ None None N/A N/A N/A plot_topomap N/A N/A data_ flatten pos vmin vmin_ vmax vmax_ res 64 axes ax cmap cmap outlines outlines image_mask None contours contours show False image_interp bilinear N/A 0 N/A N/A _hide_frame ax N/A N/A tight_layout fig fig N/A N/A N/A fig subplots_adjust top 0.8 N/A N/A N/A N/A fig canvas draw N/A N/A plt_show show N/A fig N/A corrmap N/A N/A icas template threshold label ch_type plot show verbose outlines layout sensors contours cmap N/A auto None eeg True True None head None True 6 None N/A N/A Find similar Independent Components across subjects by map similarity.

    Corrmap (Viola et al. 2009 Clin Neurophysiol) identifies the best group
    match to a supplied template. Typically, feed it a list of fitted ICAs and
    a template IC, for example, the blink for the first subject, to identify
    specific ICs across subjects.

    The specific procedure consists of two iterations. In a first step, the
    maps best correlating with the template are identified. In the step, the
    analysis is repeated with the mean of the maps identified in the first
    stage.

    Run with `plot` and `show` set to `True` and `label=False` to find
    good parameters. Then, run with labelling enabled to apply the
    labelling in the IC objects. (Running with both `plot` and `labels`
    off does nothing.)

    Outputs a list of fitted ICAs with the indices of the marked ICs in a
    specified field.

    The original Corrmap website: www.debener.de/corrmap/corrmapplugin1.html

    Parameters
    ----------
    icas : list of mne.preprocessing.ICA
        A list of fitted ICA objects.
    template : tuple | np.ndarray, shape (n_components,)
        Either a tuple with two elements (int, int) representing the list
        indices of the set from which the template should be chosen, and the
        template. E.g., if template=(1, 0), the first IC of the 2nd ICA object
        is used.
        Or a numpy array whose size corresponds to each IC map from the
        supplied maps, in which case this map is chosen as the template.
    threshold : "auto" | list of float | float
        Correlation threshold for identifying ICs
        If "auto", search for the best map by trying all correlations between
        0.6 and 0.95. In the original proposal, lower values are considered,
        but this is not yet implemented.
        If list of floats, search for the best map in the specified range of
        correlation strengths. As correlation values, must be between 0 and 1
        If float > 0, select ICs correlating better than this.
        If float > 1, use find_outliers to identify ICs within subjects (not in
        original Corrmap)
        Defaults to "auto".
    label : None | str
        If not None, categorised ICs are stored in a dictionary "labels_" under
        the given name. Preexisting entries will be appended to (excluding
        repeats), not overwritten. If None, a dry run is performed and
        the supplied ICs are not changed.
    ch_type : 'mag' | 'grad' | 'planar1' | 'planar2' | 'eeg'
            The channel type to plot. Defaults to 'eeg'.
    plot : bool
        Should constructed template and selected maps be plotted? Defaults
        to True.
    show : bool
        Show figures if True.
    layout : None | Layout | list of Layout
        Layout instance specifying sensor positions (does not need to be
        specified for Neuromag data). Or a list of Layout if projections
        are from different sensor types.
    cmap : None | matplotlib colormap
        Colormap for the plot. If ``None``, defaults to 'Reds_r' for norm data,
        otherwise to 'RdBu_r'.
    sensors : bool | str
        Add markers for sensor locations to the plot. Accepts matplotlib plot
        format string (e.g., 'r+' for red plusses). If True, a circle will be
        used (via .add_artist). Defaults to True.
    outlines : 'head' | dict | None
        The outlines to be drawn. If 'head', a head scheme will be drawn. If
        dict, each key refers to a tuple of x and y positions. The values in
        'mask_pos' will serve as image mask. If None, nothing will be drawn.
        Defaults to 'head'. If dict, the 'autoshrink' (bool) field will
        trigger automated shrinking of the positions due to points outside the
        outline. Moreover, a matplotlib patch object can be passed for
        advanced masking options, either directly or as a function that returns
        patches (required for multi-axis plots).
    contours : int | False | None
        The number of contour lines to draw. If 0, no contours will be drawn.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    template_fig : fig
        Figure showing the template.
    labelled_ics : fig
        Figure showing the labelled ICs in all ICA decompositions.
     N/A N/A N/A isinstance plot bool N/A N/A N/A ValueError `plot` must be of type `bool` N/A N/A threshold auto N/A N/A threshold N/A N/A N/A np arange 60 95 dtype N/A np float64 100.0 N/A all_maps N/A N/A _get_ica_map ica N/A ica icas N/A N/A N/A len template 2 N/A N/A target N/A N/A all_maps N/A N/A template N/A 0 N/A N/A template N/A 1 N/A is_subject True N/A N/A N/A N/A N/A template ndim 1 N/A N/A len template N/A N/A N/A all_maps N/A 0 shape N/A 1 N/A N/A target template N/A is_subject False N/A N/A N/A ValueError `template` must be a length-2 tuple or an array the size of the ICA maps. N/A N/A template_fig labelled_ics N/A None None N/A N/A plot True N/A N/A is_subject N/A N/A ttl N/A N/A Template from subj. {0} format N/A str N/A template N/A 0 N/A template_fig N/A N/A N/A icas N/A N/A template N/A 0 plot_components picks N/A template N/A 1 ch_type ch_type title ttl outlines outlines cmap cmap contours contours layout layout show show N/A N/A template_fig N/A _plot_corrmap N/A template N/A 0 N/A 0 ch_type N/A N/A N/A icas N/A 0 copy Template outlines outlines cmap cmap contours contours layout layout show show template True N/A N/A N/A template_fig subplots_adjust top 0.8 N/A N/A N/A N/A template_fig canvas draw N/A N/A isinstance threshold N/A int float N/A N/A N/A N/A len all_maps 0 N/A N/A N/A N/A logger info No component detected using find_outliers. Consider using threshold="auto" N/A icas N/A N/A nt mt s mx N/A _find_max_corrs all_maps target threshold N/A N/A N/A N/A len threshold 1 N/A N/A paths N/A N/A _find_max_corrs all_maps target t N/A t threshold N/A N/A nt mt s mx N/A paths N/A N/A N/A np argmax N/A N/A path N/A 2 N/A path paths N/A N/A isinstance threshold N/A int float N/A N/A N/A N/A N/A len all_maps 0 N/A N/A len nt 0 N/A N/A N/A threshold 1 N/A N/A N/A N/A logger info No component detected using find_outliers. Consider using threshold="auto" N/A icas N/A N/A nt mt s mx N/A _find_max_corrs all_maps nt threshold N/A N/A N/A N/A len threshold 1 N/A N/A paths N/A N/A _find_max_corrs all_maps nt t N/A t threshold N/A N/A nt mt s mx N/A paths N/A N/A N/A np argmax N/A N/A path N/A 1 N/A path paths N/A N/A allmaps indices subjs nones N/A N/A list N/A _ N/A range 4 N/A N/A N/A logger info N/A Median correlation with constructed map: %0.3f mt N/A N/A plot True N/A N/A N/A N/A logger info Displaying selected ICs per subject. N/A N/A ii N/A ica max_corr N/A enumerate N/A zip icas mx N/A N/A N/A N/A label None N/A N/A hasattr ica labels_ N/A N/A N/A ica labels_ N/A dict N/A N/A N/A len max_corr 0 N/A N/A N/A isinstance N/A max_corr N/A 0 N/A np ndarray N/A N/A max_corr N/A max_corr N/A 0 N/A N/A label None N/A N/A N/A N/A ica labels_ N/A label N/A list N/A set N/A N/A list max_corr N/A N/A N/A ica labels_ get label N/A list N/A N/A plot True N/A N/A N/A N/A allmaps extend N/A _get_ica_map ica components max_corr N/A N/A N/A subjs extend N/A N/A ii N/A len max_corr N/A N/A N/A indices extend max_corr N/A N/A N/A N/A label None N/A label N/A ica labels_ N/A N/A N/A N/A ica labels_ N/A label N/A list N/A N/A N/A nones append ii N/A N/A N/A len nones 0 N/A N/A N/A N/A logger info At least 1 IC detected for each subject. N/A N/A N/A N/A logger info N/A N/A No maps selected for subject(s)  N/A N/A ,  join N/A N/A str x N/A x nones , consider a more liberal threshold. N/A N/A plot True N/A N/A labelled_ics N/A _plot_corrmap allmaps subjs indices ch_type ica label outlines outlines cmap cmap contours contours layout layout show show N/A N/A template_fig labelled_ics N/A N/A None N/A verbose