Skip to content

Commit 1b0bb5a

Browse files
authored
Merge pull request #782 from yarikoptic/bf-pydicom
Fixup testing: kludge for pydicom 3.0.0 in dcmstack, ignore some warnings from nipype for python 3.12
2 parents ca24297 + bf793c9 commit 1b0bb5a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

heudiconv/dicoms.py

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
# suppress warning
4747
import nibabel.nicom.dicomwrappers as dw
4848

49+
# TODO: remove the kludge whenever
50+
# https://github.com/moloney/dcmstack/pull/90 is merged and released
51+
if not hasattr(dcm, "read_file"):
52+
dcm.read_file = dcm.dcmread
53+
4954
lgr = logging.getLogger(__name__)
5055
total_files = 0
5156
# Might be monkey patched by user heuristic to tune desired compression level.

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ filterwarnings =
4242
ignore:.*pkg_resources:DeprecationWarning
4343
# <https://github.com/nipy/nipype/issues/3563>
4444
ignore:.*Use setlocale.* instead:DeprecationWarning:nipype
45+
# <https://github.com/nipy/nipype/pull/3670>
46+
ignore:.*datetime.datetime.utcnow\(\) is deprecated.*:DeprecationWarning:nipype
4547

4648
[coverage:run]
4749
include = heudiconv/*

0 commit comments

Comments
 (0)