Package omero :: Package gateway :: Package scripts :: Module testdb_create :: Class TestDBHelper
[hide private]
[frames] | no frames]

Class TestDBHelper

source code


Instance Methods [hide private]
 
setUp(self, skipTestDB=False, skipTestImages=True) source code
 
doConnect(self) source code
 
doDisconnect(self) source code
 
doLogin(self, user=None, groupname=None) source code
 
loginAsAdmin(self) source code
 
loginAsAuthor(self) source code
 
loginAsUser(self) source code
 
loginAsPublic(self) source code
 
tearDown(self) source code
 
getTestProject(self) source code
 
getTestProject2(self) source code
 
getTestDataset(self, project=None) source code
 
getTestDataset2(self, project=None) source code
 
getTestImage(self, dataset=None, autocreate=False) source code
 
getTestImage2(self, dataset=None) source code
 
getBadTestImage(self, dataset=None, autocreate=False) source code
 
getTinyTestImage(self, dataset=None, autocreate=False) source code
 
getTinyTestImage2(self, dataset=None, autocreate=False) source code
 
getTinyTestImage3(self, dataset=None, autocreate=False) source code
 
getBigTestImage(self, dataset=None, autocreate=False) source code
 
prepTestDB(self, onlyUsers=False, skipImages=True) source code
 
waitOnCmd(self, client, handle) source code
 
createPDTree(self, project=None, dataset=None)
Create/link a Project and/or Dataset (link them if both are specified) Existing objects can be parsed as an omero.model object(s) or blitz Wrapper objects.
source code
 
createTestImage(self, imageName="testImage", dataset=None, sizeX=16, sizeY=16, sizeZ=1, sizeC=1, sizeT=1)
Creates a test image of the required dimensions, where each pixel value is set to the average value of x & y.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

createPDTree(self, project=None, dataset=None)

source code 

Create/link a Project and/or Dataset (link them if both are specified) Existing objects can be parsed as an omero.model object(s) or blitz Wrapper objects. Otherwise new objects will be created with name str(project) or str(dataset). If project OR dataset is specified, the ProjectWrapper or DatasetWrapper is returned. If both project and dataset are specified, they will be linked and the PD-link is returned as a BlitzObjectWrapper.

Parameters:
  • project - omero.model.ProjectI OR omero.gateway.ProjectWrapper or name (string)
  • dataset - omero.model.DatasetI OR omero.gateway.DatasetWrapper or name (string)

createTestImage(self, imageName="testImage", dataset=None, sizeX=16, sizeY=16, sizeZ=1, sizeC=1, sizeT=1)

source code 

Creates a test image of the required dimensions, where each pixel value is set to the average value of x & y. If dataset (obj or name) is specified, will be linked to image. If project (obj or name) is specified, will be created/linked to dataset (if dataset not None)

Parameters:
  • dataset - omero.model.DatasetI OR DatasetWrapper OR dataset ID