def test_truncated_at_zero(self):
    'Test scaling shape parameters implying a truncation at zero.'
    expected = [np.array([1.0, 0, (- 0.5)]), np.array([np.inf, np.inf, np.inf])]
    shape_parameters = [0, np.inf]
    plugin = Plugin(distribution='truncnorm', shape_parameters=shape_parameters)
    plugin._rescale_shape_parameters(self.location_parameter, self.scale_parameter)
    self.assertArrayAlmostEqual(plugin.shape_parameters, expected)
Test scaling shape parameters implying a truncation at zero.
def test_truncated_at_zero(self):
    
    expected = [np.array([1.0, 0, (- 0.5)]), np.array([np.inf, np.inf, np.inf])]
    shape_parameters = [0, np.inf]
    plugin = Plugin(distribution='truncnorm', shape_parameters=shape_parameters)
    plugin._rescale_shape_parameters(self.location_parameter, self.scale_parameter)
    self.assertArrayAlmostEqual(plugin.shape_parameters, expected)