def __init__(self, **kwargs): TRIPlugin.__init__(self, name=self.name, description=self.description, authors=self.authors, version=self.version, url=self.url, copyright=self.copyright, **kwargs) self.config = {'Original Scale Minimum': '0', 'Original Scale Maximum': '1', 'New Scale Minimum': '0', 'New Scale Maximum': '1'}
def __init__(self, **kwargs): TRIPlugin.__init__(self, name=self.name, description=self.description, authors=self.authors, version=self.version, url=self.url, copyright=self.copyright, **kwargs) # If a config dict is defined in a Plugin, the UI will present the user # with a dialog box allowing run-time configuration (populated with the # default values set here). Although vals can be of any pickle-able type, # they are returned as str. self.config = {'kernel size': '3'}
def __init__(self, **kwargs): TRIPlugin.__init__(self, name=self.name, description=self.description, authors=self.authors, version=self.version, url=self.url, copyright=self.copyright, **kwargs)
def setUp(self): self.plugin_name = "Test Plugin" self.plugin_description = "Unit test of TRI Plugin template" self.plugin = TRIPlugin(name=self.plugin_name, description=self.plugin_description)