diff --git a/mne/viz/_brain/_brain.py b/mne/viz/_brain/_brain.py index b0ebce4a50c..02ab07d422d 100644 --- a/mne/viz/_brain/_brain.py +++ b/mne/viz/_brain/_brain.py @@ -2628,8 +2628,8 @@ def add_volume_labels( import nibabel as nib # load anatomical segmentation image - if not aseg.endswith("aseg"): - raise RuntimeError(f'`aseg` file path must end with "aseg", got {aseg}') + if not aseg.endswith(("aseg", "parc")): + raise RuntimeError(f"Expected `aseg` file path, {aseg} suffix") aseg = str( _check_fname( op.join(