|
5 | 5 | from argparse import ArgumentParser
|
6 | 6 | import sys
|
7 | 7 |
|
8 |
| -from .. import __version__, __packagename__ |
9 |
| -from ..parser import get_study_sessions |
10 |
| -from ..utils import load_heuristic, anonymize_sid, treat_infofile, SeqInfo |
11 |
| -from ..convert import prep_conversion |
12 |
| -from ..bids import populate_bids_templates, tuneup_bids_json_files |
13 |
| -from ..queue import queue_conversion |
| 8 | +from heudiconv import __version__, __packagename__ |
| 9 | +from heudiconv.parser import get_study_sessions |
| 10 | +from heudiconv.utils import load_heuristic, anonymize_sid, treat_infofile, SeqInfo |
| 11 | +from heudiconv.convert import prep_conversion |
| 12 | +from heudiconv.bids import populate_bids_templates, tuneup_bids_json_files |
| 13 | +from heudiconv.queue import queue_conversion |
14 | 14 |
|
15 | 15 | import inspect
|
16 | 16 | import logging
|
@@ -84,11 +84,11 @@ def process_extra_commands(outdir, args):
|
84 | 84 | elif args.command == 'sanitize-jsons':
|
85 | 85 | tuneup_bids_json_files(args.files)
|
86 | 86 | elif args.command == 'heuristics':
|
87 |
| - from ..utils import get_known_heuristics_with_descriptions |
| 87 | + from heudiconv.utils import get_known_heuristics_with_descriptions |
88 | 88 | for name_desc in get_known_heuristics_with_descriptions().items():
|
89 | 89 | print("- %s: %s" % name_desc)
|
90 | 90 | elif args.command == 'heuristic-info':
|
91 |
| - from ..utils import get_heuristic_description, get_known_heuristic_names |
| 91 | + from heudiconv.utils import get_heuristic_description, get_known_heuristic_names |
92 | 92 | if not args.heuristic:
|
93 | 93 | raise ValueError("Specify heuristic using -f. Known are: %s"
|
94 | 94 | % ', '.join(get_known_heuristic_names()))
|
|
0 commit comments