Module Import alias ImportFrom alias identifier Import alias identifier ImportFrom alias alias alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Str Str Assign NameStore Call NameLoad If NameLoad body AugAssignAdd NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str AugAssignAdd NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Num While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assert CompareIn Call NameLoad NameLoad TupleLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Num Assert CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num keyword SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr While CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assert CompareEq Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index ListLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num If Call AttributeLoad NameLoad attr CompareGt Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow NameLoad Num keyword Num NameLoad body Raise Call NameLoad Str If Call AttributeLoad NameLoad attr CompareLtE NameLoad Num body Raise Call NameLoad Str AugAssignDiv NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotIn SubscriptLoad NameLoad Index Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str For NameStore NameLoad body If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str BinOpBitAnd SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad NameLoad Index Str NameLoad body Break orelse Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Call NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Slice Num AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Slice Num attr SubscriptLoad NameLoad ExtSlice Slice Num Index Num Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Str Str Call AttributeLoad NameLoad attr Num If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore IfExp Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad Call NameLoad keyword NameLoad NameLoad Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call NameLoad NameLoad NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword Call NameLoad NameLoad SubscriptLoad NameLoad Index Str keyword Call NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Slice Num AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Slice Num attr SubscriptLoad NameLoad ExtSlice Slice Num Index Num Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword SubscriptLoad NameLoad ExtSlice Slice Num Index Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num CompareGt NameLoad Num body Raise Call NameLoad Str If CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse If BoolOpAnd CompareGt NameLoad Num CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore IfExp NameLoad Str Str Assign NameStore Str Assign NameStore NameLoad Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str orelse Assign NameStore Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore IfExp UnaryOpNot NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore IfExp CompareGt NameLoad Num Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad If NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad If NameLoad body Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str orelse Assert CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareLtE NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad Call NameLoad NameLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If CompareEq NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad For NameStore ListLoad Str Str body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad ListLoad Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad If BoolOpAnd NameLoad CompareGt Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword ListLoad Num body Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad If BoolOpAnd NameLoad CompareGt Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword ListLoad Num body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareEq Call NameLoad BinOpAdd NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword ListLoad For NameStore NameLoad body Expr Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If CompareLt Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num TupleLoad Call NameLoad NameLoad Num Assign NameStore Call NameLoad keyword Call NameLoad SubscriptLoad NameLoad Index Str keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad NameLoad Num NameLoad body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore IfExp Call NameLoad NameLoad NameLoad Str NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call NameLoad NameLoad keyword NameLoad orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Delete TupleDel NameDel NameDel NameDel NameDel NameDel NameDel NameDel NameDel NameDel Assign NameStore ListLoad Str Str Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign NameStore ListLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If CompareNotEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Call NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpMult Call NameLoad NameLoad Str Str NameLoad Str For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr BinOpMult NameLoad Num BinOpMult SubscriptLoad NameLoad Index Num Num BinOpMult SubscriptLoad NameLoad Index Num Num BinOpMult SubscriptLoad NameLoad Index Num Num AugAssignAdd NameStore BinOpMult Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num body Expr Call NameLoad Str Assign NameStore Num orelse Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice NameLoad BinOpAdd NameLoad Call NameLoad NameLoad Index NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore Call NameLoad NameLoad keyword SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str keyword SubscriptLoad NameLoad Index Num keyword NameLoad keyword NameLoad orelse Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd NameStore ListLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str keyword NameLoad keyword Num keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assert CompareIsNot NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Return NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad keyword ListLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword SubscriptLoad AttributeLoad NameLoad attr Index Num keyword NameLoad keyword ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword Call AttributeLoad SubscriptLoad NameLoad Index Str attr Return NameLoad decorator_list
N/A N/A os os path op N/A numpy np io read_info _loc_to_coil_trans _loc_to_eeg_loc Info io.pick _has_kit_refs pick_types pick_info io.constants FIFF transforms _ensure_trans transform_surface_to apply_trans _get_trans _print_coord_trans _coord_frame_name Transform utils logger verbose warn source_space _ensure_src _filter_source_spaces _make_discrete_source_space SourceSpaces source_estimate VolSourceEstimate surface _normalize_vectors bem read_bem_solution _bem_find_surface ConductorModel externals.six string_types forward Forward write_forward_solution _merge_meg_eeg_fwds convert_forward_solution _compute_forward _compute_forwards fixes in1d N/A _accuracy_dict N/A dict normal N/A FIFF FWD_COIL_ACCURACY_NORMAL accurate N/A FIFF FWD_COIL_ACCURACY_ACCURATE _read_coil_defs N/A N/A elekta_defs verbose N/A False None N/A N/A Read a coil definition file.

    Parameters
    ----------
    elekta_defs : bool
        If true, prepend Elekta's coil definitions for numerical
        integration (from Abramowitz and Stegun section 25.4.62).
        Note that this will likely cause duplicate coil definitions,
        so the first matching coil should be selected for optimal
        integration parameters.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).
        Defaults to raw.verbose.

    Returns
    -------
    res : list of dict
        The coils. It is a dictionary with valid keys:
        'cosmag' | 'coil_class' | 'coord_frame' | 'rmag' | 'type' |
        'chname' | 'accuracy'.
        cosmag contains the direction of the coils and rmag contains the
        position vector.
     N/A coil_dir N/A N/A op join N/A N/A N/A op split __file__ N/A 0 .. data N/A coils N/A list N/A elekta_defs N/A N/A coils N/A _read_coil_def_file N/A N/A op join coil_dir coil_def_Elekta.dat N/A coils N/A _read_coil_def_file N/A N/A op join coil_dir coil_def.dat N/A coils N/A verbose _read_coil_def_file N/A N/A fname N/A N/A N/A Helper to read a coil def file N/A big_val 0.5 N/A coils N/A list N/A N/A open fname r fid N/A N/A lines N/A N/A fid readlines N/A lines N/A lines N/A -1 N/A N/A N/A len lines 0 N/A N/A line N/A N/A lines pop N/A N/A N/A line N/A 0 # N/A N/A vals N/A N/A np fromstring line sep N/A N/A N/A len vals N/A 6 7 N/A start N/A N/A line find " N/A end N/A N/A len N/A N/A line strip 1 N/A N/A N/A N/A N/A line strip N/A end " N/A desc N/A line N/A start end N/A npts N/A int N/A vals N/A 3 N/A coil N/A dict coil_type N/A vals N/A 1 coil_class N/A vals N/A 0 desc desc accuracy N/A vals N/A 2 size N/A vals N/A 4 base N/A vals N/A 5 N/A rmag N/A list N/A cosmag N/A list N/A w N/A list N/A p N/A range npts N/A N/A line N/A N/A lines pop N/A N/A N/A line N/A 0 # N/A N/A line N/A N/A lines pop N/A vals N/A N/A np fromstring line sep N/A N/A N/A len vals 7 N/A N/A N/A w append N/A vals N/A 0 N/A N/A N/A rmag append N/A vals N/A N/A 1 2 3 N/A N/A N/A cosmag append N/A vals N/A N/A 4 5 6 N/A w N/A N/A np array w N/A rmag N/A N/A np array rmag N/A cosmag N/A N/A np array cosmag N/A size N/A N/A np sqrt N/A N/A np sum N/A cosmag 2 axis 1 N/A N/A N/A np any N/A N/A N/A np sqrt N/A N/A np sum N/A rmag 2 axis 1 big_val N/A N/A N/A RuntimeError Unreasonable integration point N/A N/A N/A np any N/A size 0 N/A N/A N/A RuntimeError Unreasonable normal N/A cosmag N/A size N/A N/A N/A N/A np newaxis N/A N/A N/A coil update N/A dict w w cosmag cosmag rmag rmag N/A N/A N/A coils append coil N/A N/A N/A logger info %d coil definitions read N/A len coils N/A coils N/A _create_meg_coil N/A N/A coilset ch acc do_es N/A N/A N/A Create a coil definition using templates, transform if necessary N/A N/A N/A ch N/A kind N/A N/A FIFF FIFFV_MEG_CH N/A FIFF FIFFV_REF_MEG_CH N/A N/A N/A RuntimeError N/A %s is not a MEG channel N/A ch N/A ch_name N/A coil coilset N/A N/A N/A N/A N/A coil N/A coil_type N/A N/A ch N/A coil_type 65535 N/A N/A coil N/A accuracy acc N/A N/A N/A N/A N/A RuntimeError N/A Desired coil definition not found (type = %d acc = %d) N/A N/A ch N/A coil_type acc N/A coil_trans N/A _loc_to_coil_trans N/A ch N/A loc N/A res N/A dict chname N/A ch N/A ch_name coil_class N/A coil N/A coil_class accuracy N/A coil N/A accuracy base N/A coil N/A base size N/A coil N/A size type N/A ch N/A coil_type w N/A coil N/A w desc N/A coil N/A desc coord_frame N/A FIFF FIFFV_COORD_DEVICE rmag_orig N/A coil N/A rmag cosmag_orig N/A coil N/A cosmag coil_trans_orig coil_trans r0 N/A coil_trans N/A N/A 3 N/A 3 rmag N/A apply_trans coil_trans N/A coil N/A rmag cosmag N/A apply_trans coil_trans N/A coil N/A cosmag False N/A do_es N/A N/A r0_exey N/A N/A N/A np dot N/A N/A coil N/A rmag N/A N/A N/A 2 N/A N/A coil_trans N/A N/A 3 N/A 2 T N/A coil_trans N/A N/A 3 N/A 3 N/A N/A N/A res update ex N/A coil_trans N/A N/A 3 N/A 0 ey N/A coil_trans N/A N/A 3 N/A 1 ez N/A coil_trans N/A N/A 3 N/A 2 r0_exey r0_exey N/A res N/A _create_eeg_el N/A N/A ch t N/A None N/A N/A Create an electrode definition, transform coords if necessary N/A N/A N/A ch N/A kind N/A FIFF FIFFV_EEG_CH N/A N/A N/A RuntimeError N/A %s is not an EEG channel. Cannot create an electrode definition. N/A ch N/A ch_name N/A N/A t None N/A N/A t N/A Transform head head N/A N/A np eye 4 N/A N/A N/A t from_str head N/A N/A N/A RuntimeError Inappropriate coordinate transformation N/A r0ex N/A _loc_to_eeg_loc N/A ch N/A loc N/A N/A N/A N/A r0ex shape N/A 1 1 N/A N/A w N/A N/A np array N/A 1.0 N/A N/A w N/A N/A np array N/A 1.0 -1.0 N/A r0ex N/A apply_trans N/A t N/A trans N/A r0ex T N/A cosmag N/A N/A r0ex copy N/A N/A _normalize_vectors cosmag N/A res N/A dict chname N/A ch N/A ch_name coil_class N/A FIFF FWD_COILC_EEG w w accuracy N/A _accuracy_dict N/A normal type N/A ch N/A coil_type coord_frame N/A t N/A to rmag r0ex cosmag cosmag N/A res N/A _create_meg_coils N/A N/A chs acc t coilset do_es N/A None None False N/A N/A Create a set of MEG coils in the head coordinate frame N/A acc N/A N/A isinstance acc string_types N/A _accuracy_dict N/A acc acc N/A coilset N/A N/A coilset None N/A _read_coil_defs verbose False coilset N/A coils N/A N/A _create_meg_coil coilset ch acc do_es N/A ch chs N/A N/A _transform_orig_meg_coils coils t do_es do_es N/A coils N/A _transform_orig_meg_coils N/A N/A coils t do_es N/A True N/A N/A Helper to transform original (device) MEG coil positions N/A N/A t None N/A N/A N/A coil coils N/A N/A coil_trans N/A N/A np dot N/A t N/A trans N/A coil N/A coil_trans_orig N/A N/A N/A coil update coord_frame N/A t N/A to r0 N/A coil_trans N/A N/A 3 N/A 3 rmag N/A apply_trans coil_trans N/A coil N/A rmag_orig cosmag N/A apply_trans coil_trans N/A coil N/A cosmag_orig False N/A do_es N/A N/A r0_exey N/A N/A N/A np dot N/A N/A coil N/A rmag_orig N/A N/A N/A 2 N/A N/A coil_trans N/A N/A 3 N/A 2 T N/A coil_trans N/A N/A 3 N/A 3 N/A N/A N/A coil update ex N/A coil_trans N/A N/A 3 N/A 0 ey N/A coil_trans N/A N/A 3 N/A 1 ez N/A coil_trans N/A N/A 3 N/A 2 r0_exey r0_exey N/A _create_eeg_els N/A N/A chs N/A N/A N/A Create a set of EEG electrodes in the head coordinate frame N/A N/A N/A _create_eeg_el ch N/A ch chs N/A _setup_bem N/A N/A bem bem_extra neeg mri_head_t verbose N/A None N/A N/A Set up a BEM for forward computation N/A N/A N/A logger info N/A N/A isinstance bem string_types N/A N/A N/A N/A logger info N/A Setting up the BEM model using %s...
 bem_extra N/A bem N/A read_bem_solution bem N/A N/A N/A isinstance bem ConductorModel N/A N/A N/A TypeError bem must be a string or ConductorModel N/A N/A bem N/A is_sphere N/A N/A N/A N/A logger info Using the sphere model.
 N/A N/A N/A N/A len N/A bem N/A layers 0 N/A neeg 0 N/A N/A N/A RuntimeError Spherical model has zero shells, cannot use with EEG data N/A N/A N/A bem N/A coord_frame N/A FIFF FIFFV_COORD_HEAD N/A N/A N/A RuntimeError Spherical model is not in head coordinates N/A N/A N/A N/A neeg 0 N/A N/A len N/A bem N/A surfs 1 N/A N/A N/A RuntimeError Cannot use a homogeneous model in EEG calculations N/A N/A N/A logger info Employing the head->MRI coordinate transform with the BEM model. N/A N/A bem N/A head_mri_t N/A _ensure_trans mri_head_t head mri N/A N/A N/A logger info N/A BEM model %s is now set up N/A N/A N/A op split bem_extra N/A 1 N/A N/A N/A logger info N/A bem N/A verbose _prep_meg_channels N/A N/A info accurate exclude ignore_ref elekta_defs head_frame do_es verbose N/A True N/A False False True False None N/A N/A Prepare MEG coil definitions for forward calculation

    Parameters
    ----------
    info : instance of Info
        The measurement information dictionary
    accurate : bool
        If true (default) then use `accurate` coil definitions (more
        integration points)
    exclude : list of str | str
        List of channels to exclude. If 'bads', exclude channels in
        info['bads']
    ignore_ref : bool
        If true, ignore compensation coils
    elekta_defs : bool
        If True, use Elekta's coil definitions, which use different integration
        point geometry. False by default.
    head_frame : bool
        If True (default), use head frame coords. Otherwise, use device frame.
    do_es : bool
        If True, compute and store ex, ey, ez, and r0_exey.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).
        Defaults to raw.verbose.

    Returns
    -------
    megcoils : list of dict
        Information for each prepped MEG coil
    compcoils : list of dict
        Information for each prepped MEG coil
    megnames : list of str
        Name of each prepped MEG coil
    meginfo : instance of Info
        Information subselected for just the set of MEG coils
     N/A accuracy N/A accurate accurate normal N/A info_extra info N/A meg_info None N/A N/A megnames megcoils compcoils N/A N/A N/A N/A N/A picks N/A pick_types info meg True eeg False ref_meg False exclude exclude N/A nmeg N/A len picks N/A N/A nmeg 0 N/A N/A N/A RuntimeError Could not find any MEG channels N/A megchs N/A N/A pick_info info picks N/A chs N/A megnames N/A N/A N/A info N/A ch_names N/A p N/A p picks N/A N/A N/A logger info N/A Read %3d MEG channels from %s N/A N/A len picks info_extra N/A N/A ignore_ref N/A N/A picks N/A pick_types info meg False ref_meg True exclude exclude N/A ncomp N/A len picks N/A N/A ncomp 0 N/A N/A compchs N/A N/A pick_info info picks N/A chs N/A N/A N/A logger info N/A Read %3d MEG compensation channels from %s N/A ncomp info_extra N/A N/A _has_kit_refs info picks N/A N/A N/A NotImplementedError Cannot create forward solution with KIT reference channels. Consider using "ignore_ref=True" in calculation N/A N/A ncomp 0 N/A ncomp_data N/A len N/A info N/A comps N/A ref_meg N/A N/A ignore_ref True False N/A picks N/A pick_types info meg True ref_meg ref_meg exclude exclude N/A meg_info N/A N/A nmeg 0 N/A pick_info info picks None N/A templates N/A _read_coil_defs elekta_defs elekta_defs N/A head_frame N/A N/A N/A _print_coord_trans N/A info N/A dev_head_t N/A transform N/A info N/A dev_head_t N/A N/A transform None N/A megcoils N/A _create_meg_coils megchs accuracy transform templates do_es do_es N/A N/A ncomp 0 N/A N/A N/A N/A logger info N/A %d compensation data sets in %s N/A ncomp_data info_extra N/A compcoils N/A _create_meg_coils compchs normal transform templates do_es do_es N/A head_frame N/A N/A N/A N/A N/A megcoils N/A 0 N/A coord_frame N/A FIFF FIFFV_COORD_HEAD N/A N/A N/A logger info MEG coil definitions created in head coordinates. N/A N/A N/A N/A N/A megcoils N/A 0 N/A coord_frame N/A FIFF FIFFV_COORD_DEVICE N/A N/A N/A logger info MEG coil definitions created in device coordinate. N/A N/A megcoils compcoils megnames meg_info N/A verbose _prep_eeg_channels N/A N/A info exclude verbose N/A N/A None N/A N/A Prepare EEG electrode definitions for forward calculation

    Parameters
    ----------
    info : instance of Info
        The measurement information dictionary
    exclude : list of str | str
        List of channels to exclude. If 'bads', exclude channels in
        info['bads']
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).
        Defaults to raw.verbose.

    Returns
    -------
    eegels : list of dict
        Information for each prepped EEG electrode
    eegnames : list of str
        Name of each prepped EEG electrode
     N/A N/A eegnames eegels N/A N/A N/A N/A info_extra info N/A picks N/A pick_types info meg False eeg True ref_meg False exclude exclude N/A neeg N/A len picks N/A N/A neeg 0 N/A N/A N/A RuntimeError Could not find any EEG channels N/A eegchs N/A N/A pick_info info picks N/A chs N/A eegnames N/A N/A N/A info N/A ch_names N/A p N/A p picks N/A N/A N/A logger info N/A Read %3d EEG channels from %s N/A N/A len picks info_extra N/A eegels N/A _create_eeg_els eegchs N/A N/A N/A logger info Head coordinate coil definitions created. N/A N/A eegels eegnames N/A verbose _prepare_for_forward N/A N/A src mri_head_t info bem mindist n_jobs bem_extra trans info_extra meg eeg ignore_ref fname overwrite verbose N/A True True False None False None N/A N/A Helper to prepare for forward computation N/A N/A N/A logger info N/A src N/A N/A N/A _ensure_src src copy N/A nsource N/A sum N/A N/A s N/A nuse N/A s src N/A N/A nsource 0 N/A N/A N/A RuntimeError No sources are active in these source spaces. "do_all" option should be used. N/A N/A N/A logger info N/A Read %d source spaces a total of %d active source locations N/A N/A len src nsource N/A key N/A working_dir command_line N/A N/A N/A key N/A src info N/A N/A N/A N/A src info N/A key N/A N/A N/A logger info N/A N/A _print_coord_trans mri_head_t N/A arg_list N/A info_extra trans src bem_extra fname meg eeg mindist overwrite n_jobs verbose N/A cmd N/A make_forward_solution(%s) N/A N/A ,  join N/A N/A str a N/A a arg_list N/A mri_id N/A dict machid N/A N/A np zeros 2 N/A np int32 version 0 secs 0 usecs 0 N/A info N/A Info chs N/A info N/A chs comps N/A info N/A comps dev_head_t N/A info N/A dev_head_t mri_file trans mri_id mri_id meas_file info_extra meas_id None working_dir N/A N/A os getcwd command_line cmd bads N/A info N/A bads mri_head_t mri_head_t N/A N/A N/A info _update_redundant N/A N/A N/A info _check_consistency N/A N/A N/A logger info N/A N/A megcoils compcoils megnames meg_info N/A N/A N/A N/A N/A N/A N/A eegels eegnames N/A N/A N/A N/A N/A meg N/A N/A len N/A pick_types info ref_meg False exclude N/A 0 N/A N/A N/A megcoils compcoils megnames meg_info N/A _prep_meg_channels info ignore_ref ignore_ref N/A N/A eeg N/A N/A len N/A pick_types info meg False eeg True ref_meg False exclude N/A 0 N/A N/A N/A eegels eegnames N/A _prep_eeg_channels info N/A N/A N/A len N/A megcoils eegels 0 N/A N/A N/A RuntimeError No MEG or EEG channels found. N/A info N/A pick_info info N/A pick_types info meg meg eeg eeg ref_meg False exclude N/A N/A s src N/A N/A N/A transform_surface_to s head mri_head_t N/A N/A N/A logger info N/A Source spaces are now in %s coordinates. N/A _coord_frame_name N/A s N/A coord_frame N/A bem N/A _setup_bem bem bem_extra N/A len eegnames mri_head_t N/A N/A N/A bem N/A is_sphere N/A N/A inner_skull N/A _bem_find_surface bem inner_skull N/A N/A _filter_source_spaces inner_skull mindist mri_head_t src n_jobs N/A N/A N/A logger info N/A rr N/A N/A np concatenate N/A N/A N/A s N/A rr N/A N/A s N/A vertno N/A s src N/A N/A N/A len rr 1 N/A N/A N/A RuntimeError No points left in source space after excluding points close to inner skull. N/A source_nn N/A N/A np tile N/A N/A np eye 3 N/A N/A len rr 1 N/A update_kwargs N/A dict nchan N/A len N/A info N/A ch_names nsource N/A len rr info info src src source_nn source_nn source_rr rr surf_ori False mri_head_t mri_head_t N/A N/A megcoils meg_info compcoils megnames eegels eegnames rr info update_kwargs bem N/A verbose make_forward_solution N/A N/A info trans src bem fname meg eeg mindist ignore_ref overwrite n_jobs verbose N/A None True True 0.0 False False 1 None N/A N/A Calculate a forward solution for a subject

    Parameters
    ----------
    info : instance of mne.Info | str
        If str, then it should be a filename to a Raw, Epochs, or Evoked
        file with measurement information. If dict, should be an info
        dict (such as one from Raw, Epochs, or Evoked).
    trans : dict | str | None
        Either a transformation filename (usually made using mne_analyze)
        or an info dict (usually opened using read_trans()).
        If string, an ending of `.fif` or `.fif.gz` will be assumed to
        be in FIF format, any other ending will be assumed to be a text
        file with a 4x4 transformation matrix (like the `--trans` MNE-C
        option). Can be None to use the identity transform.
    src : str | instance of SourceSpaces
        If string, should be a source space filename. Can also be an
        instance of loaded or generated SourceSpaces.
    bem : dict | str
        Filename of the BEM (e.g., "sample-5120-5120-5120-bem-sol.fif") to
        use, or a loaded sphere model (dict).
    fname : str | None
        Destination forward solution filename. If None, the solution
        will not be saved.
    meg : bool
        If True (Default), include MEG computations.
    eeg : bool
        If True (Default), include EEG computations.
    mindist : float
        Minimum distance of sources from inner skull surface (in mm).
    ignore_ref : bool
        If True, do not include reference channels in compensation. This
        option should be True for KIT files, since forward computation
        with reference channels is not currently supported.
    overwrite : bool
        If True, the destination file (if it exists) will be overwritten.
        If False (default), an error will be raised if the file exists.
    n_jobs : int
        Number of jobs to run in parallel.
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    fwd : instance of Forward
        The forward solution.

    Notes
    -----
    Some of the forward solution calculation options from the C code
    (e.g., `--grad`, `--fixed`) are not implemented here. For those,
    consider using the C command line tools, or request that they
    be added to the MNE-Python.
     N/A N/A mri_head_t trans N/A _get_trans trans N/A bem_extra N/A N/A isinstance bem dict dict bem N/A N/A N/A fname None N/A N/A op isfile fname N/A overwrite N/A N/A N/A IOError N/A file "%s" exists, consider using overwrite=True fname N/A N/A N/A isinstance info N/A Info string_types N/A N/A N/A TypeError info should be an instance of Info or string N/A N/A isinstance info string_types N/A N/A info_extra N/A N/A N/A op split info N/A 1 N/A info N/A read_info info verbose False N/A N/A info_extra instance of Info N/A N/A N/A logger info N/A Source space                 : %s src N/A N/A N/A logger info N/A MRI -> head transform source : %s trans N/A N/A N/A logger info N/A Measurement data             : %s info_extra N/A N/A N/A isinstance bem dict N/A bem N/A is_sphere N/A N/A N/A N/A logger info N/A Sphere model                 : origin at %s mm N/A N/A bem N/A r0 N/A N/A N/A logger info Standard field computations N/A N/A N/A N/A logger info N/A BEM model                    : %s bem_extra N/A N/A N/A logger info Accurate field computations N/A N/A N/A logger info Do computations in %s coordinates N/A _coord_frame_name N/A FIFF FIFFV_COORD_HEAD N/A N/A N/A logger info Free source orientations N/A N/A N/A logger info N/A Destination for the solution : %s fname N/A N/A megcoils meg_info compcoils megnames eegels eegnames rr info update_kwargs bem N/A _prepare_for_forward src mri_head_t info bem mindist n_jobs bem_extra trans info_extra meg eeg ignore_ref fname overwrite N/A N/A src mri_head_t trans info_extra bem_extra mindist meg eeg ignore_ref N/A coil_types N/A meg eeg N/A coils N/A megcoils eegels N/A ccoils N/A compcoils None N/A infos N/A meg_info None N/A N/A megfwd eegfwd N/A _compute_forwards rr bem coils ccoils infos coil_types n_jobs N/A fwd N/A _merge_meg_eeg_fwds N/A _to_forward_dict megfwd megnames N/A _to_forward_dict eegfwd eegnames verbose False N/A N/A N/A logger info N/A N/A N/A fwd update update_kwargs N/A N/A fname None N/A N/A N/A N/A logger info writing %s... fname N/A N/A write_forward_solution fname fwd overwrite verbose False N/A N/A N/A logger info Finished. N/A fwd N/A verbose make_forward_dipole N/A N/A dipole bem info trans n_jobs verbose N/A None 1 None N/A N/A Convert dipole object to source estimate and calculate forward operator

    The instance of Dipole is converted to a discrete source space,
    which is then combined with a BEM or a sphere model and
    the sensor information in info to form a forward operator.

    The source estimate object (with the forward operator) can be projected to
    sensor-space using :func:`mne.simulation.evoked.simulate_evoked`.

    Note that if the (unique) time points of the dipole object are unevenly
    spaced, the first output will be a list of single-timepoint source
    estimates.

    Parameters
    ----------
    dipole : instance of Dipole
        Dipole object containing position, orientation and amplitude of
        one or more dipoles. Multiple simultaneous dipoles may be defined by
        assigning them identical times.
    bem : str | dict
        The BEM filename (str) or a loaded sphere model (dict).
    info : instance of Info
        The measurement information dictionary. It is sensor-information etc.,
        e.g., from a real data file.
    trans : str | None
        The head<->MRI transform filename. Must be provided unless BEM
        is a sphere model.
    n_jobs : int
        Number of jobs to run in parallel (used in making forward solution).
    verbose : bool, str, int, or None
        If not None, override default verbose level (see mne.verbose).

    Returns
    -------
    fwd : instance of Forward
        The forward solution corresponding to the source estimate(s).
    stc : instance of VolSourceEstimate | list of VolSourceEstimate
        The dipoles converted to a discrete set of points and associated
        time courses. If the time points of the dipole are unevenly spaced,
        a list of single-timepoint source estimates are returned.

    See Also
    --------
    mne.simulation.simulate_evoked

    Notes
    -----
    .. versionadded:: 0.12.0
     N/A times N/A N/A N/A dipole times copy N/A pos N/A N/A N/A dipole pos copy N/A amplitude N/A N/A N/A dipole amplitude copy N/A ori N/A N/A N/A dipole ori copy N/A sources N/A dict rr pos nn ori N/A sp N/A _make_discrete_source_space sources coord_frame head N/A src N/A SourceSpaces N/A sp N/A fwd N/A make_forward_solution info trans src bem fname None n_jobs n_jobs verbose verbose N/A N/A convert_forward_solution fwd surf_ori False force_fixed True copy False verbose None N/A N/A N/A N/A N/A fwd N/A src N/A 0 N/A nuse N/A len pos N/A N/A inuse N/A N/A N/A N/A N/A fwd N/A src N/A 0 N/A inuse astype N/A np bool N/A head The following dipoles are outside the inner skull boundary N/A msg N/A N/A N/A N/A N/A len head # head N/A N/A t pos N/A zip N/A times N/A N/A N/A np logical_not inuse N/A pos N/A N/A N/A np logical_not inuse N/A N/A msg N/A N/A     t={:.0f} ms, pos=({:.0f}, {:.0f}, {:.0f}) mm
 format N/A t 1000.0 N/A N/A pos N/A 0 1000.0 N/A N/A pos N/A 1 1000.0 N/A N/A pos N/A 2 1000.0 N/A msg N/A N/A len head # N/A N/A N/A logger error msg N/A N/A ValueError One or more dipoles outside the inner skull. N/A timepoints N/A N/A np unique times N/A N/A N/A len timepoints 1 N/A N/A tdiff N/A N/A np diff timepoints N/A N/A N/A N/A np allclose tdiff N/A tdiff N/A 0 N/A N/A N/A warn Unique time points of dipoles unevenly spaced: returned stc will be a list, one for each time point. N/A tstep -1.0 N/A N/A tstep N/A tdiff N/A 0 N/A N/A N/A N/A len timepoints 1 N/A N/A tstep 0.001 N/A data N/A N/A np zeros N/A N/A len amplitude N/A len timepoints N/A row 0 N/A N/A tpind tp N/A enumerate timepoints N/A N/A amp N/A amplitude N/A N/A in1d times tp N/A N/A data N/A N/A row N/A row N/A len amp N/A tpind amp N/A row N/A len amp N/A N/A tstep 0 N/A N/A stc N/A VolSourceEstimate data vertices N/A N/A N/A fwd N/A src N/A 0 N/A vertno tmin N/A timepoints N/A 0 tstep tstep subject None N/A N/A stc N/A N/A N/A col tp N/A enumerate timepoints N/A N/A stc N/A N/A VolSourceEstimate N/A N/A data N/A N/A N/A col N/A N/A N/A N/A np newaxis vertices N/A N/A N/A fwd N/A src N/A 0 N/A vertno tmin tp tstep 0.001 subject None N/A N/A fwd stc N/A _to_forward_dict N/A N/A fwd names fwd_grad coord_frame source_ori N/A None N/A FIFF FIFFV_COORD_HEAD N/A FIFF FIFFV_MNE_FREE_ORI N/A N/A Convert forward solution matrices to dicts N/A N/A names None N/A N/A N/A len fwd 0 N/A N/A None N/A sol N/A dict data N/A fwd T nrow N/A N/A fwd shape N/A 1 ncol N/A N/A fwd shape N/A 0 row_names names col_names N/A N/A fwd N/A Forward sol sol source_ori source_ori nsource N/A sol N/A ncol coord_frame coord_frame sol_grad None nchan N/A sol N/A nrow _orig_source_ori source_ori _orig_sol N/A N/A N/A sol N/A data copy _orig_sol_grad None N/A N/A fwd_grad None N/A N/A sol_grad N/A dict data N/A fwd_grad T nrow N/A N/A fwd_grad shape N/A 1 ncol N/A N/A fwd_grad shape N/A 0 row_names names col_names N/A N/A N/A N/A fwd update N/A dict sol_grad sol_grad _orig_sol_grad N/A N/A N/A sol_grad N/A data copy N/A fwd N/A