Skip to content

Commit 7be4c85

Browse files
committed
RF: move .bids into .bids/ subpackage and move tests along
This would open for a better structuring of BIDS support code etc. All bids.utils are imported within bids/__init__.py so there should be no effect on imports from heudiconv.bids
1 parent cb2fd91 commit 7be4c85

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

heudiconv/bids/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .utils import *

heudiconv/bids/tests/__init__.py

Whitespace-only changes.

heudiconv/tests/test_bids.py renamed to heudiconv/bids/tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
remove_suffix,
2929
)
3030

31-
from heudiconv.bids import (
31+
from .. import (
3232
maybe_na,
3333
treat_age,
3434
find_fmap_groups,
@@ -44,7 +44,7 @@
4444
BIDSFile,
4545
)
4646

47-
from .utils import (
47+
from heudiconv.tests.utils import (
4848
TESTS_DATA_PATH,
4949
)
5050

heudiconv/bids.py renamed to heudiconv/bids/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
from glob import glob
1414
import errno
1515

16-
from .external.pydicom import dcm
16+
from ..external.pydicom import dcm
1717

18-
from .parser import find_files
19-
from .utils import (
18+
from ..parser import find_files
19+
from ..utils import (
2020
load_json,
2121
save_json,
2222
create_file_if_missing,
@@ -28,7 +28,7 @@
2828
remove_suffix,
2929
remove_prefix,
3030
)
31-
from . import __version__
31+
from .. import __version__
3232

3333
lgr = logging.getLogger(__name__)
3434

0 commit comments

Comments
 (0)