def __init__(self,environment,project): Classification.__init__(self,environment) self.project = project self.num_retired = None self.non_blanks_retired = None self.to_retire = None
def __init__(self, environment, project): Classification.__init__(self, environment) self.project = project self.num_retired = None self.non_blanks_retired = None # to know how often we should call Panoptes to get a new token # save on having to make unnecessary calls self.token_date = datetime.datetime.now() self.to_retire = set() self.total_retired = 0
def __init__(self,environment,project): Classification.__init__(self,environment) self.project = project self.num_retired = None self.non_blanks_retired = None # to know how often we should call Panoptes to get a new token # save on having to make unnecessary calls self.token_date = datetime.datetime.now() self.to_retire = set() self.total_retired = 0
def __init__(self,environment,param_dict): Classification.__init__(self,environment) assert isinstance(param_dict,dict) # to retire subjects, we need a connection to the host api, which hopefully is provided self.host_api = None self.project_id = None self.token = None self.workflow_id = None for key,value in param_dict.items(): if key == "host": self.host_api = value elif key == "project_id": self.project_id = value elif key == "token": self.token = value elif key == "workflow_id": self.workflow_id = value assert (self.host_api is not None) and (self.project_id is not None) and (self.token is not None) and (self.workflow_id is not None)
def __init__(self, param_dict): Classification.__init__(self) assert isinstance(param_dict, dict) # to retire subjects, we need a connection to the host api, which hopefully is provided self.host_api = None self.project_id = None self.token = None self.workflow_id = None for key, value in param_dict.items(): if key == "host": self.host_api = value elif key == "project_id": self.project_id = value elif key == "token": self.token = value elif key == "workflow_id": self.workflow_id = value assert (self.host_api is not None) and (self.project_id is not None) and ( self.token is not None) and (self.workflow_id is not None)
def __init__(self,project,clustering_alg=None): Classification.__init__(self,project,clustering_alg)