Esempio n. 1
0
def test_mesophyll_conductance_is_maximum_at_36_degrees_celsius():
    gm_max = exchange.mesophyll_conductance(36,
                                            gm25=0.1025,
                                            activation_energy=49600.,
                                            deactivation_energy=437400.,
                                            entropy=1400.)
    gm = [
        exchange.mesophyll_conductance(t,
                                       gm25=0.1025,
                                       activation_energy=49600.,
                                       deactivation_energy=437400.,
                                       entropy=1400.) for t in arange(-10, 46)
    ]
    assert all(x <= gm_max for x in gm)
Esempio n. 2
0
def test_mesophyll_conductance_is_positive():
    gm = [
        exchange.mesophyll_conductance(t,
                                       gm25=0.1025,
                                       activation_energy=49600.,
                                       deactivation_energy=437400.,
                                       entropy=1400.) for t in arange(-10, 46)
    ]
    assert all(x >= 0 for x in gm)
Esempio n. 3
0
def test_mesophyll_conductance_changes_with_temperature():
    gm = [
        exchange.mesophyll_conductance(t,
                                       gm25=0.1025,
                                       activation_energy=49600.,
                                       deactivation_energy=437400.,
                                       entropy=1400.) for t in arange(-10, 46)
    ]
    assert all(x != y for x, y in zip(gm, gm[1:]))