当前位置: 首页>>代码示例>>Python>>正文


Python ImageI.sizeOfDatasetLinks方法代码示例

本文整理汇总了Python中omero_model_ImageI.ImageI.sizeOfDatasetLinks方法的典型用法代码示例。如果您正苦于以下问题:Python ImageI.sizeOfDatasetLinks方法的具体用法?Python ImageI.sizeOfDatasetLinks怎么用?Python ImageI.sizeOfDatasetLinks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在omero_model_ImageI.ImageI的用法示例。


在下文中一共展示了ImageI.sizeOfDatasetLinks方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testUnloadedCtor

# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfDatasetLinks [as 别名]
 def testUnloadedCtor(self):
     img = ImageI(rlong(1), False)
     assert not img.isLoaded()
     try:
         assert img.sizeOfDatasetLinks() < 0
         assert False, "Should throw"
     except:
         # Is true, but can't test it.
         pass
开发者ID:sbesson,项目名称:openmicroscopy,代码行数:11,代码来源:test_model.py

示例2: testUnloadedCtor

# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfDatasetLinks [as 别名]
 def testUnloadedCtor(self):
     img = ImageI(rlong(1),False)
     self.assert_( not img.isLoaded() )
     try:
         self.assert_( img.sizeOfDatasetLinks() < 0 )
         self.fail("Should throw")
     except:
         # Is true, but can't test it.
         pass
开发者ID:DirkHaehnel,项目名称:openmicroscopy,代码行数:11,代码来源:t_model.py

示例3: testLinkingAndUnlinking

# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfDatasetLinks [as 别名]
    def testLinkingAndUnlinking(self):
        d = DatasetI()
        i = ImageI()

        d.linkImage(i)
        assert d.sizeOfImageLinks() == 1
        d.unlinkImage(i)
        assert d.sizeOfImageLinks() == 0

        d = DatasetI()
        i = ImageI()
        d.linkImage(i)
        assert i.sizeOfDatasetLinks() == 1
        i.unlinkDataset(d)
        assert d.sizeOfImageLinks() == 0

        d = DatasetI()
        i = ImageI()
        dil = DatasetImageLinkI()
        dil.link(d, i)
        d.addDatasetImageLink(dil, False)
        assert d.sizeOfImageLinks() == 1
        assert i.sizeOfDatasetLinks() == 0
开发者ID:sbesson,项目名称:openmicroscopy,代码行数:25,代码来源:test_model.py

示例4: testLinkingAndUnlinking

# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import sizeOfDatasetLinks [as 别名]
    def testLinkingAndUnlinking(self):
        d = DatasetI()
        i = ImageI()

        d.linkImage(i)
        self.assert_( d.sizeOfImageLinks() == 1 )
        d.unlinkImage(i)
        self.assert_( d.sizeOfImageLinks() == 0 )

        d = DatasetI()
        i = ImageI()
        d.linkImage(i)
        self.assert_( i.sizeOfDatasetLinks() == 1 )
        i.unlinkDataset(d)
        self.assert_( d.sizeOfImageLinks() == 0 )

        d = DatasetI()
        i = ImageI()
        dil = DatasetImageLinkI()
        dil.link(d,i)
        d.addDatasetImageLink(dil, False)
        self.assert_( d.sizeOfImageLinks() == 1 )
        self.assert_( i.sizeOfDatasetLinks() == 0 )
开发者ID:DirkHaehnel,项目名称:openmicroscopy,代码行数:25,代码来源:t_model.py


注:本文中的omero_model_ImageI.ImageI.sizeOfDatasetLinks方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。