Check if the forward operator is fixed orientation. Parameters ---------- forward : instance of Forward The forward. orig : bool If True, consider the original source orientation. If False (default), consider the current source orientation. Returns -
(forward, orig=False)
| 1064 | |
| 1065 | |
| 1066 | def is_fixed_orient(forward, orig=False): |
| 1067 | """Check if the forward operator is fixed orientation. |
| 1068 | |
| 1069 | Parameters |
| 1070 | ---------- |
| 1071 | forward : instance of Forward |
| 1072 | The forward. |
| 1073 | orig : bool |
| 1074 | If True, consider the original source orientation. |
| 1075 | If False (default), consider the current source orientation. |
| 1076 | |
| 1077 | Returns |
| 1078 | ------- |
| 1079 | fixed_ori : bool |
| 1080 | Whether or not it is fixed orientation. |
| 1081 | """ |
| 1082 | if orig: # if we want to know about the original version |
| 1083 | fixed_ori = forward["_orig_source_ori"] == FIFF.FIFFV_MNE_FIXED_ORI |
| 1084 | else: # most of the time we want to know about the current version |
| 1085 | fixed_ori = forward["source_ori"] == FIFF.FIFFV_MNE_FIXED_ORI |
| 1086 | return fixed_ori |
| 1087 | |
| 1088 | |
| 1089 | @fill_doc |
no outgoing calls