We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7cafa commit fc5770cCopy full SHA for fc5770c
1 file changed
tests/integration/functional/test_stc.py
@@ -25,8 +25,8 @@ def test_slice_timing_tpattern_list(test_subject: TestSubjectData) -> None:
25
"""Test that tpattern accepts a list of slice timing offsets."""
26
num_slices = nifti_num_slices(test_subject.bold)
27
28
- # sample tpattern based on total slices
29
- tpattern = [0.1 * i for i in range(num_slices)]
+ # sample tpattern based on total slices, kept within [0, tr)
+ tpattern = [round(i * 2.0 / num_slices, 4) for i in range(num_slices)]
30
corrected = slice_timing_correction(
31
in_file=test_subject.bold, tr=2.0, tpattern=tpattern
32
)
0 commit comments