From f57da9ec491dc8465104676fb0e418b59eaee4c7 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 21 Nov 2021 10:43:30 +0000 Subject: [PATCH] . --- rapids/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rapids/models.py b/rapids/models.py index 96e5c2f0..ab2b7fed 100644 --- a/rapids/models.py +++ b/rapids/models.py @@ -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: