Exemplo n.º 1
0
def test_es_slope_refet(tmin=d_args['tmin'],
                        tmax=d_args['tmax'],
                        es_slope=d_args['es_slope']):
    assert float(calcs._es_slope(0.5 * (tmin + tmax),
                                 method='refet')) == pytest.approx(es_slope)
Exemplo n.º 2
0
def test_es_slope_default(tmin=d_args['tmin'],
                          tmax=d_args['tmax'],
                          es_slope=d_args['es_slope_asce']):
    assert float(calcs._es_slope(0.5 *
                                 (tmin + tmax))) == pytest.approx(es_slope)