コード例 #1
0
ファイル: test_transforms.py プロジェクト: efirdc/torchio
 def test_arguments_are_dict(self):
     transform = tio.Noise({'im': 0}, {'im': 1}, {'im': 0})
     assert transform.arguments_are_dict()
コード例 #2
0
ファイル: test_transforms.py プロジェクト: efirdc/torchio
 def test_arguments_are_and_are_not_dict(self):
     transform = tio.Noise(0, {'im': 1}, {'im': 0})
     with self.assertRaises(ValueError):
         transform.arguments_are_dict()
コード例 #3
0
ファイル: test_transforms.py プロジェクト: efirdc/torchio
 def test_arguments_are_not_dict(self):
     transform = tio.Noise(0, 1, 0)
     assert not transform.arguments_are_dict()