def testIterators(self): d = DatasetI() image = ImageI() image.linkDataset(d) it = image.iterateDatasetLinks() count = 0 for i in it: count += 1 assert count == 1
def testIterators(self): d = DatasetI() image = ImageI() image.linkDataset(d) it = image.iterateDatasetLinks() count = 0 for i in it: count += 1 self.assert_(count == 1)
#!/usr/bin/env python # -*- coding: utf-8 -*- from omero_model_ImageI import ImageI from omero_model_DatasetI import DatasetI image = ImageI() dataset = DatasetI() link = dataset.linkImage(image) for link in image.iterateDatasetLinks(): link.getChild().getName()
import omero from omero_model_ImageI import ImageI from omero_model_DatasetI import DatasetI from omero_model_DatasetImageLinkI import DatasetImageLinkI image = ImageI() dataset = DatasetI() link = dataset.linkImage(image) for link in image.iterateDatasetLinks(): link.getChild().getName();