Module Expr Str Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignDiv NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd BinOpMult BinOpSub Num NameLoad NameLoad BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign NameStore BinOpSub NameLoad NameLoad AugAssignDiv NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num Call AttributeLoad NameLoad attr NameLoad NameLoad Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assert CompareEqEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Num Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr keyword Num Call AttributeLoad NameLoad attr keyword Num Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad BinOpAdd BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Num Num ListLoad BinOpSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpSub BinOpSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num Num ListLoad BinOpSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpSub BinOpAdd UnaryOpUSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Num ListLoad BinOpSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num BinOpAdd BinOpSub UnaryOpUSub SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num SubscriptLoad NameLoad Index TupleLoad Num Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareLt SubscriptLoad NameLoad Index NameLoad Num body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpSub BinOpSub BinOpAdd BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpAdd BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpAdd BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpSub BinOpAdd BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpMult Num BinOpAdd BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index TupleLoad Num Num BinOpAdd BinOpSub BinOpSub BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpMult SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num BinOpSub NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Num Slice Num NameLoad Delete NameDel NameDel Expr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Num Slice Num NameLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpPow BinOpSub NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMod Str BinOpAdd BinOpAdd BinOpAdd Call NameLoad BinOpMult Num NameLoad Call NameLoad BinOpMult Num NameLoad Call NameLoad BinOpMult Num NameLoad TupleLoad BinOpMult Num NameLoad If CompareGt NameLoad Num body Raise Call NameLoad Str Return Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad If CompareIsNot NameLoad NameLoad body For NameStore NameLoad body If BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body If BoolOpAnd CompareIs NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If BoolOpAnd CompareIs NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad ExtSlice Slice Num Index Num ListLoad Num Num Num Assign NameStore BinOpMult Num Call AttributeLoad NameLoad attr Num Assign SubscriptStore NameLoad Index TupleLoad Num Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num UnaryOpUSub NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num NameLoad Assign SubscriptStore NameLoad Index TupleLoad Num Num NameLoad Assign NameStore Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body For NameStore NameLoad body If SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body For NameStore NameLoad body If BoolOpAnd CompareNotIn NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body For NameStore NameLoad body If BoolOpAnd CompareNotIn NameLoad NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Str If Call NameLoad GeneratorExp CompareNotIn NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num body Raise Call NameLoad Str If Call NameLoad GeneratorExp CompareNotIn NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num body Raise Call NameLoad Str Assign NameStore ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd CompareIn NameLoad NameLoad CompareIn NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list
N/A N/A Create coordinate transforms
 N/A numpy np scipy linalg transforms combine_transforms invert_transform utils logger constants FIFF constants CTF _make_transform_card N/A N/A fro to r_lpa r_nasion r_rpa N/A N/A N/A Helper to make a transform from cardinal landmarks N/A diff_1 N/A r_nasion r_lpa N/A ex N/A r_rpa r_lpa N/A alpha N/A N/A N/A np dot diff_1 ex N/A N/A np dot ex ex N/A ex N/A N/A np sqrt N/A N/A np sum N/A ex ex N/A trans N/A N/A np eye 4 N/A move N/A N/A N/A 1.0 alpha r_lpa N/A alpha r_rpa N/A N/A trans N/A N/A 3 N/A 3 move N/A N/A trans N/A N/A 3 N/A 0 ex N/A ey N/A r_nasion move N/A ey N/A N/A np sqrt N/A N/A np sum N/A ey ey N/A N/A trans N/A N/A 3 N/A 1 ey N/A N/A trans N/A N/A 3 N/A 2 N/A N/A np cross ex ey N/A N/A from to trans fro to trans N/A _quaternion_align N/A N/A from_frame to_frame from_pts to_pts N/A N/A N/A Perform an alignment using the unit quaternions (modifies points) N/A N/A N/A N/A from_pts shape N/A 1 N/A N/A to_pts shape N/A 1 3 N/A N/A from_c to_c N/A N/A N/A from_pts mean axis 0 N/A N/A to_pts mean axis 0 N/A from_ N/A from_pts from_c N/A to_ N/A to_pts to_c N/A S N/A N/A np dot N/A from_ T to_ N/A N N/A N/A np array N/A N/A N/A N/A N/A S N/A N/A 0 0 N/A S N/A N/A 1 1 N/A S N/A N/A 2 2 0.0 0.0 0.0 N/A N/A N/A S N/A N/A 1 2 N/A S N/A N/A 2 1 N/A N/A N/A S N/A N/A 0 0 N/A S N/A N/A 1 1 N/A S N/A N/A 2 2 0.0 0.0 N/A N/A N/A S N/A N/A 2 0 N/A S N/A N/A 0 2 N/A N/A S N/A N/A 0 1 N/A S N/A N/A 1 0 N/A N/A N/A N/A S N/A N/A 0 0 N/A S N/A N/A 1 1 N/A S N/A N/A 2 2 0.0 N/A N/A N/A S N/A N/A 0 1 N/A S N/A N/A 1 0 N/A N/A S N/A N/A 2 0 N/A S N/A N/A 0 2 N/A N/A S N/A N/A 1 2 N/A S N/A N/A 2 1 N/A N/A N/A N/A S N/A N/A 0 0 N/A S N/A N/A 1 1 N/A S N/A N/A 2 2 N/A N/A eig_vals eig_vecs N/A N/A linalg eigh N overwrite_a True N/A which N/A N/A np argmax eig_vals N/A N/A N/A eig_vals N/A which 0 N/A N/A N/A RuntimeError No positive eigenvalues. Cannot do the alignment. N/A q N/A eig_vecs N/A N/A N/A which N/A trans N/A N/A np eye 4 N/A N/A trans N/A N/A 0 0 N/A N/A N/A N/A N/A q N/A 0 N/A q N/A 0 N/A N/A q N/A 1 N/A q N/A 1 N/A N/A q N/A 2 N/A q N/A 2 N/A N/A q N/A 3 N/A q N/A 3 N/A N/A trans N/A N/A 0 1 N/A 2.0 N/A N/A N/A q N/A 1 N/A q N/A 2 N/A N/A q N/A 0 N/A q N/A 3 N/A N/A trans N/A N/A 0 2 N/A 2.0 N/A N/A N/A q N/A 1 N/A q N/A 3 N/A N/A q N/A 0 N/A q N/A 2 N/A N/A trans N/A N/A 1 0 N/A 2.0 N/A N/A N/A q N/A 2 N/A q N/A 1 N/A N/A q N/A 0 N/A q N/A 3 N/A N/A trans N/A N/A 1 1 N/A N/A N/A N/A N/A q N/A 0 N/A q N/A 0 N/A N/A q N/A 1 N/A q N/A 1 N/A N/A q N/A 2 N/A q N/A 2 N/A N/A q N/A 3 N/A q N/A 3 N/A N/A trans N/A N/A 1 2 N/A 2.0 N/A N/A N/A q N/A 2 N/A q N/A 3 N/A N/A q N/A 0 N/A q N/A 1 N/A N/A trans N/A N/A 2 0 N/A 2.0 N/A N/A N/A q N/A 3 N/A q N/A 1 N/A N/A q N/A 0 N/A q N/A 2 N/A N/A trans N/A N/A 2 1 N/A 2.0 N/A N/A N/A q N/A 3 N/A q N/A 2 N/A N/A q N/A 0 N/A q N/A 1 N/A N/A trans N/A N/A 2 2 N/A N/A N/A N/A N/A q N/A 0 N/A q N/A 0 N/A N/A q N/A 1 N/A q N/A 1 N/A N/A q N/A 2 N/A q N/A 2 N/A N/A q N/A 3 N/A q N/A 3 N/A N/A trans N/A N/A 3 N/A 3 N/A to_c N/A N/A np dot N/A trans N/A N/A 3 N/A 3 from_c N/A to_c from_c N/A N/A N/A logger info     Quaternion matching (desired vs. transformed): N/A N/A fro to N/A zip from_pts to_pts N/A N/A rr N/A N/A N/A np dot N/A trans N/A N/A 3 N/A 3 fro N/A trans N/A N/A 3 N/A 3 N/A diff N/A N/A np sqrt N/A N/A np sum N/A N/A to rr 2 N/A N/A N/A logger info N/A     %7.2f %7.2f %7.2f mm <-> %7.2f %7.2f %7.2f mm (orig : %7.2f %7.2f %7.2f mm) diff = %8.3f mm N/A N/A N/A N/A tuple N/A 1000 to N/A tuple N/A 1000 rr N/A tuple N/A 1000 fro N/A N/A 1000 diff N/A N/A diff 0.0001 N/A N/A N/A RuntimeError Something is wrong: quaternion matching did not work (see above) N/A N/A from to trans from_frame to_frame trans N/A _make_ctf_coord_trans_set N/A N/A res4 coils N/A N/A N/A Figure out the necessary coordinate transforms N/A lpa rpa nas T1 T2 T3 T5 None N/A N/A coils None N/A N/A p coils N/A N/A N/A N/A p N/A valid N/A N/A p N/A coord_frame N/A FIFF FIFFV_MNE_COORD_CTF_HEAD N/A N/A N/A N/A lpa None N/A N/A p N/A kind N/A CTF CTFV_COIL_LPA N/A N/A lpa p N/A N/A N/A N/A rpa None N/A N/A p N/A kind N/A CTF CTFV_COIL_RPA N/A N/A rpa p N/A N/A N/A N/A nas None N/A N/A p N/A kind N/A CTF CTFV_COIL_NAS N/A N/A nas p N/A N/A N/A lpa None N/A rpa None N/A nas None N/A N/A N/A RuntimeError Some of the mandatory HPI device-coordinate info was not there. N/A t N/A _make_transform_card N/A FIFF FIFFV_COORD_HEAD N/A FIFF FIFFV_MNE_COORD_CTF_HEAD N/A lpa N/A r N/A nas N/A r N/A rpa N/A r N/A T3 N/A invert_transform t N/A R N/A N/A np eye 4 N/A N/A R N/A N/A 3 N/A 3 N/A 0.0 0.0 0.19 N/A val N/A 0.5 N/A N/A np sqrt 2.0 N/A N/A R N/A N/A 0 0 val N/A N/A R N/A N/A 0 1 N/A val N/A N/A R N/A N/A 1 0 val N/A N/A R N/A N/A 1 1 val N/A T4 N/A from to trans N/A FIFF FIFFV_MNE_COORD_CTF_DEVICE N/A FIFF FIFFV_COORD_DEVICE R N/A h_pts N/A dict N/A d_pts N/A dict N/A kinds N/A N/A CTF CTFV_COIL_LPA N/A CTF CTFV_COIL_RPA N/A CTF CTFV_COIL_NAS N/A CTF CTFV_COIL_SPARE N/A N/A coils None N/A N/A p coils N/A N/A N/A p N/A valid N/A N/A N/A N/A p N/A coord_frame N/A FIFF FIFFV_MNE_COORD_CTF_HEAD N/A N/A kind kinds N/A N/A N/A N/A kind h_pts N/A N/A p N/A kind kind N/A N/A N/A h_pts N/A kind N/A p N/A r N/A N/A N/A N/A p N/A coord_frame N/A FIFF FIFFV_MNE_COORD_CTF_DEVICE N/A N/A kind kinds N/A N/A N/A N/A kind d_pts N/A N/A p N/A kind kind N/A N/A N/A d_pts N/A kind N/A p N/A r N/A N/A any N/A N/A kind h_pts N/A kind N/A kinds N/A -1 N/A N/A N/A RuntimeError Some of the mandatory HPI device-coordinate info was not there. N/A N/A any N/A N/A kind d_pts N/A kind N/A kinds N/A -1 N/A N/A N/A RuntimeError Some of the mandatory HPI head-coordinate info was not there. N/A use_kinds N/A kind N/A kind kinds N/A N/A kind h_pts N/A kind d_pts N/A r_head N/A N/A np array N/A N/A h_pts N/A kind N/A kind use_kinds N/A r_dev N/A N/A np array N/A N/A d_pts N/A kind N/A kind use_kinds N/A T2 N/A _quaternion_align N/A FIFF FIFFV_MNE_COORD_CTF_DEVICE N/A FIFF FIFFV_MNE_COORD_CTF_HEAD r_dev r_head N/A N/A N/A T3 None N/A T2 None N/A N/A T5 N/A combine_transforms T2 T3 N/A FIFF FIFFV_MNE_COORD_CTF_DEVICE N/A FIFF FIFFV_COORD_HEAD N/A T1 N/A combine_transforms N/A invert_transform T4 T5 N/A FIFF FIFFV_COORD_DEVICE N/A FIFF FIFFV_COORD_HEAD N/A s N/A dict t_dev_head T1 t_ctf_dev_ctf_head T2 t_ctf_head_head T3 t_ctf_dev_dev T4 t_ctf_dev_head T5 N/A N/A N/A logger info     Coordinate transformations established. N/A s N/A