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)
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)
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)
def setUp(self): self.s = GeometricTemperatureScaler( 0.2, 0.8, 300.0 * u.kelvin, 500.0 * u.kelvin )