Skip to content

Commit 789e533

Browse files
SID-6921Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Siddhardha Nanda <99672439+SID-6921@users.noreply.github.com>
1 parent 88ffd80 commit 789e533

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/data/test_init_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ def test_pydicom_reader_get_affine_multi_slice_uses_last_position(self):
125125
"00200037": {"Value": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0]},
126126
"00200032": {"Value": [0.0, 0.0, 0.0]},
127127
"00280030": {"Value": [1.0, 1.0]},
128-
"lastImagePositionPatient": np.array([0.0, 0.0, 4.0]),
128+
"lastImagePositionPatient": np.array([0.0, 0.0, 8.0]),
129129
MetaKeys.SPATIAL_SHAPE: np.array([8, 8, 5]),
130130
}
131131

132132
affine = reader._get_affine(metadata, lps_to_ras=False)
133133

134134
np.testing.assert_allclose(affine[0, 2], 0.0)
135135
np.testing.assert_allclose(affine[1, 2], 0.0)
136-
np.testing.assert_allclose(affine[2, 2], 1.0)
136+
np.testing.assert_allclose(affine[2, 2], 2.0)
137137

138138

139139
if __name__ == "__main__":

0 commit comments

Comments
 (0)