Exemplo n.º 1
0
 def test_raises_when_temp_max_is_below_zero(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(0.0, 1.0, 300.0 * u.kelvin, -500.0 * u.kelvin)
Exemplo n.º 2
0
 def test_raises_when_alpha_max_below_zero(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(0.0, -0.1, 300.0 * u.kelvin, 500.0 * u.kelvin)
Exemplo n.º 3
0
 def test_raises_when_alpha_min_above_alpha_max(self):
     with self.assertRaises(RuntimeError):
         GeometricTemperatureScaler(1.0, 0.0, 300.0 * u.kelvin, 500.0 * u.kelvin)
Exemplo n.º 4
0
 def setUp(self):
     self.s = GeometricTemperatureScaler(
         0.2, 0.8, 300.0 * u.kelvin, 500.0 * u.kelvin
     )