本文整理汇总了Python中omero_model_ImageI.ImageI.setPixels方法的典型用法代码示例。如果您正苦于以下问题:Python ImageI.setPixels方法的具体用法?Python ImageI.setPixels怎么用?Python ImageI.setPixels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类omero_model_ImageI.ImageI
的用法示例。
在下文中一共展示了ImageI.setPixels方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testWrappers
# 需要导入模块: from omero_model_ImageI import ImageI [as 别名]
# 或者: from omero_model_ImageI.ImageI import setPixels [as 别名]
def testWrappers(self):
image = ImageI()
info = image._field_info
assert info.name.wrapper == rstring
assert info.acquisitionDate.wrapper == rtime
assert not info.name.nullable
assert not info.acquisitionDate.nullable
image.setAcquisitionDate("1", wrap=True)
assert type(image.acquisitionDate) == type(rtime(0))
# The following causes pytest to fail!
# image.setAcquisitionDate("", wrap=True)
# Note: collections still don't work well
if False:
image.addPixels(PixelsI())
image.setPixels(0, "Pixels:1", wrap=True)
assert type(image.pixels) == omero.model.PixelsI
image.setPixels(0, "Pixels", wrap=True)
image.setPixels(0, "Unknown", wrap=True)
link = DatasetImageLinkI()
link.setParent("Dataset:1")
link.setChild("Image:1")