コード例 #1
0
def test_NLDC_calculation_solar():
    assert calculate_NLDC(scenario, {"solar"}, 10) == approx(3720)
コード例 #2
0
def test_NLDC_calculation_solar_wind():
    assert calculate_NLDC(scenario, ["solar", "wind"], 10) == approx(8478.9)
コード例 #3
0
def test_NLDC_calculation_wind_5_hour():
    assert calculate_NLDC(scenario, {"wind"}, hours=5) == approx(3343)
コード例 #4
0
def test_NLDC_calculation_wind_list():
    assert calculate_NLDC(scenario, ["wind"], 10) == approx(3496.1)
コード例 #5
0
def test_NLDC_calculation_wind_tuple():
    assert calculate_NLDC(scenario, ("wind", ), 10) == approx(3496.1)
コード例 #6
0
def test_NLDC_calculation_wind_set():
    assert calculate_NLDC(scenario, {"wind"}, 10) == approx(3496.1)
コード例 #7
0
def test_NLDC_calculation_wind_str():
    assert calculate_NLDC(scenario, "wind", 10) == approx(3496.1)