diff --git a/heudiconv/heuristics/convertall.py b/heudiconv/heuristics/convertall.py index 6187b344..4ed125d8 100644 --- a/heudiconv/heuristics/convertall.py +++ b/heudiconv/heuristics/convertall.py @@ -1,5 +1,8 @@ +import logging import os +lgr = logging.getLogger('heudiconv') + def create_key(template, outtype=('nii.gz',), annotation_classes=None): if template is None or not template: @@ -16,6 +19,7 @@ def custom_seqinfo(series_files, wrapper, **kw): try: affine = wrapper.affine.tostring() except WrapperError: + lgr.exception("Errored out while obtaining/converting affine") affine = None return affine, series_files[0]