enh: drop ``BIDS_NAME`` pattern as it is not necessary anymore
@@ -14,17 +14,6 @@ import warnings
from bids import BIDSLayout
from packaging.version import Version
-__all__ = ['BIDS_NAME']
-
-BIDS_NAME = re.compile(
- r'^(.*\/)?'
- '(?P<subject_id>sub-[a-zA-Z0-9]+)'
- '(_(?P<session_id>ses-[a-zA-Z0-9]+))?'
- '(_(?P<task_id>task-[a-zA-Z0-9]+))?'
- '(_(?P<acq_id>acq-[a-zA-Z0-9]+))?'
- '(_(?P<rec_id>rec-[a-zA-Z0-9]+))?'
- '(_(?P<run_id>run-[a-zA-Z0-9]+))?')
-
class BIDSError(ValueError):
def __init__(self, message, bids_root):
