MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_sequence

Method test_sequence

tests/data/test_zipdataset.py:65–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.assertEqual(len(subset), 2)
64
65 def test_sequence(self):
66 test_dataset = ZipDataset(datasets=[Dataset_(5), Dataset_(5), Dataset_(5)], transform=None)
67 subset = test_dataset[[1, 3, 4]]
68 self.assertEqual(subset[-1], (4, 4, 4))
69 self.assertEqual(len(subset), 3)
70
71
72if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

ZipDatasetClass · 0.90
Dataset_Class · 0.85

Tested by

no test coverage detected