def test_ica_value_bounds(dataset): capacity, voltage = dataset.get_ccap(5) c = ica.value_bounds(capacity) v = ica.value_bounds(voltage) assert c == pytest.approx((0.001106868, 1535.303235807), 0.0001) assert v == pytest.approx((0.15119725465774536, 1.0001134872436523), 0.0001)
def test_ica_value_bounds_simple(): x = [1, 2, 3, 4] m1, m2 = ica.value_bounds(x) assert m1 == 1 assert m2 == 4