Skip to content

Commit 34eac43

Browse files
authored
Merge pull request #86 from satra/fix/metacompare
fix: minmeta added to convert and assertion removed to enable numeric comparison
2 parents 31e5109 + d1268c7 commit 34eac43

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ RUN conda install -y -c conda-forge nipype && \
1515
pip install https://github.com/moloney/dcmstack/archive/c12d27d2c802d75a33ad70110124500a83e851ee.zip && \
1616
pip install datalad && \
1717
conda clean -tipsy && rm -rf ~/.pip/
18-
RUN cd /tmp && git clone https://github.com/neurolabusc/dcm2niix.git && \
18+
RUN apt-get update && apt-get upgrade -y && \
19+
apt-get install -y pigz && \
20+
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && \
21+
cd /tmp && git clone https://github.com/neurolabusc/dcm2niix.git && \
1922
cd dcm2niix && \
20-
git checkout 60bab318ee738b644ebb1396bbb8cbe1b006218f && \
23+
git checkout 0dc154d9aab4679e487abeaee1759c61559fc7a8 && \
2124
mkdir build && cd build && cmake -DBATCH_VERSION=ON .. && \
2225
make && make install && \
2326
cd / && rm -rf /tmp/dcm2niix

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)