Skip to content

Commit d54a928

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 3f9a504 commit d54a928

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test functions in heudiconv.bids module.
22
"""
33

4-
from heudiconv.bids import (
4+
from ..utils import (
55
maybe_na,
66
treat_age,
77
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
from random import sample
1212
from glob import glob
1313

14-
from .external.pydicom import dcm
14+
from ..external.pydicom import dcm
1515

16-
from .parser import find_files
17-
from .utils import (
16+
from ..parser import find_files
17+
from ..utils import (
1818
load_json,
1919
save_json,
2020
create_file_if_missing,
@@ -23,7 +23,7 @@
2323
is_readonly,
2424
get_datetime,
2525
)
26-
from . import __version__
26+
from .. import __version__
2727

2828
lgr = logging.getLogger(__name__)
2929

0 commit comments

Comments
 (0)