Skip to content

Commit

Permalink
Fix import in the test due to move + use str() since now tostring is …
Browse files Browse the repository at this point in the history
…gone
  • Loading branch information
yarikoptic committed Feb 28, 2024
1 parent 4688912 commit ca48c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion heudiconv/heuristics/convertall_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def custom_seqinfo(series_files, wrapper, **kw): # noqa: U100
from nibabel.nicom.dicomwrappers import WrapperError

try:
affine = wrapper.affine.tostring()
affine = str(wrapper.affine)
except WrapperError:
lgr.exception("Errored out while obtaining/converting affine") # noqa: F405
affine = None
Expand Down
2 changes: 1 addition & 1 deletion heudiconv/tests/test_dicoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_group_dicoms_into_seqinfos() -> None:
def test_custom_seqinfo() -> None:
"""Tests for custom seqinfo extraction"""

from heudiconv.heuristics.convertall import custom_seqinfo
from heudiconv.heuristics.convertall_custom import custom_seqinfo

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

Expand Down

0 comments on commit ca48c66

Please sign in to comment.