From b76b5953c8e133bf0a894dd8b6b4ebb7d84fb854 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 5 Apr 2022 23:16:13 +0100 Subject: [PATCH] . --- atlas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index 846d1bcc..987360fd 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -578,7 +578,7 @@ class Series(models.Model): anonymizer = dicognito.anonymizer.Anonymizer() for series_image in self.images.all(): - file_path = pathlib.Path(settings.MEDIA_ROOT) / series_image.image.name + file_path = os.path.join(settings.MEDIA_ROOT, series_image.image.name) with pydicom.dcmread(file_path) as dataset: anonymizer.anonymize(dataset)