def _create_es_labeller(project_id, *argv): ''' Create an "es" labeller and pickle to project ARGUMENTS (GET): - project_id ARGUMENTS (POST): - data_params: none - module_params: none ''' proj = ESLinker(project_id=project_id) labeller = proj._gen_es_labeller() proj.labeller_to_json(labeller) return
def _create_es_labeller(project_id, _, module_params): ''' Create an "es" labeller and pickle to project ARGUMENTS (GET): - project_id ARGUMENTS (POST): - data_params: none - module_params: force: (false) Set to true if ''' proj = ESLinker(project_id=project_id) if module_params is None: module_params = {} print('ES_labeller module_params:', module_params) if not proj._has_labeller() or module_params.get('force', False): print('yes here') labeller = proj._gen_es_labeller() proj.labeller_to_json(labeller) return