From f61b81c9574ffa1b558c015d95f1ffd4616129b5 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 5 Apr 2022 23:13:47 +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 1537a454..846d1bcc 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).joinpath(pathlib.Path(series_image.image.name)) + file_path = pathlib.Path(settings.MEDIA_ROOT) / series_image.image.name with pydicom.dcmread(file_path) as dataset: anonymizer.anonymize(dataset)