Skip to content

Commit 0f5846a

Browse files
committed
Log exception (as error) if we fail to obtain affine in convertall
1 parent 678f816 commit 0f5846a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

heudiconv/heuristics/convertall.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
from __future__ import annotations
22

3+
import logging
34
from typing import Any, Optional
45

56
from heudiconv.dicoms import dw
67
from heudiconv.utils import SeqInfo
78

9+
lgr = logging.getLogger('heudiconv')
10+
811

912
def create_key(
1013
template: Optional[str],
@@ -25,6 +28,7 @@ def custom_seqinfo(wrapper: dw.Wrapper, series_files: list[str], **kw: Any) -> t
2528
try:
2629
affine = wrapper.affine.tostring()
2730
except WrapperError:
31+
lgr.exception("Errored out while obtaining/converting affine")
2832
affine = None
2933
return affine, series_files[0]
3034

0 commit comments

Comments
 (0)