Skip to content

Commit

Permalink
fixed dicom write
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 24, 2024
1 parent d4da065 commit a39652f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medimages4tests/dummy/dicom/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a39652f

Please sign in to comment.