File tree Expand file tree Collapse file tree 4 files changed +5
-198
lines changed Expand file tree Collapse file tree 4 files changed +5
-198
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ classifiers = [
2121license = {file = " LICENSE" }
2222requires-python = " >=3.9"
2323dependencies = [
24+ " acres >= 0.5.0" ,
2425 " pybids >= 0.15.2" ,
25- " importlib_resources >= 5.7; python_version < '3.11'" ,
2626 " requests" ,
2727 " tqdm" ,
2828]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3131from click .decorators import FC , Option , _param_memo
3232
3333from templateflow import __package__ , api
34- from templateflow . _loader import Loader as _Loader
34+ from acres import Loader as _Loader
3535from templateflow .conf import TF_AUTOUPDATE , TF_HOME , TF_USE_DATALAD
3636
3737load_data = _Loader (__package__ )
@@ -58,7 +58,7 @@ def _nulls(s):
5858def entity_opts ():
5959 """Attaches all entities as options to the command."""
6060
61- entities = json .loads (Path ( load_data ('conf/config.json' ) ).read_text ())['entities' ]
61+ entities = json .loads (load_data ('conf/config.json' ).read_text ())['entities' ]
6262
6363 args = [
6464 (f'--{ e ["name" ]} ' , * ENTITY_SHORTHANDS .get (e ['name' ], ()))
Original file line number Diff line number Diff line change 77from pathlib import Path
88from warnings import warn
99
10- from .. _loader import Loader
10+ from acres import Loader
1111
12- load_data = Loader (__package__ )
12+ load_data = Loader (__spec__ . name )
1313
1414
1515def _env_to_bool (envvar : str , default : bool ) -> bool :
You can’t perform that action at this time.
0 commit comments