.
This commit is contained in:
+1
-2
@@ -940,8 +940,7 @@ class UncategorisedDicom(models.Model):
|
|||||||
|
|
||||||
def get_basic_dicom_tags(self):
|
def get_basic_dicom_tags(self):
|
||||||
try:
|
try:
|
||||||
ds = pydicom.read_file(self.image)
|
with pydicom.read_file(self.image) as ds:
|
||||||
|
|
||||||
to_include = (
|
to_include = (
|
||||||
"StudyDescription",
|
"StudyDescription",
|
||||||
"Modality",
|
"Modality",
|
||||||
|
|||||||
Reference in New Issue
Block a user