Пример #1
0
def run(args):
    args.warnings = []
    with_datasets(args, check)
    if args.warnings:
        args.log.warning('{0} warnings issued'.format(len(args.warnings)))
        return 2
    args.log.info('OK')
Пример #2
0
def run(args):
    def _print(ds, args):
        if args.cldf:
            for cldf in ds.cldf_specs_dict.values():
                print(cldf.metadata_path)
        else:
            print(ds)

    with_datasets(args, _print)
Пример #3
0
def run(args):
    with_datasets(args, 'readme')
Пример #4
0
def run(args):
    db = get_db(args)
    with_datasets(args, db.unload)
Пример #5
0
def run(args):
    with_datasets(args, check)
Пример #6
0
def run(args):
    db = get_db(args)
    with_datasets(args, db.load)
    db.load_concepticon_data(args.concepticon.api)
    db.load_glottolog_data(args.glottolog.api)
Пример #7
0
def run(args):
    with_datasets(args, lambda ds, _: print(ds))
Пример #8
0
def run(args):
    res = with_datasets(args, check)
    return 1 if 1 in res else (2 if 2 in res else 0)