diff --git a/heudiconv/heuristics/convertall.py b/heudiconv/heuristics/convertall.py index 20f52019..9afede7d 100644 --- a/heudiconv/heuristics/convertall.py +++ b/heudiconv/heuristics/convertall.py @@ -1,10 +1,13 @@ from __future__ import annotations +import logging from typing import Any, Optional from heudiconv.dicoms import dw from heudiconv.utils import SeqInfo +lgr = logging.getLogger('heudiconv') + def create_key( template: Optional[str], @@ -25,6 +28,7 @@ def custom_seqinfo(wrapper: dw.Wrapper, series_files: list[str], **kw: Any) -> t try: affine = wrapper.affine.tostring() except WrapperError: + lgr.exception("Errored out while obtaining/converting affine") affine = None return affine, series_files[0]