From 9f350375f03946b424f8ed36c462a39565c45de6 Mon Sep 17 00:00:00 2001 From: waldie11 <86674066+waldie11@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:52:27 +0100 Subject: [PATCH] pre-commit changes --- mne_bids/path.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mne_bids/path.py b/mne_bids/path.py index bde6f654a..10037e922 100644 --- a/mne_bids/path.py +++ b/mne_bids/path.py @@ -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 @@ -2476,7 +2476,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)}/*'