Skip to content

Commit

Permalink
TMP: just a demonstration on how custom_seqinfo could/should be used
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Feb 8, 2023
1 parent f1d2a08 commit 00f8b56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions heudiconv/heuristics/convertall.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ def create_key(template, outtype=('nii.gz',), annotation_classes=None):
return template, outtype, annotation_classes


def custom_seqinfo(series_files, wrapper, **kw):
# Just a dummy demo for what custom_seqinfo could get/do
# for already loaded DICOM data, and including storing/returning
# the sample series file as was requested
# in https://github.com/nipy/heudiconv/pull/333
return wrapper.affine, series_files[0]


def infotodict(seqinfo):
"""Heuristic evaluator for determining which runs belong where
Expand Down

0 comments on commit 00f8b56

Please sign in to comment.