Skip to content

Commit

Permalink
[BUG, MRG] Remove check on mne.viz.Brain.add_volume_labels (mne-too…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill authored and snwnde committed Mar 20, 2024
1 parent ddfb3c7 commit 72d153c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/viz/_brain/_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 72d153c

Please sign in to comment.