From a39652fd3f207cfb3f125ec5fefafbe254f1a868 Mon Sep 17 00:00:00 2001 From: Tom Close Date: Tue, 24 Sep 2024 16:19:52 +1000 Subject: [PATCH] fixed dicom write --- medimages4tests/dummy/dicom/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medimages4tests/dummy/dicom/base.py b/medimages4tests/dummy/dicom/base.py index eaa2dd9..d5146c2 100644 --- a/medimages4tests/dummy/dicom/base.py +++ b/medimages4tests/dummy/dicom/base.py @@ -81,7 +81,7 @@ def generate_dicom( ds.is_implicit_VR = True ds.is_little_endian = True - ds.save_as(cache_path / f"{i}.dcm", write_like_original=False) + ds.save_as(cache_path / f"{i}.dcm", enforce_file_format=True) except Exception: shutil.rmtree(cache_path) # Remove directory from cache on error raise