fixes before release

This commit is contained in:
2026-08-10 16:47:32 -07:00
parent 074a0681b9
commit 1e7fca49f2
6 changed files with 35 additions and 21 deletions
+9 -2
View File
@@ -1840,7 +1840,8 @@ def fold_channels(raw: BaseRaw, p_name: str, atlas: str='Brodmann', progress_que
channel_results = {}
step_idx = 0
for cidx, channel_name in enumerate(hbo_channel_names):
for channel_name in hbo_channel_names:
cidx = raw.ch_names.index(channel_name)
tbl = _source_detector_fold_table(
raw, cidx, reference_locations, fold_tbl, interpolate=True
)
@@ -2179,8 +2180,14 @@ def brain_3d_visualization(
def brain_landmarks_3d(raw_haemo: BaseRaw, show_optodes: Literal['sensors', 'labels', 'none', 'all'] = 'all', show_brodmann: bool = True) -> None:
def brain_landmarks_3d(raw_haemo: BaseRaw, show_optodes: Literal['sensors', 'labels', 'none', 'all'] = 'all', show_brodmann: bool = True, subjects_dir = None) -> None:
if subjects_dir is None:
subjects_dir = os.environ.get("SUBJECTS_DIR")
if subjects_dir is None:
subjects_dir = str(data_path()) + "/subjects" # type: ignore
os.environ["SUBJECTS_DIR"] = subjects_dir
brain = Brain("fsaverage", background="white", size=(800, 700)) # type: ignore
distances = source_detector_distances(raw_haemo.info)