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.