Module Import alias ImportFrom alias ImportFrom alias Import alias identifier Import alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body 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 decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Raise Call NameLoad Str For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body AugAssignAdd NameStore BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias Return Call NameLoad NameLoad keyword NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad NameLoad NameStore body Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad orelse Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str Str If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str body AugAssignAdd NameStore Str orelse If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str body AugAssignAdd NameStore Str If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Raise Call NameLoad Str If NameLoad body AugAssignSub SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num AugAssignSub SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad Index TupleLoad Num Num AugAssignDiv NameStore NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Slice Num Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Slice Num BinOpDiv Num Num AugAssignMult SubscriptStore NameLoad ExtSlice Slice Slice Num Num Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad Str body Expr Str If UnaryOpNot CompareLtELtE Num NameLoad Num body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot CompareLtELtE Num NameLoad Num body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot CompareLtELtE Num NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore BinOpDiv BinOpSub NameLoad BinOpDiv BinOpAdd NameLoad NameLoad Num BinOpSub NameLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad keyword Num AugAssignMult NameStore BinOpMult Num NameLoad Assign NameStore Call NameLoad BinOpDiv Num BinOpAdd Num NameLoad BinOpDiv Num BinOpAdd Num NameLoad AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpSub SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult Num NameLoad BinOpSub SubscriptLoad NameLoad ExtSlice Slice Index Num BinOpMult Num NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Num Num Num Num Assign NameStore BinOpAdd Num Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword Str Assign NameStore ListComp SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index Str comprehension NameStore NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If BinOpMod NameLoad Num body Assign TupleStore NameStore NameStore TupleLoad Call NameLoad BinOpAdd NameLoad Num Call NameLoad NameLoad If CompareLt BinOpMult NameLoad NameLoad NameLoad body AugAssignAdd NameStore Num orelse Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num NameLoad Call AttributeLoad NameLoad attr Num Num NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice NameLoad Assign TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad keyword Num Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore BinOpDiv Num BinOpAdd BinOpAdd Num NameLoad NameLoad Assign NameStore BinOpDiv Num BinOpAdd BinOpAdd Num NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpMult NameLoad NameLoad AugAssignMult NameStore NameLoad AugAssignMult NameStore NameLoad AugAssignAdd NameStore Num AugAssignAdd NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad BinOpSub NameLoad BinOpMult Num NameLoad BinOpSub NameLoad BinOpMult Num NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Num Num Num Num Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Expr Str Assign NameStore Call AttributeLoad Str attr ListLoad Str Str Str Str If CompareNotIn NameLoad TupleLoad NameLoad Str Str Str Str body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpAnd NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad UnaryOpNot NameLoad Assign NameStore BoolOpAnd NameLoad UnaryOpNot NameLoad Assign NameStore CompareIn Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore CompareIn AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BoolOpOr CompareIn AttributeLoad NameLoad attr NameLoad BoolOpAnd CompareIn AttributeLoad NameLoad attr NameLoad Call NameLoad GeneratorExp CompareIn NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad GeneratorExp CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BoolOpAnd CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpAnd NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad UnaryOpNot NameLoad If BoolOpAnd CompareEq NameLoad Str UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareEq NameLoad Str UnaryOpNot NameLoad body Raise Call NameLoad Str If BoolOpOr BoolOpAnd NameLoad CompareIs NameLoad NameLoad BoolOpAnd Call NameLoad ListLoad NameLoad NameLoad CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr NameLoad BoolOpAnd NameLoad CompareEq NameLoad Str body Assign NameStore Str orelse If BoolOpOr NameLoad BoolOpAnd NameLoad CompareEq NameLoad Str body If Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num attr Str body Assign NameStore Str orelse Assign NameStore Str orelse If BoolOpOr BoolOpAnd NameLoad CompareIn NameLoad ListLoad NameLoad Str BoolOpAnd NameLoad CompareEq NameLoad Str body If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str Return Call NameLoad NameLoad keyword NameLoad orelse If NameLoad body Assign NameStore Str orelse If NameLoad body Assign NameStore Str orelse If CompareLtE NameLoad Num body Assign NameStore Str orelse If CompareGt NameLoad Num body Assign NameStore Str orelse Return NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str ImportFrom alias FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Num If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body If CompareLtE Call NameLoad NameLoad Num body Assign NameStore Num Assign NameStore Num orelse Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad If CompareGt NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareLt NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad CompareLt NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad AugAssignMult NameStore BinOpSub Num NameLoad AugAssignMult NameStore BinOpSub Num NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad comprehension NameStore NameLoad Assign NameStore ListComp SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias alias Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Slice Num comprehension NameStore NameLoad If BoolOpOr CompareEq Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr If BoolOpOr CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword Str AugAssignSub NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareLt Call AttributeLoad NameLoad attr NameLoad Num UnaryOpNot NameLoad body Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str comprehension NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad Call NameLoad CompareLt NameLoad Num attr keyword Num attr Index Num Raise Call NameLoad BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Assign TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad NameLoad BinOpSub BinOpDiv AttributeLoad NameLoad attr Num NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpPow SubscriptLoad NameLoad Index NameLoad Num BinOpPow SubscriptLoad NameLoad Index NameLoad Num AugAssignDiv NameStore NameLoad AugAssignDiv NameStore NameLoad AugAssignAdd NameStore BinOpSub Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore BinOpSub Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub BinOpMult NameLoad Num Num Assign NameStore BinOpSub BinOpMult NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpPow NameLoad Num BinOpPow NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad ListLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If NameLoad body Assign NameStore TupleLoad Call NameLoad NameLoad Num Num Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad NameLoad NameLoad attr NameLoad attr keyword Num Return TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad ListLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad BinOpFloorDiv Call NameLoad NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num NameLoad NameLoad Str NameLoad body Expr Str ImportFrom alias If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareIs NameLoad NameLoad body Assign NameStore ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad attr If CompareIsNot NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad AugAssignDiv NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num AugAssignDiv NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num orelse For NameStore ListLoad NameLoad NameLoad body AugAssignSub NameStore Call AttributeLoad NameLoad attr Num AugAssignDiv NameStore BinOpSub Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad attr keyword NameLoad Assign NameStore TupleLoad Num Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign TupleStore NameStore NameStore ListComp Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num comprehension NameStore ListLoad NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list
N/A N/A logging collections defaultdict itertools combinations N/A os.path op N/A numpy np transforms _polar_to_cartesian _cartesian_to_sphere bem fit_sphere_to_headshape io.pick pick_types io.constants FIFF io.meas_info Info utils _clean_names externals.six.moves map Layout N/A object N/A N/A Sensor layouts

    Layouts are typically loaded from a file using read_layout. Only use this
    class directly if you're constructing a new layout.

    Parameters
    ----------
    box : tuple of length 4
        The box dimension (x_min, x_max, y_min, y_max).
    pos : array, shape=(n_channels, 4)
        The positions of the channels in 2d (x, y, width, height).
    names : list
        The channel names.
    ids : list
        The channel ids.
    kind : str
        The type of Layout (e.g. 'Vectorview-all').
     __init__ N/A N/A self box pos names ids kind N/A N/A N/A N/A self box box N/A N/A self pos pos N/A N/A self names names N/A N/A self ids ids N/A N/A self kind kind N/A save N/A N/A self fname N/A N/A N/A Save Layout to disk

        Parameters
        ----------
        fname : str
            The file name (e.g. 'my_layout.lout').

        See Also
        --------
        read_layout
         N/A x N/A N/A self pos N/A N/A N/A 0 N/A y N/A N/A self pos N/A N/A N/A 1 N/A width N/A N/A self pos N/A N/A N/A 2 N/A height N/A N/A self pos N/A N/A N/A 3 N/A N/A N/A fname endswith .lout N/A N/A out_str N/A %8.2f %8.2f %8.2f %8.2f
 N/A self box N/A N/A N/A N/A fname endswith .lay N/A N/A out_str N/A N/A N/A ValueError Unknown layout type. Should be of type .lout or .lay. N/A ii N/A range N/A N/A x shape N/A 0 N/A N/A out_str N/A %03d %8.2f %8.2f %8.2f %8.2f %s
 N/A N/A N/A self ids N/A ii N/A x N/A ii N/A y N/A ii N/A width N/A ii N/A height N/A ii N/A N/A self names N/A ii N/A f N/A open fname w N/A N/A N/A f write out_str N/A N/A N/A f close N/A __repr__ N/A N/A self N/A N/A N/A N/A <Layout | %s - Channels: %s ...> N/A N/A self kind N/A N/A ,  join N/A N/A self names N/A 3 N/A plot N/A N/A self show N/A True N/A N/A Plot the sensor positions.

        Parameters
        ----------
        show : bool
            Show figure if True. Defaults to True.

        Returns
        -------
        fig : instance of matplotlib figure
            Figure containing the sensor topography.

        Notes
        -----

        .. versionadded:: 0.12.0

         viz.topomap plot_layout N/A N/A plot_layout self show show N/A N/A _read_lout N/A N/A fname N/A N/A N/A Aux function N/A N/A open fname f N/A N/A box_line N/A N/A f readline N/A box N/A tuple N/A map float N/A N/A box_line split N/A N/A names pos ids N/A N/A N/A N/A N/A line f N/A N/A splits N/A N/A line split N/A N/A N/A len splits 7 N/A N/A N/A cid x y dx dy chkind nb splits N/A name N/A N/A chkind nb N/A N/A N/A cid x y dx dy name splits N/A N/A N/A pos append N/A N/A np array N/A x y dx dy dtype N/A np float N/A N/A N/A names append name N/A N/A N/A ids append N/A int cid N/A pos N/A N/A np array pos N/A N/A box pos names ids N/A _read_lay N/A N/A fname N/A N/A N/A Aux function N/A N/A open fname f N/A N/A box None N/A N/A names pos ids N/A N/A N/A N/A N/A line f N/A N/A splits N/A N/A line split N/A N/A N/A len splits 7 N/A N/A N/A cid x y dx dy chkind nb splits N/A name N/A N/A chkind nb N/A N/A N/A cid x y dx dy name splits N/A N/A N/A pos append N/A N/A np array N/A x y dx dy dtype N/A np float N/A N/A N/A names append name N/A N/A N/A ids append N/A int cid N/A pos N/A N/A np array pos N/A N/A box pos names ids N/A read_layout N/A N/A kind path scale N/A None True N/A N/A Read layout from a file

    Parameters
    ----------
    kind : str
        The name of the .lout file (e.g. kind='Vectorview-all' for
        'Vectorview-all.lout').

    path : str | None
        The path of the folder containing the Layout file. Defaults to the
        mne/channels/data/layouts folder inside your mne-python installation.

    scale : bool
        Apply useful scaling for out the box plotting using layout.pos.
        Defaults to True.

    Returns
    -------
    layout : instance of Layout
        The layout.

    See Also
    --------
    Layout.save
     N/A N/A path None N/A N/A path N/A N/A op join N/A N/A op dirname __file__ data layouts N/A N/A N/A N/A N/A kind endswith .lout N/A N/A op exists N/A N/A op join path N/A kind .lout N/A N/A kind .lout N/A N/A N/A N/A N/A N/A kind endswith .lay N/A N/A op exists N/A N/A op join path N/A kind .lay N/A N/A kind .lay N/A N/A N/A kind endswith .lout N/A N/A fname N/A N/A op join path kind N/A kind N/A kind N/A -5 N/A N/A box pos names ids N/A _read_lout fname N/A N/A N/A N/A kind endswith .lay N/A N/A fname N/A N/A op join path kind N/A kind N/A kind N/A -4 N/A N/A box pos names ids N/A _read_lay fname N/A N/A N/A kind endswith .lay N/A N/A N/A ValueError Unknown layout type. Should be of type .lout or .lay. N/A scale N/A N/A N/A pos N/A N/A N/A 0 N/A N/A np min N/A pos N/A N/A N/A 0 N/A N/A pos N/A N/A N/A 1 N/A N/A np min N/A pos N/A N/A N/A 1 N/A scaling N/A N/A max N/A N/A np max N/A pos N/A N/A N/A 0 N/A N/A np max N/A pos N/A N/A N/A 1 N/A pos N/A N/A 0 2 N/A pos scaling N/A N/A pos N/A N/A N/A 2 0.03 N/A N/A pos N/A N/A N/A 2 N/A 0.97 1.03 N/A N/A pos N/A N/A N/A 2 0.94 N/A N/A Layout box box pos pos names names kind kind ids ids N/A make_eeg_layout N/A N/A info radius width height exclude N/A 0.5 None None bads N/A N/A Create .lout file from EEG electrode digitization

    Parameters
    ----------
    info : instance of Info
        Measurement info (e.g., raw.info).
    radius : float
        Viewport radius as a fraction of main figure height. Defaults to 0.5.
    width : float | None
        Width of sensor axes as a fraction of main figure height. By default,
        this will be the maximum width possible without axes overlapping.
    height : float | None
        Height of sensor axes as a fraction of main figure height. By default,
        this will be the maximum height possible withough axes overlapping.
    exclude : list of string | str
        List of channels to exclude. If empty do not exclude any.
        If 'bads', exclude channels in info['bads'] (default).

    Returns
    -------
    layout : Layout
        The generated Layout.

    See Also
    --------
    make_grid_layout, generate_2d_layout
     N/A N/A N/A 0 radius 0.5 N/A N/A N/A ValueError The radius parameter should be between 0 and 0.5. N/A N/A N/A width None N/A N/A 0 width 1.0 N/A N/A N/A ValueError The width parameter should be between 0 and 1. N/A N/A N/A height None N/A N/A 0 height 1.0 N/A N/A N/A ValueError The height parameter should be between 0 and 1. N/A picks N/A pick_types info meg False eeg True ref_meg False exclude exclude N/A loc2d N/A _auto_topomap_coords info picks N/A names N/A N/A N/A N/A info N/A chs N/A i N/A ch_name N/A i picks N/A loc2d_min N/A N/A np min loc2d axis 0 N/A loc2d_max N/A N/A np max loc2d axis 0 N/A loc2d N/A N/A loc2d N/A N/A loc2d_max loc2d_min 2.0 N/A loc2d_max loc2d_min N/A N/A N/A width None N/A height None N/A N/A N/A width height N/A _box_size loc2d width height padding 0.1 N/A loc2d N/A 2 radius N/A scaling N/A min N/A 1 N/A 1.0 width N/A 1 N/A 1.0 height N/A loc2d scaling N/A width scaling N/A height scaling N/A loc2d 0.5 N/A n_channels N/A N/A loc2d shape N/A 0 N/A pos N/A N/A np c_ N/A N/A N/A N/A loc2d N/A N/A N/A 0 N/A 0.5 width N/A N/A loc2d N/A N/A N/A 1 N/A 0.5 height N/A width N/A N/A np ones n_channels N/A height N/A N/A np ones n_channels N/A box N/A 0 1 0 1 N/A ids N/A 1 N/A N/A np arange n_channels N/A layout N/A Layout box box pos pos names names kind EEG ids ids N/A layout N/A make_grid_layout N/A N/A info picks n_col N/A None None N/A N/A  Generate .lout file for custom data, i.e., ICA sources

    Parameters
    ----------
    info : instance of Info | None
        Measurement info (e.g., raw.info). If None, default names will be
        employed.
    picks : array-like of int | None
        The indices of the channels to be included. If None, al misc channels
        will be included.
    n_col : int | None
        Number of columns to generate. If None, a square grid will be produced.

    Returns
    -------
    layout : Layout
        The generated layout.

    See Also
    --------
    make_eeg_layout, generate_2d_layout
     N/A N/A picks None N/A N/A picks N/A pick_types info misc True ref_meg False exclude bads N/A names N/A N/A N/A N/A info N/A chs N/A k N/A ch_name N/A k picks N/A N/A names N/A N/A N/A ValueError No misc data channels found. N/A ids N/A list N/A range N/A len picks N/A size N/A len picks N/A N/A n_col None N/A N/A n_row n_col N/A N/A np sqrt size N/A N/A n_col 1 N/A N/A N/A n_col n_row N/A N/A int N/A n_col 1 N/A int n_row N/A N/A N/A n_col n_row size N/A N/A n_row 1 N/A N/A n_row N/A int N/A N/A np ceil N/A size N/A float n_col N/A N/A x y N/A N/A np meshgrid N/A N/A np linspace -0.5 0.5 n_col N/A N/A np linspace -0.5 0.5 n_row N/A N/A x y N/A N/A N/A N/A x ravel N/A size N/A N/A N/A y ravel N/A size N/A N/A width height N/A _box_size N/A N/A np c_ N/A N/A x y padding 0.1 N/A N/A border_x border_y N/A 0.01 0.01 N/A x_scaling N/A 1 N/A N/A 1.0 width border_x N/A y_scaling N/A 1 N/A N/A 1.0 height border_y N/A x N/A x x_scaling N/A y N/A y y_scaling N/A width x_scaling N/A height y_scaling N/A x 0.5 N/A y 0.5 N/A pos N/A N/A np c_ N/A N/A N/A x N/A 0.5 width N/A y N/A 0.5 height N/A width N/A N/A np ones size N/A height N/A N/A np ones size N/A box N/A 0 1 0 1 N/A layout N/A Layout box box pos pos names names kind grid-misc ids ids N/A layout N/A find_layout N/A N/A info ch_type exclude N/A None bads N/A N/A Choose a layout based on the channels in the info 'chs' field

    Parameters
    ----------
    info : instance of Info
        The measurement info.
    ch_type : {'mag', 'grad', 'meg', 'eeg'} | None
        The channel type for selecting single channel layouts.
        Defaults to None. Note, this argument will only be considered for
        VectorView type layout. Use `meg` to force using the full layout
        in situations where the info does only contain one sensor type.
    exclude : list of string | str
        List of channels to exclude. If empty do not exclude any.
        If 'bads', exclude channels in info['bads'] (default).

    Returns
    -------
    layout : Layout instance | None
        None if layout not found.
     N/A our_types N/A N/A  or  join N/A `None` `mag` `grad` `meg` N/A N/A ch_type N/A None meg mag grad eeg N/A N/A N/A ValueError N/A Invalid channel type (%s) requested `ch_type` must be %s N/A ch_type our_types N/A chs N/A info N/A chs N/A coil_types N/A set N/A N/A ch N/A coil_type N/A ch chs N/A channel_types N/A set N/A N/A ch N/A kind N/A ch chs N/A has_vv_mag N/A any N/A N/A k coil_types N/A k N/A N/A FIFF FIFFV_COIL_VV_MAG_T1 N/A FIFF FIFFV_COIL_VV_MAG_T2 N/A FIFF FIFFV_COIL_VV_MAG_T3 N/A has_vv_grad N/A any N/A N/A k coil_types N/A k N/A N/A FIFF FIFFV_COIL_VV_PLANAR_T1 N/A FIFF FIFFV_COIL_VV_PLANAR_T2 N/A FIFF FIFFV_COIL_VV_PLANAR_T3 N/A has_vv_meg N/A has_vv_mag has_vv_grad N/A has_vv_only_mag N/A has_vv_mag N/A has_vv_grad N/A has_vv_only_grad N/A has_vv_grad N/A has_vv_mag N/A is_old_vv N/A N/A N/A chs N/A 0 N/A ch_name N/A has_4D_mag N/A N/A FIFF FIFFV_COIL_MAGNES_MAG coil_types N/A ctf_other_types N/A N/A FIFF FIFFV_COIL_CTF_REF_MAG N/A FIFF FIFFV_COIL_CTF_REF_GRAD N/A FIFF FIFFV_COIL_CTF_OFFDIAG_REF_GRAD N/A has_CTF_grad N/A N/A N/A FIFF FIFFV_COIL_CTF_GRAD coil_types N/A N/A N/A FIFF FIFFV_MEG_CH channel_types N/A any N/A N/A k ctf_other_types N/A k coil_types N/A n_kit_grads N/A sum N/A N/A N/A ch N/A coil_type N/A FIFF FIFFV_COIL_KIT_GRAD N/A ch chs N/A has_any_meg N/A any N/A has_vv_mag has_vv_grad has_4D_mag has_CTF_grad n_kit_grads N/A has_eeg_coils N/A N/A N/A FIFF FIFFV_COIL_EEG coil_types N/A N/A FIFF FIFFV_EEG_CH channel_types N/A has_eeg_coils_and_meg N/A has_eeg_coils has_any_meg N/A has_eeg_coils_only N/A has_eeg_coils N/A has_any_meg N/A N/A N/A ch_type meg N/A has_any_meg N/A N/A N/A RuntimeError No MEG channels present. Cannot find MEG layout. N/A N/A N/A ch_type eeg N/A has_eeg_coils N/A N/A N/A RuntimeError No EEG channels present. Cannot find EEG layout. N/A N/A N/A has_vv_meg N/A ch_type None N/A N/A any N/A has_vv_mag has_vv_grad N/A ch_type meg N/A N/A layout_name Vectorview-all N/A N/A N/A has_vv_only_mag N/A has_vv_meg N/A ch_type mag N/A N/A layout_name Vectorview-mag N/A N/A N/A has_vv_only_grad N/A has_vv_meg N/A ch_type grad N/A N/A N/A N/A N/A N/A info N/A ch_names N/A 0 endswith X N/A N/A layout_name Vectorview-grad_norm N/A N/A layout_name Vectorview-grad N/A N/A N/A N/A has_eeg_coils_only N/A ch_type N/A None eeg N/A has_eeg_coils_and_meg N/A ch_type eeg N/A N/A N/A N/A isinstance info N/A dict Info N/A N/A N/A RuntimeError Cannot make EEG layout, no measurement info was passed to `find_layout` N/A N/A make_eeg_layout info exclude exclude N/A N/A has_4D_mag N/A N/A layout_name magnesWH3600 N/A N/A has_CTF_grad N/A N/A layout_name CTF-275 N/A N/A N/A n_kit_grads 157 N/A N/A layout_name KIT-157 N/A N/A N/A n_kit_grads 157 N/A N/A layout_name KIT-AD N/A N/A None N/A layout N/A read_layout layout_name N/A N/A is_old_vv N/A N/A N/A layout names N/A _clean_names N/A layout names remove_whitespace True N/A has_CTF_grad N/A N/A N/A layout names N/A _clean_names N/A layout names before_dash True N/A layout N/A _box_size N/A N/A points width height padding N/A None None 0.0 N/A N/A  Given a series of points, calculate an appropriate box size.

    Parameters
    ----------
    points : array, shape (n_points, 2)
        The centers of the axes as a list of (x, y) coordinate pairs. Normally
        these are points in the range [0, 1] centered at 0.5.
    width : float | None
        An optional box width to enforce. When set, only the box height will be
        calculated by the function.
    height : float | None
        An optional box height to enforce. When set, only the box width will be
        calculated by the function.
    padding : float
        Portion of the box to reserve for padding. The value can range between
        0.0 (boxes will touch, default) to 1.0 (boxes consist of only padding).

    Returns
    -------
    width : float
        Width of the box
    height : float
        Height of the box
     scipy.spatial.distance pdist xdiff N/A N/A a b N/A N/A N/A N/A N/A np abs N/A N/A a N/A 0 N/A b N/A 0 N/A ydiff N/A N/A a b N/A N/A N/A N/A N/A np abs N/A N/A a N/A 1 N/A b N/A 1 N/A N/A points N/A N/A np asarray points N/A all_combinations N/A list N/A combinations points 2 N/A N/A N/A width None N/A height None N/A N/A N/A N/A len points 1 N/A N/A width 1.0 N/A height 1.0 N/A N/A N/A a b N/A all_combinations N/A N/A N/A np argmin N/A pdist points N/A N/A w h N/A N/A xdiff a b N/A ydiff a b N/A N/A w h N/A N/A width w N/A N/A height h N/A N/A height None N/A N/A hdist N/A pdist points xdiff N/A candidates N/A N/A all_combinations N/A i N/A N/A i d N/A enumerate hdist N/A d width N/A N/A N/A len candidates 0 N/A N/A height 1.0 N/A N/A height N/A N/A np min N/A N/A ydiff c N/A c candidates N/A N/A N/A width None N/A N/A vdist N/A pdist points ydiff N/A candidates N/A N/A all_combinations N/A i N/A N/A i d N/A enumerate vdist N/A d height N/A N/A N/A len candidates 0 N/A N/A width 1.0 N/A N/A width N/A N/A np min N/A N/A xdiff c N/A c candidates N/A width N/A 1 padding N/A height N/A 1 padding N/A N/A width height N/A _find_topomap_coords N/A N/A info picks layout N/A None N/A N/A Try to guess the E/MEG layout and return appropriate topomap coordinates

    Parameters
    ----------
    info : instance of Info
        Measurement info.
    picks : list of int
        Channel indices to generate topomap coords for.
    layout : None | instance of Layout
        Enforce using a specific layout. With None, a new map is generated.
        With None, a layout is chosen based on the channels in the chs
        parameter.

    Returns
    -------
    coords : array, shape = (n_chs, 2)
        2 dimensional coordinates for each sensor for a topomap plot.
     N/A N/A N/A len picks 0 N/A N/A N/A ValueError Need more than 0 channels. N/A N/A layout None N/A N/A chs N/A N/A N/A info N/A chs N/A i N/A i picks N/A pos N/A N/A N/A layout pos N/A N/A N/A N/A layout names index N/A ch N/A ch_name N/A ch chs N/A pos N/A N/A np asarray pos N/A N/A pos N/A _auto_topomap_coords info picks N/A pos N/A _auto_topomap_coords N/A N/A info picks ignore_overlap N/A False N/A N/A Make a 2 dimensional sensor map from sensor positions in an info dict.
    The default is to use the electrode locations. The fallback option is to
    attempt using digitization points of kind FIFFV_POINT_EEG. This only works
    with EEG and requires an equal number of digitization points and sensors.

    Parameters
    ----------
    info : instance of Info
        The measurement info.
    picks : list of int
        The channel indices to generate topomap coords for.

    Returns
    -------
    locs : array, shape = (n_sensors, 2)
        An array of positions of the 2 dimensional map.
     scipy.spatial.distance pdist squareform N/A chs N/A N/A N/A info N/A chs N/A i N/A i picks N/A locs3d N/A N/A np array N/A N/A N/A ch N/A loc N/A 3 N/A ch chs N/A N/A N/A N/A len locs3d 0 N/A N/A np allclose locs3d 0 N/A N/A N/A N/A logging warning Did not find any electrode locations the info, will attempt to use digitization points instead. However, if digitization points do not correspond to the EEG electrodes, this will lead to bad results. Please verify that the sensor locations in the plot are accurate. N/A ch chs N/A N/A N/A N/A ch N/A kind N/A FIFF FIFFV_EEG_CH N/A N/A N/A ValueError Cannot determine location of MEG/EOG/ECG channels using digitization points. N/A eeg_ch_names N/A N/A ch N/A ch_name N/A ch N/A info N/A chs N/A N/A ch N/A kind N/A FIFF FIFFV_EEG_CH N/A N/A N/A N/A info N/A dig None N/A N/A len N/A info N/A dig 0 N/A N/A N/A RuntimeError No digitization points found. N/A locs3d N/A N/A np array N/A N/A point N/A r N/A point N/A info N/A dig N/A N/A point N/A kind N/A FIFF FIFFV_POINT_EEG N/A N/A N/A len locs3d 0 N/A N/A N/A RuntimeError N/A Did not find any digitization points of kind FIFFV_POINT_EEG (%d) in the info. N/A FIFF FIFFV_POINT_EEG N/A N/A N/A len locs3d N/A len eeg_ch_names N/A N/A N/A ValueError N/A Number of EEG digitization points (%d) doesn't match the number of EEG channels (%d) N/A N/A len locs3d N/A len eeg_ch_names N/A dig_kinds N/A N/A FIFF FIFFV_POINT_CARDINAL N/A FIFF FIFFV_POINT_EEG N/A FIFF FIFFV_POINT_EXTRA N/A N/A _ origin_head _ N/A fit_sphere_to_headshape info dig_kinds units m N/A locs3d origin_head N/A eeg_ch_locs N/A dict N/A zip eeg_ch_names locs3d N/A locs3d N/A N/A np array N/A N/A eeg_ch_locs N/A N/A ch N/A ch_name N/A ch chs N/A dist N/A pdist locs3d N/A N/A N/A N/A N/A np min dist 1e-10 N/A ignore_overlap N/A N/A problematic_electrodes N/A N/A N/A chs N/A elec_i N/A ch_name N/A elec_i N/A N/A N/A N/A N/A N/A squareform N/A dist 1e-10 any axis 0 nonzero N/A 0 N/A N/A ValueError N/A N/A The following electrodes have overlapping positions:
     N/A str problematic_electrodes 
This causes problems during visualization. N/A N/A x y z N/A locs3d T N/A N/A az el r N/A _cartesian_to_sphere x y z N/A locs2d N/A N/A np c_ N/A N/A _polar_to_cartesian az N/A N/A N/A np pi 2 el N/A locs2d N/A _topo_to_sphere N/A N/A pos eegs N/A N/A N/A Helper function for transforming xy-coordinates to sphere.

    Parameters
    ----------
    pos : array-like, shape (n_channels, 2)
        xy-oordinates to transform.
    eegs : list of int
        Indices of eeg channels that are included when calculating the sphere.

    Returns
    -------
    coords : array, shape (n_channels, 3)
        xyz-coordinates.
     N/A N/A xs ys N/A N/A N/A np array pos T N/A sqs N/A N/A np max N/A N/A np sqrt N/A N/A N/A xs N/A eegs 2 N/A N/A ys N/A eegs 2 N/A xs sqs N/A ys sqs N/A xs N/A 0.5 N/A N/A np mean N/A xs N/A eegs N/A ys N/A 0.5 N/A N/A np mean N/A ys N/A eegs N/A xs N/A N/A xs 2.0 1.0 N/A ys N/A N/A ys 2.0 1.0 N/A rs N/A N/A np clip N/A N/A np sqrt N/A N/A xs 2 N/A ys 2 0.0 1.0 N/A alphas N/A N/A np arccos rs N/A zs N/A N/A np sin alphas N/A N/A N/A np column_stack N/A xs ys zs N/A _pair_grad_sensors N/A N/A info layout topomap_coords exclude N/A None True bads N/A N/A Find the picks for pairing grad channels

    Parameters
    ----------
    info : instance of Info
        An info dictionary containing channel information.
    layout : Layout | None
        The layout if available. Defaults to None.
    topomap_coords : bool
        Return the coordinates for a topomap plot along with the picks. If
        False, only picks are returned. Defaults to True.
    exclude : list of str | str
        List of channels to exclude. If empty do not exclude any (default).
        If 'bads', exclude channels in info['bads']. Defaults to 'bads'.

    Returns
    -------
    picks : array of int
        Picks for the grad channels, ordered in pairs.
    coords : array, shape = (n_grad_channels, 3)
        Coordinates for a topomap plot (optional, only returned if
        topomap_coords == True).
     N/A pairs N/A defaultdict list N/A grad_picks N/A pick_types info meg grad ref_meg False exclude exclude N/A i grad_picks N/A N/A ch N/A N/A info N/A chs N/A i N/A name N/A ch N/A ch_name N/A N/A N/A name startswith MEG N/A N/A N/A N/A name endswith N/A 2 3 N/A N/A key N/A name N/A -4 -1 N/A N/A N/A N/A pairs N/A key append ch N/A pairs N/A p N/A p N/A N/A pairs values N/A N/A len p 2 N/A N/A N/A len pairs 0 N/A N/A N/A ValueError No 'grad' channel pairs found. N/A grad_chs N/A sum pairs N/A N/A ch_names N/A info N/A ch_names N/A picks N/A N/A N/A ch_names index N/A c N/A ch_name N/A c grad_chs N/A topomap_coords N/A N/A shape N/A N/A len pairs 2 -1 N/A coords N/A N/A N/A N/A N/A _find_topomap_coords info picks layout reshape shape mean axis 1 N/A N/A picks coords N/A N/A picks N/A _pair_grad_sensors_from_ch_names N/A N/A ch_names N/A N/A N/A Find the indexes for pairing grad channels

    Parameters
    ----------
    ch_names : list of str
        A list of channel names.

    Returns
    -------
    indexes : list of int
        Indexes of the grad channels, ordered in pairs.
     N/A pairs N/A defaultdict list N/A N/A i name N/A enumerate ch_names N/A N/A N/A N/A name startswith MEG N/A N/A N/A N/A name endswith N/A 2 3 N/A N/A key N/A name N/A -4 -1 N/A N/A N/A N/A pairs N/A key append i N/A pairs N/A p N/A p N/A N/A pairs values N/A N/A len p 2 N/A grad_chs N/A sum pairs N/A N/A grad_chs N/A _merge_grad_data N/A N/A data N/A N/A N/A Merge data from channel pairs using the RMS

    Parameters
    ----------
    data : array, shape = (n_channels, n_times)
        Data for channels, ordered in pairs.

    Returns
    -------
    data : array, shape = (n_channels / 2, n_times)
        The root mean square for each pair.
     N/A data N/A N/A data reshape N/A N/A N/A len data 2 2 -1 N/A data N/A N/A np sqrt N/A N/A N/A np sum N/A data 2 axis 1 2 N/A data N/A generate_2d_layout N/A N/A xy w h pad ch_names ch_indices name bg_image N/A 0.07 0.05 0.02 None None ecog None N/A N/A Generate a custom 2D layout from xy points.

    Generates a 2-D layout for plotting with plot_topo methods and
    functions. XY points will be normalized between 0 and 1, where
    normalization extremes will be either the min/max of xy, or
    the width/height of bg_image.

    Parameters
    ----------
    xy : ndarray (N x 2)
        The xy coordinates of sensor locations.
    w : float
        The width of each sensor's axis (between 0 and 1)
    h : float
        The height of each sensor's axis (between 0 and 1)
    pad : float
        Portion of the box to reserve for padding. The value can range between
        0.0 (boxes will touch, default) to 1.0 (boxes consist of only padding).
    ch_names : list
        The names of each channel. Must be a list of strings, with one
        string per channel.
    ch_indices : list
        Index of each channel - must be a collection of unique integers,
        one index per channel.
    name : string
        The name of this layout type.
    bg_image : str | ndarray
        The image over which sensor axes will be plotted. Either a path to an
        image file, or an array that can be plotted with plt.imshow. If
        provided, xy points will be normalized by the width/height of this
        image. If not, xy points will be normalized by their own min/max.

    Returns
    -------
    layout : Layout
        A Layout object that can be plotted with plot_topo
        functions and methods.

    See Also
    --------
    make_eeg_layout, make_grid_layout

    Notes
    -----
    .. versionadded:: 0.9.0
     scipy.ndimage imread N/A N/A ch_indices None N/A N/A ch_indices N/A N/A np arange N/A N/A xy shape N/A 0 N/A N/A ch_names None N/A N/A ch_names N/A N/A N/A {0} format i N/A i ch_indices N/A N/A N/A len ch_names N/A len ch_indices N/A N/A N/A ValueError # ch names and indices must be equal N/A N/A N/A len ch_names N/A len xy N/A N/A N/A ValueError # ch names and xy vals must be equal N/A N/A x y N/A N/A N/A N/A N/A xy copy astype float T N/A N/A bg_image None N/A N/A N/A isinstance bg_image str N/A N/A img N/A imread bg_image N/A N/A img bg_image N/A x N/A N/A img shape N/A 1 N/A y N/A N/A img shape N/A 0 N/A N/A i_dim N/A x y N/A N/A i_dim N/A N/A i_dim min 0 N/A i_dim N/A N/A N/A i_dim max 0 N/A N/A i_dim min 0 N/A box N/A _box_size N/A N/A N/A np vstack N/A x y T padding pad N/A box N/A 0 0 N/A box N/A 0 N/A box N/A 1 N/A N/A w h N/A N/A N/A np array N/A N/A i N/A N/A x shape N/A 0 N/A i N/A w h N/A loc_params N/A N/A N/A np vstack N/A x y w h T N/A layout N/A Layout box loc_params ch_names ch_indices name N/A layout N/A