Beispiel #1
0
 def test_raises_when_temp_max_is_below_zero(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(0.0, 1.0, 300., -500.)
Beispiel #2
0
 def test_raises_when_alpha_max_below_zero(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(0.0, -0.1, 300., 500.)
Beispiel #3
0
 def test_raises_when_alpha_min_above_alpha_max(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(1.0, 0.0, 300., 500.)
Beispiel #4
0
 def setUp(self):
     self.s = GeometricTemperatureScaler(0.2, 0.8, 300., 500.)