Example #1
0
import argparse
import logging

from covid_model_parametrization import npis
from covid_model_parametrization.utils import utils

utils.config_logger()
logger = logging.getLogger(__name__)


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument("country_iso3", help="Country ISO3")
    parser.add_argument(
        '-u',
        '--update-npi-list',
        action='store_true',
        help='Update the NPI list with the local ACAPS data file')
    parser.add_argument('-d',
                        '--download-acaps',
                        action='store_true',
                        help='Download the latest ACAPS data')
    parser.add_argument('-f',
                        '--create-final-list',
                        action='store_true',
                        help='Create the final list of NPIs')
    return parser.parse_args()


if __name__ == '__main__':
    args = parse_args()
Example #2
0
import argparse

from covid_model_parametrization import qc
from covid_model_parametrization.utils import utils


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument("country_iso3", help="Country ISO3")
    parser.add_argument('-w', '--warnings', action='store_true', help='Show warnings')
    return parser.parse_args()


if __name__ == '__main__':
    args = parse_args()
    level='error'
    if args.warnings:
        level='warning'
    utils.config_logger(level=level)
    qc.qc(args.country_iso3.upper())