diff --git a/heudiconv/dicoms.py b/heudiconv/dicoms.py index 2c3d8029..1d276e39 100644 --- a/heudiconv/dicoms.py +++ b/heudiconv/dicoms.py @@ -46,6 +46,11 @@ # suppress warning import nibabel.nicom.dicomwrappers as dw +# TODO: remove the kludge whenever +# https://github.com/moloney/dcmstack/pull/90 is merged and released +if not hasattr(dcm, "read_file"): + dcm.read_file = dcm.dcmread + lgr = logging.getLogger(__name__) total_files = 0 # Might be monkey patched by user heuristic to tune desired compression level. diff --git a/tox.ini b/tox.ini index 5e62db0c..55eca3e0 100644 --- a/tox.ini +++ b/tox.ini @@ -42,6 +42,8 @@ filterwarnings = ignore:.*pkg_resources:DeprecationWarning # ignore:.*Use setlocale.* instead:DeprecationWarning:nipype + # + ignore:.*datetime.datetime.utcnow\(\) is deprecated.*:DeprecationWarning:nipype [coverage:run] include = heudiconv/*