From 96ea0d7ac367c0bff74885a1180ccac48c81e0ae Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 1 Mar 2016 12:26:56 +0100 Subject: [PATCH] improved readability of formula --- pylot/core/util/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)