def vlite_main_app(): args = get_gen_proc_arg_parser().parse_args() try: uris = _get_uris(args) blueprints = _build_blueprints(uris) gen_proc(args, blueprints) except Exception as e: logging.error('Failed {} execution for {}.'.format(APPLICATION, args)) tb = traceback.format_exc() logging.debug(tb) sys.exit(-1) logging.debug('Done {} processing.'.format(APPLICATION))
def main_app(): args = get_gen_proc_arg_parser().parse_args() try: vlass = VlassCardinality() blueprints = vlass.build_blueprints(args) gen_proc(args, blueprints) except Exception as e: logging.error('Failed {} execution.'.format(APPLICATION)) logging.error(e) tb = traceback.format_exc() logging.error(tb) sys.exit(-1) logging.debug('Done {} processing.'.format(APPLICATION))
def to_caom2(): """This function is called by pipeline execution. It must have this name. """ args = get_gen_proc_arg_parser().parse_args() uris = _get_uris(args) blueprints = _build_blueprints(uris) result = gen_proc(args, blueprints) logging.debug(f'Done {APPLICATION} processing.') return result
def to_caom2(): parser = get_gen_proc_arg_parser() args = parser.parse_args() # set the arguments for those files that, despite being fits files, # are processed with a generic parser - do this because fits2caom2 # manages parser creation based on file names, mostly # uris, generic_uris = _filter_args(args) blueprints = _build_blueprints(uris) if len(generic_uris) > 0: sys.argv.append('--use_generic_parser') for ii in generic_uris: sys.argv.append(ii) args = parser.parse_args() result = gen_proc(args, blueprints) logging.debug(f'Done {APPLICATION} processing.') return result
def to_caom2(): args = get_gen_proc_arg_parser().parse_args() vlass = VlassCardinality() blueprints = vlass.build_blueprints(args) return gen_proc(args, blueprints)
def to_caom2(): args = get_gen_proc_arg_parser().parse_args() uris = _get_uris(args) blueprints = _build_blueprints(uris) return gen_proc(args, blueprints)