Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def test_ramp_constraints_default(self):
     binding_ramps = ramp_constraints(self.mock_scenario)
     expected = self.get_default_expected()
     assert binding_ramps.equals(expected)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)