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)
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)