|
144 | 144 | # We disagree with Philips about the right affine, for the moment, so
|
145 | 145 | # use our own affine as determined from a previous load in nibabel
|
146 | 146 | affine=AN_OLD_AFFINE,
|
147 |
| - zooms=(3.75, 3.75, 8.0, 2.0), |
| 147 | + zooms=(3.75, 3.75, 8.0, 2000.0), |
148 | 148 | data_summary=dict(
|
149 | 149 | min=0.0,
|
150 | 150 | max=2299.4110643863678,
|
@@ -179,7 +179,7 @@ def test_header():
|
179 | 179 | hdr = PARRECHeader(HDR_INFO, HDR_DEFS)
|
180 | 180 | assert_equal(hdr.get_data_shape(), (64, 64, 9, 3))
|
181 | 181 | assert_equal(hdr.get_data_dtype(), np.dtype('<u2'))
|
182 |
| - assert_equal(hdr.get_zooms(), (3.75, 3.75, 8.0, 2.0)) |
| 182 | + assert_equal(hdr.get_zooms(), (3.75, 3.75, 8.0, 2000.0)) |
183 | 183 | assert_equal(hdr.get_data_offset(), 0)
|
184 | 184 | si = np.array(
|
185 | 185 | [np.unique(x) for x in hdr.get_data_scaling()]).ravel()
|
@@ -548,7 +548,7 @@ def test_epi_params():
|
548 | 548 | with open(epi_par, 'rt') as fobj:
|
549 | 549 | epi_hdr = PARRECHeader.from_fileobj(fobj)
|
550 | 550 | assert_equal(len(epi_hdr.get_data_shape()), 4)
|
551 |
| - assert_almost_equal(epi_hdr.get_zooms()[-1], 2.0) |
| 551 | + assert_almost_equal(epi_hdr.get_zooms()[-1], 2000.0) |
552 | 552 |
|
553 | 553 |
|
554 | 554 | def test_truncations():
|
@@ -832,7 +832,7 @@ def test_dualTR():
|
832 | 832 | assert_array_equal(dualTR_hdr.general_info['repetition_time'],
|
833 | 833 | expected_TRs)
|
834 | 834 | # zoom on 4th dimensions is the first TR (in seconds)
|
835 |
| - assert_equal(dualTR_hdr.get_zooms()[3], expected_TRs[0]/1000) |
| 835 | + assert_equal(dualTR_hdr.get_zooms()[3], expected_TRs[0]) |
836 | 836 |
|
837 | 837 |
|
838 | 838 | def test_ADC_map():
|
|
0 commit comments