.
This commit is contained in:
+1
-1
@@ -459,7 +459,7 @@ class RapidImage(models.Model):
|
||||
try:
|
||||
hash = ",".join(pydicom.dcmread(self.image).pixel_array.tostring())
|
||||
self.is_dicom = True
|
||||
except pydicom.errors.InvalidImageFormatError:
|
||||
except pydicom.errors.InvalidDicomError:
|
||||
hash = hashlib.md5(self.image).hexdigest()
|
||||
|
||||
self.image_md5_hash = hash
|
||||
|
||||
Reference in New Issue
Block a user