Skip to content

Commit ca48c66

Browse files
committed
Fix import in the test due to move + use str() since now tostring is gone
1 parent 4688912 commit ca48c66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

heudiconv/heuristics/convertall_custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def custom_seqinfo(series_files, wrapper, **kw): # noqa: U100
1818
from nibabel.nicom.dicomwrappers import WrapperError
1919

2020
try:
21-
affine = wrapper.affine.tostring()
21+
affine = str(wrapper.affine)
2222
except WrapperError:
2323
lgr.exception("Errored out while obtaining/converting affine") # noqa: F405
2424
affine = None

heudiconv/tests/test_dicoms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_group_dicoms_into_seqinfos() -> None:
102102
def test_custom_seqinfo() -> None:
103103
"""Tests for custom seqinfo extraction"""
104104

105-
from heudiconv.heuristics.convertall import custom_seqinfo
105+
from heudiconv.heuristics.convertall_custom import custom_seqinfo
106106

107107
dcmfiles = glob(op.join(TESTS_DATA_PATH, "phantom.dcm"))
108108

0 commit comments

Comments
 (0)