.
This commit is contained in:
+1
-1
@@ -457,7 +457,7 @@ class RapidImage(models.Model):
|
||||
if self.image:
|
||||
# Try and read the file as a dicom
|
||||
try:
|
||||
hash = ",".join(pydicom.dcmread(self.image.path).pixel_array.to())
|
||||
hash = ",".join(pydicom.dcmread(self.image.path).pixel_array.tostring())
|
||||
self.is_dicom = True
|
||||
except pydicom.errors.InvalidDicomError:
|
||||
with self.image.open("r") as f:
|
||||
|
||||
Reference in New Issue
Block a user