예제 #1
0
def test__update_io_nan(voc, iph, io, rs, rsh, nnsvth):
    outio = sdm._update_io(voc, iph, io, rs, rsh, nnsvth)
    assert np.isnan(outio)
예제 #2
0
def test__update_io(voc, iph, io, rs, rsh, nnsvth, expected):
    outio = sdm._update_io(voc, iph, io, rs, rsh, nnsvth)
    np.testing.assert_allclose(outio, expected, atol=.0001)