@@ -83,20 +83,20 @@ def process_extra_commands(outdir, command, files, dicom_dir_template,
83
83
elif command == 'sanitize-jsons' :
84
84
tuneup_bids_json_files (files )
85
85
elif command == 'heuristics' :
86
- from .. utils import get_known_heuristics_with_descriptions
86
+ from .utils import get_known_heuristics_with_descriptions
87
87
for name_desc in get_known_heuristics_with_descriptions ().items ():
88
88
print ("- %s: %s" % name_desc )
89
89
elif command == 'heuristic-info' :
90
90
ensure_heuristic_arg (heuristic )
91
- from .. utils import get_heuristic_description
91
+ from .utils import get_heuristic_description
92
92
print (get_heuristic_description (heuristic , full = True ))
93
93
else :
94
94
raise ValueError ("Unknown command %s" , command )
95
95
return
96
96
97
97
98
98
def ensure_heuristic_arg (heuristic = None ):
99
- from .. utils import get_known_heuristic_names
99
+ from .utils import get_known_heuristic_names
100
100
if not heuristic :
101
101
raise ValueError ("Specify heuristic using -f. Known are: %s"
102
102
% ', ' .join (get_known_heuristic_names ()))
@@ -293,7 +293,7 @@ def workflow(dicom_dir_template=None, files=None, subjs=None,
293
293
# TODO: --datalad cmdline option, which would take care about initiating
294
294
# the outdir -> study_outdir datasets if not yet there
295
295
if datalad :
296
- from .. external .dlad import prepare_datalad
296
+ from .external .dlad import prepare_datalad
297
297
dlad_sid = sid if not anon_sid else anon_sid
298
298
dl_msg = prepare_datalad (anon_study_outdir , anon_outdir , dlad_sid ,
299
299
session , seqinfo , dicoms ,
@@ -322,7 +322,7 @@ def workflow(dicom_dir_template=None, files=None, subjs=None,
322
322
str (dict (subject = sid , outdir = study_outdir , session = session ))))
323
323
324
324
if datalad :
325
- from .. external .dlad import add_to_datalad
325
+ from .external .dlad import add_to_datalad
326
326
msg = "Converted subject %s" % dl_msg
327
327
# TODO: whenever propagate to supers work -- do just
328
328
# ds.save(msg=msg)
0 commit comments