Skip to content

Commit

Permalink
removed check for python version, as it is pydicom version that is pe…
Browse files Browse the repository at this point in the history
…rtinent
  • Loading branch information
tclose committed Sep 24, 2024
1 parent 4f5db62 commit 1fa9bd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions medimages4tests/dummy/dicom/base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from pathlib import Path
import shutil
import sys
import typing as ty
from copy import copy, deepcopy
import pydicom.dataset
Expand Down Expand Up @@ -81,7 +80,7 @@ def generate_dicom(
ds = pydicom.dataset.Dataset.from_json(vol_json)
ds.is_implicit_VR = True
ds.is_little_endian = True
if sys.version_info < (3, 10) or pydicom.__version__.split(".")[0] < "3":
if pydicom.__version__.split(".")[0] < "3":
save_kwargs = {"write_like_original": False}
else:
save_kwargs = {"enforce_file_format": True}
Expand Down

0 comments on commit 1fa9bd9

Please sign in to comment.