We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b2bf1bd + 4f5db62 commit 55f0a79Copy full SHA for 55f0a79
medimages4tests/dummy/dicom/base.py
@@ -81,7 +81,7 @@ def generate_dicom(
81
ds = pydicom.dataset.Dataset.from_json(vol_json)
82
ds.is_implicit_VR = True
83
ds.is_little_endian = True
84
- if sys.version_info < (3, 10):
+ if sys.version_info < (3, 10) or pydicom.__version__.split(".")[0] < "3":
85
save_kwargs = {"write_like_original": False}
86
else:
87
save_kwargs = {"enforce_file_format": True}
0 commit comments