jrkerns / pylinac

An image analysis library for medical physics
https://pylinac.readthedocs.io/en/latest/
MIT License
153 stars 98 forks source link

Use a copy of the DICOM pixel_array dataset for the DicomImage class #304

Closed randlet closed 4 years ago

randlet commented 4 years ago

This change prevents ValueError's when trying to do things like self.array -= foo in the DicomArray class which currently cause a "ValueError: output array is read-only" exception to be raised.

Resolves Issue #303

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 83.843% when pulling 90f08bb901dc6ab1e8e9e7d3abac34f49d87c168 on randlet:patch-2 into 1230dc797147532ba8da0a8c361590d729b925a7 on jrkerns:master.