Refactor DICOM file reading to use dcmread for improved compatibility across models and helpers
This commit is contained in:
+1
-1
@@ -1470,7 +1470,7 @@ class UncategorisedDicom(models.Model):
|
||||
def get_basic_dicom_tags(self, dataset=None):
|
||||
try:
|
||||
if dataset is None:
|
||||
dataset = pydicom.read_file(self.image)
|
||||
dataset = pydicom.dcmread(self.image)
|
||||
to_include = (
|
||||
"StudyDescription",
|
||||
"Modality",
|
||||
|
||||
Reference in New Issue
Block a user