diff --git a/pylot/core/util/pdf.py b/pylot/core/util/pdf.py index 2b354a23..e070ccc3 100644 --- a/pylot/core/util/pdf.py +++ b/pylot/core/util/pdf.py @@ -82,9 +82,9 @@ def gauss_branches(x, mu, sig1, sig2, a1, a2): fun_vals = [] for k in x: if k < mu: - fun_vals.append(a1 * 1 / (np.sqrt(2 * np.pi) * sig1) * np.exp(-((k - mu) / sig1)**2 / 2 )) + fun_vals.append(a1 * 1 / (np.sqrt(2 * np.pi) * sig1) * np.exp(-((k - mu) / sig1) ** 2 / 2)) else: - fun_vals.append(a2 * 1 / (np.sqrt(2 * np.pi) * sig2) * np.exp(-((k - mu) / sig2)**2 / 2)) + fun_vals.append(a2 * 1 / (np.sqrt(2 * np.pi) * sig2) * np.exp(-((k - mu) / sig2) ** 2 / 2)) return np.array(fun_vals)