This commit is contained in:
Ross
2021-11-21 10:43:30 +00:00
parent a0c3fdbe0c
commit f57da9ec49
+1 -1
View File
@@ -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: