예제 #1
0
def test_run_many_mp(version):
    root = ensure_eplus_root(eplus_url[version])
    runner = EPlusRunner(root)
    samples = {
        key: ("tests/in_%s.idf" % version, "tests/in.epw")
        for key in range(8)
    }
    with joblib.parallel_backend("loky", n_jobs=-1):
        runner.run_many(samples, backup_strategy=None)
예제 #2
0
def test_serialize(version):
    root = ensure_eplus_root(eplus_url[version])
    runner = EPlusRunner(root)
    pickle.loads(pickle.dumps(runner))
예제 #3
0
def test_run(version):
    root = ensure_eplus_root(eplus_url[version])
    runner = EPlusRunner(root)
    return runner.run_one(
        "tests/in_%s.idf" % version, "tests/in.epw", backup_strategy=None
    )