コード例 #1
0
def generate_runs(
    model_file,
    out_file,
    kind,
    scenarios,
    additional_args,
    override_dict,
    cluster_threads,
    cluster_mem,
    cluster_time,
    debug,
    quiet,
    pdb,
):

    _cli_start(debug, quiet)

    kwargs = dict(
        model_file=model_file,
        out_file=out_file,
        scenarios=scenarios,
        additional_args=additional_args,
        override_dict=override_dict,
        cluster_mem=cluster_mem,
        cluster_time=cluster_time,
        cluster_threads=cluster_threads,
    )

    with format_exceptions(debug, pdb):
        generate(kind, **kwargs)
コード例 #2
0
def generate_runs(
    model_file, out_file, kind, override_file, groups, additional_args,
    cluster_threads, cluster_mem, cluster_time,
    debug, pdb):
        kwargs = dict(
            model_file=model_file,
            out_file=out_file,
            override_file=override_file,
            groups=groups,
            additional_args=additional_args,
            cluster_mem=cluster_mem,
            cluster_time=cluster_time,
            cluster_threads=cluster_threads,
        )
        with format_exceptions(debug, pdb):
            generate(kind, **kwargs)
コード例 #3
0
ファイル: cli.py プロジェクト: brynpickering/calliope
def generate_runs(
        model_file, out_file, kind, scenarios,
        additional_args, override_dict,
        cluster_threads, cluster_mem, cluster_time,
        debug, quiet, pdb):

    set_quietness_level(quiet)

    kwargs = dict(
        model_file=model_file,
        out_file=out_file,
        scenarios=scenarios,
        additional_args=additional_args,
        override_dict=override_dict,
        cluster_mem=cluster_mem,
        cluster_time=cluster_time,
        cluster_threads=cluster_threads,
    )

    with format_exceptions(debug, pdb):
        generate(kind, **kwargs)