Skip to content

Commit 12e94ea

Browse files
committed
fix: minmeta added to convert and assertion removed to enable numeric comparison
1 parent 31e5109 commit 12e94ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/heudiconv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ def json_dumps_pretty(j, indent=2, sort_keys=True):
233233
# no spaces after [
234234
js_ = re.sub('\[ ', '[', js_)
235235
j_ = json.loads(js_)
236-
assert(j == j_)
236+
# Removed assert as it does not do any floating point comparison
237+
#assert(j == j_)
237238
return js_
238239

239240

@@ -412,11 +413,9 @@ def group_dicoms_into_seqinfos(
412413
series_id = series_id + (file_studyUID,)
413414

414415

415-
#print fidx, N, filename
416416
ingrp = False
417417
for idx in range(len(mwgroup)):
418418
same = mw.is_same_series(mwgroup[idx])
419-
#print idx, same, groups[idx][0]
420419
if same:
421420
# the same series should have the same study uuid
422421
assert mwgroup[idx].dcm_data.get('StudyInstanceUID', None) == file_studyUID
@@ -1348,7 +1347,8 @@ def convert_dicoms(sid,
13481347
with_prov=with_prov,
13491348
is_bids=is_bids,
13501349
sourcedir=sourcedir,
1351-
outdir=tdir)
1350+
outdir=tdir,
1351+
min_meta=min_meta)
13521352

13531353
if is_bids:
13541354
if seqinfo:

0 commit comments

Comments
 (0)