Skip to content

Commit 3a25458

Browse files
committed
Fix many more imports.
1 parent b7340be commit 3a25458

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

heudiconv/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,20 @@ def process_extra_commands(outdir, command, files, dicom_dir_template,
8383
elif command == 'sanitize-jsons':
8484
tuneup_bids_json_files(files)
8585
elif command == 'heuristics':
86-
from ..utils import get_known_heuristics_with_descriptions
86+
from .utils import get_known_heuristics_with_descriptions
8787
for name_desc in get_known_heuristics_with_descriptions().items():
8888
print("- %s: %s" % name_desc)
8989
elif command == 'heuristic-info':
9090
ensure_heuristic_arg(heuristic)
91-
from ..utils import get_heuristic_description
91+
from .utils import get_heuristic_description
9292
print(get_heuristic_description(heuristic, full=True))
9393
else:
9494
raise ValueError("Unknown command %s", command)
9595
return
9696

9797

9898
def ensure_heuristic_arg(heuristic=None):
99-
from ..utils import get_known_heuristic_names
99+
from .utils import get_known_heuristic_names
100100
if not heuristic:
101101
raise ValueError("Specify heuristic using -f. Known are: %s"
102102
% ', '.join(get_known_heuristic_names()))
@@ -293,7 +293,7 @@ def workflow(dicom_dir_template=None, files=None, subjs=None,
293293
# TODO: --datalad cmdline option, which would take care about initiating
294294
# the outdir -> study_outdir datasets if not yet there
295295
if datalad:
296-
from ..external.dlad import prepare_datalad
296+
from .external.dlad import prepare_datalad
297297
dlad_sid = sid if not anon_sid else anon_sid
298298
dl_msg = prepare_datalad(anon_study_outdir, anon_outdir, dlad_sid,
299299
session, seqinfo, dicoms,
@@ -322,7 +322,7 @@ def workflow(dicom_dir_template=None, files=None, subjs=None,
322322
str(dict(subject=sid, outdir=study_outdir, session=session))))
323323

324324
if datalad:
325-
from ..external.dlad import add_to_datalad
325+
from .external.dlad import add_to_datalad
326326
msg = "Converted subject %s" % dl_msg
327327
# TODO: whenever propagate to supers work -- do just
328328
# ds.save(msg=msg)

0 commit comments

Comments
 (0)