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