Skip to content

Commit

Permalink
BF(workaround): add kludge for read_file for dcmstack
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Sep 13, 2024
1 parent bc191af commit bf793c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions heudiconv/dicoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf793c9

Please sign in to comment.