def compute_fixed_moments_and_f(self, x, mask=True):

        # Check the validity of x
        x = np.asanyarray(x)
        if not misc.isinteger(x):
            raise ValueError("Values must be integers")
        if np.any(x < 0):
            raise ValueError("Values must be positive")

        # Compute moments
        u0 = np.copy(x)
        u = [u0]

        # Compute f(x)
        f = -special.gammaln(x+1)

        return (u, f)
Create stack and show output by using old algorithm.
dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/poisson.py/PoissonDistribution.compute_fixed_moments_and_f--crossover with--dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/heat/stacks.py/HeatStacks.create_stack_and_show_output_via_API