예제 #1
0
 def testIterators(self):
     d = DatasetI()
     image = ImageI()
     image.linkDataset(d)
     it = image.iterateDatasetLinks()
     count = 0
     for i in it:
         count += 1
     assert count == 1
예제 #2
0
 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)
예제 #3
0
#!/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()
예제 #4
0
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();