Exemplo n.º 1
0
def test_eta_andasol():
    s = pd.Series([100], index=[1])
    res = csp.calc_eta_c(0.816, 64, 0.00023, 0.95, 235, 300, 30, s, 'Andasol')
    result = pd.Series([0.13519999999999988], index=[1])
    assert res.eq(result).all()
Exemplo n.º 2
0
def test_eta_janotte():
    s = pd.Series([50], index=[1])
    res = csp.calc_eta_c(0.816, 0.0622, 0.00023, 0.95, 235, 300, 30, s,
                         'Janotte')
    result = pd.Series([0.22028124999999987], index=[1])
    assert res.eq(result).all()