Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/rework_mne_bids_pat…
Browse files Browse the repository at this point in the history
…h_match' into rework_mne_bids_path_match
  • Loading branch information
waldie11 committed Dec 19, 2024
2 parents 8b86893 + a965a0d commit 09ba143
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mne_bids/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
from copy import deepcopy
from datetime import datetime
from io import StringIO
from itertools import chain as iter_chain
from os import path as op
from pathlib import Path
from textwrap import indent
from itertools import chain as iter_chain

import numpy as np
from mne.utils import _check_fname, _validate_type, logger, verbose
Expand Down Expand Up @@ -2472,7 +2472,6 @@ def _return_root_paths(root, datatype=None, ignore_json=True, ignore_nosub=False
search_str = "*.*"
paths = root.rglob(search_str)
else:

if datatype is not None:
datatype = _ensure_tuple(datatype)
search_str = f'**/{"|".join(datatype)}/*'
Expand Down

0 comments on commit 09ba143

Please sign in to comment.