Skip to content

Commit

Permalink
consistent affien pydicom/itk backend test_load_image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wyli authored Sep 5, 2023
1 parent 26e8913 commit b5038a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_load_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ def test_dicom_reader_consistency_single(self):
itk_result = LoadImage(image_only=True, **itk_param)(self.data_dir)
pydicom_result = LoadImage(image_only=True, **pydicom_param)(self.data_dir)
np.testing.assert_allclose(pydicom_result, itk_result.squeeze())
np.testing.assert_allclose(pydicom_result.affine[:2, :2], itk_result.affine[:2, :2])
np.testing.assert_allclose(pydicom_result.affine[..., 3], itk_result.affine[..., 3])
np.testing.assert_allclose(pydicom_result.affine, itk_result.affine)

Check warning on line 279 in tests/test_load_image.py

View check run for this annotation

Codecov / codecov/patch

tests/test_load_image.py#L271-L279

Added lines #L271 - L279 were not covered by tests

def test_load_nifti_multichannel(self):
test_image = np.random.randint(0, 256, size=(31, 64, 16, 2)).astype(np.float32)
Expand Down

0 comments on commit b5038a3

Please sign in to comment.