File, Directory, InputMultiObject, OutputMultiObject, Str, SimpleInterface, ) from nipype.interfaces.io import add_traits from templateflow.api import templates as _get_template_list from ..utils.bids import _init_layout, relative_to_root from ..utils.images import overwrite_header from ..utils.misc import splitext as _splitext, _copy_any regz = re.compile(r"\.gz$") _pybids_spec = loads( Path(_pkgres("niworkflows", "data/nipreps.json")).read_text()) BIDS_DERIV_ENTITIES = frozenset({e["name"] for e in _pybids_spec["entities"]}) BIDS_DERIV_PATTERNS = tuple(_pybids_spec["default_path_patterns"]) STANDARD_SPACES = _get_template_list() LOGGER = logging.getLogger("nipype.interface") def _none(): return None # Automatically coerce certain suffixes (DerivativesDataSink) DEFAULT_DTYPES = defaultdict( _none, (
File, Directory, InputMultiObject, OutputMultiObject, Str, SimpleInterface, ) from nipype.interfaces.io import add_traits from templateflow.api import templates as _get_template_list from ..utils.bids import _init_layout, relative_to_root from ..utils.images import overwrite_header from ..utils.misc import splitext as _splitext, _copy_any regz = re.compile(r"\.gz$") _pybids_spec = loads( Path(_pkgres("aslprep", "niworkflows/data/nipreps.json")).read_text()) BIDS_DERIV_ENTITIES = frozenset({e["name"] for e in _pybids_spec["entities"]}) BIDS_DERIV_PATTERNS = tuple(_pybids_spec["default_path_patterns"]) STANDARD_SPACES = _get_template_list() LOGGER = logging.getLogger("nipype.interface") def _none(): return None # Automatically coerce certain suffixes (DerivativesDataSink) DEFAULT_DTYPES = defaultdict( _none, (