Skip to content

Commit

Permalink
Pass force
Browse files Browse the repository at this point in the history
  • Loading branch information
pchlap committed Feb 22, 2022
1 parent feb5b43 commit 1af5cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platipy/dicom/io/rtdose_to_nifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def convert_rtdose(dcm_dose, force=False, dose_output_path=None):
SimpleITK.Image: The dose grid as a SimpleITK image
"""

ds = pydicom.read_file(dcm_dose)
ds = pydicom.read_file(dcm_dose, force=force)
dose = sitk.ReadImage(str(dcm_dose))
dose = sitk.Cast(dose, sitk.sitkFloat32)
dose = dose * ds.DoseGridScaling
Expand Down

0 comments on commit 1af5cab

Please sign in to comment.