.
This commit is contained in:
+3
-3
@@ -463,9 +463,9 @@ class RapidImage(models.Model):
|
|||||||
print(dataset)
|
print(dataset)
|
||||||
flatten = dataset.pixel_array.astype(str).flatten()
|
flatten = dataset.pixel_array.astype(str).flatten()
|
||||||
print("flatteded")
|
print("flatteded")
|
||||||
#pre_join = [str(i) for i in flatten]
|
pre_join = ",".join(flatten).encode()
|
||||||
#print(pre_join)
|
print(pre_join)
|
||||||
hash = hashlib.md5(",".join(flatten).encode()).hexdigest()
|
hash = hashlib.md5(pre_join).hexdigest()
|
||||||
|
|
||||||
self.is_dicom = True
|
self.is_dicom = True
|
||||||
except pydicom.errors.InvalidDicomError:
|
except pydicom.errors.InvalidDicomError:
|
||||||
|
|||||||
Reference in New Issue
Block a user