MCPcopy
hub / github.com/mne-tools/mne-python / is_fixed_orient

Function is_fixed_orient

mne/forward/forward.py:1066–1086  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1064
1065
1066def 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

Callers 15

test_convert_forwardFunction · 0.90
test_io_forwardFunction · 0.90
test_priorsFunction · 0.90
apply_solverFunction · 0.85
sensitivity_mapFunction · 0.85
read_forward_solutionFunction · 0.85
convert_forward_solutionFunction · 0.85
compute_orient_priorFunction · 0.85
compute_depth_priorFunction · 0.85
_apply_forwardFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_convert_forwardFunction · 0.72
test_io_forwardFunction · 0.72
test_priorsFunction · 0.72