.
This commit is contained in:
+1
-1
@@ -317,7 +317,7 @@ class LongSeriesImage(models.Model):
|
||||
|
||||
def get_dicom_info(self):
|
||||
try:
|
||||
info = pydicom.read_file(self.image)
|
||||
info = pydicom.read_file(self.image).to_json()
|
||||
except pydicom.errors.InvalidDicomError:
|
||||
info = "File is not a dicom."
|
||||
return(info)
|
||||
|
||||
Reference in New Issue
Block a user