Skip to content

Commit 00f8b56

Browse files
committed
TMP: just a demonstration on how custom_seqinfo could/should be used
1 parent f1d2a08 commit 00f8b56

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

heudiconv/heuristics/convertall.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ def create_key(template, outtype=('nii.gz',), annotation_classes=None):
77
return template, outtype, annotation_classes
88

99

10+
def custom_seqinfo(series_files, wrapper, **kw):
11+
# Just a dummy demo for what custom_seqinfo could get/do
12+
# for already loaded DICOM data, and including storing/returning
13+
# the sample series file as was requested
14+
# in https://github.com/nipy/heudiconv/pull/333
15+
return wrapper.affine, series_files[0]
16+
17+
1018
def infotodict(seqinfo):
1119
"""Heuristic evaluator for determining which runs belong where
1220

0 commit comments

Comments
 (0)