Skip to content

Commit

Permalink
Update Resample test
Browse files Browse the repository at this point in the history
  • Loading branch information
fepegar committed Sep 1, 2021
1 parent 421e024 commit 8eddf8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/transforms/preprocessing/test_resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def test_2d(self):
self.assertEqual(shape, (1, 4, 6, 1))

def test_input_list(self):
tio.Resample([1, 2, 3])
tio.Resample([1, 2, 3])(self.sample_subject)

def test_input_array(self):
resample = tio.Resample(np.asarray([1, 2, 3]))
resample(self.sample_subject)

def test_image_target(self):
tio.Resample(self.sample_subject.t1)(self.sample_subject)
Expand Down

0 comments on commit 8eddf8a

Please sign in to comment.