Skip to content

Commit 7de58c1

Browse files
authored
Merge pull request #563 from dbic/enh-release
Run codespell on some obvious typos
2 parents 0da0323 + 8775507 commit 7de58c1

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

heudiconv/cli/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def process(paths2process, db, wait=WAIT_TIME, logdir='log'):
7979

8080
def monitor(topdir='/tmp/new_dir', check_ptrn='/20../../..',
8181
db=None, wait=WAIT_TIME, logdir='log'):
82-
# make logdir if not existant
82+
# make logdir if not existent
8383
try:
8484
os.makedirs(logdir)
8585
except OSError:

heudiconv/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def conversion_info(subject, outdir, info, filegroup, ses):
5151
continue
5252
template, outtype = key[0], key[1]
5353
# So no annotation_classes of any kind! so if not used -- what was the
54-
# intension???? XXX
54+
# intention???? XXX
5555
outpath = outdir
5656
for idx, itemgroup in enumerate(items):
5757
if not isinstance(itemgroup, list):
@@ -131,7 +131,7 @@ def prep_conversion(sid, dicoms, outdir, heuristic, converter, anon_sid,
131131
# ref: https://github.com/nipy/heudiconv/issues/84#issuecomment-330048609
132132
# for more automagical wishes
133133
target_heuristic_filename = op.join(idir, 'heuristic.py')
134-
# faciliates change - TODO: remove in 1.0
134+
# facilitates change - TODO: remove in 1.0
135135
old_heuristic_filename = op.join(idir, op.basename(heuristic.filename))
136136
if op.exists(old_heuristic_filename):
137137
assure_no_file_exists(target_heuristic_filename)

heudiconv/heuristics/reproin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def infotodict(seqinfo):
551551
if isinstance(current_run, int)
552552
else current_run)
553553
else:
554-
# if there is no _run -- no run label addded
554+
# if there is no _run -- no run label added
555555
run_label = None
556556

557557
# yoh: had a wrong assumption

heudiconv/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_extracted_dicoms(fl):
7171
# raise ValueError("some but not all input files are tar files")
7272

7373
# tarfiles already know what they contain, and often the filenames
74-
# are unique, or at least in a unqiue subdir per session
74+
# are unique, or at least in a unique subdir per session
7575
# strategy: extract everything in a temp dir and assemble a list
7676
# of all files in all tarballs
7777

heudiconv/queue.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def clean_args(hargs, iterarg, iteridx):
9191
is_iterarg = False
9292
itercount = 0
9393

94-
indicies = []
94+
indices = []
9595
cmdargs = hargs[:]
9696

9797
for i, arg in enumerate(hargs):
@@ -100,13 +100,13 @@ def clean_args(hargs, iterarg, iteridx):
100100
is_iterarg = False
101101
if is_iterarg:
102102
if iteridx != itercount:
103-
indicies.append(i)
103+
indices.append(i)
104104
itercount += 1
105105
if arg in iterarg:
106106
is_iterarg = True
107107
if arg in queue_args:
108-
indicies.extend([i, i+1])
108+
indices.extend([i, i+1])
109109

110-
for j in sorted(indicies, reverse=True):
110+
for j in sorted(indices, reverse=True):
111111
del cmdargs[j]
112112
return cmdargs

heudiconv/tests/test_heuristics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_reproin_largely_smoke(tmpdir, heuristic, invocation):
6969
runner(args + ['--subjects', 'sub1', 'sub2'])
7070

7171
if heuristic != 'reproin':
72-
# if subject is not overriden, raise error
72+
# if subject is not overridden, raise error
7373
with pytest.raises(NotImplementedError):
7474
runner(args)
7575
return
@@ -158,7 +158,7 @@ def test_scout_conversion(tmpdir):
158158
# Let's do some basic checks on produced files
159159
j = load_json(sespath / 'fmap/sub-phantom1sid1_ses-localizer_acq-3mm_phasediff.json')
160160
# We store HeuDiConv version in each produced .json file
161-
# TODO: test that we are not somehow overwritting that version in existing
161+
# TODO: test that we are not somehow overwriting that version in existing
162162
# files which we have not produced in a particular run.
163163
assert j[HEUDICONV_VERSION_JSON_KEY] == __version__
164164

0 commit comments

Comments
 (0)