Skip to content

Commit

Permalink
fixed up test dicom test
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 27, 2024
1 parent f5ecd50 commit b701899
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_dicom.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def test_dicom_creation(dicom_module):
out_dir = Path(tempfile.mkdtemp())

# Generate DICOM files
dicom_module.get_image(out_dir)
dicom_dir = dicom_module.get_image(out_dir)

assert len(list(out_dir.glob('*.dcm'))) == dicom_module.num_vols
assert len(list(dicom_dir.glob("*.dcm"))) == dicom_module.num_vols

for p in out_dir.glob('*.dcm'):
for p in dicom_dir.glob("*.dcm"):
pydicom.dcmread(p) # Check dicom file can be read

0 comments on commit b701899

Please sign in to comment.