def test_ramp_constraints_spec_epsilon2(self): # One differece from test_ramp_constraints_default: ('A', 't3') binding_ramps = ramp_constraints(self.mock_scenario, epsilon=1e-6) expected = self.get_default_expected() expected.loc["2016-01-01 02:00:00", "A"] = False assert binding_ramps.equals(expected)
def test_ramp_constraints_default(self): binding_ramps = ramp_constraints(self.mock_scenario) expected = self.get_default_expected() assert binding_ramps.equals(expected)
def test_ramp_constraints_spec_epsilon1(self): # Same results as test_ramp_constraints_default binding_ramps = ramp_constraints(self.mock_scenario, epsilon=1e-3) expected = self.get_default_expected() assert binding_ramps.equals(expected)
def test_ramp_constraints_spec_epsilon3(self): # Two differeces from test_ramp_constraints_default: ('A', ['t3'/'t4']) binding_ramps = ramp_constraints(self.mock_scenario, epsilon=1e-9) expected = self.get_default_expected() expected.loc[:, "A"] = False assert binding_ramps.equals(expected)