From 4e5bf133017baad6b0b10f3463b58f056cfa671e Mon Sep 17 00:00:00 2001 From: Johannes Schumann <johannes.schumann@fau.de> Date: Wed, 16 Jun 2021 10:37:21 +0200 Subject: [PATCH] yapf --- km3buu/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/km3buu/geometry.py b/km3buu/geometry.py index d47ab3d..1ae1135 100644 --- a/km3buu/geometry.py +++ b/km3buu/geometry.py @@ -129,7 +129,7 @@ class SphericalVolume(DetectorVolume): def random_pos(self): r = self._radius * np.power(np.random.random(), 1 / 3) - phi = np.random.uniform(0, 2*np.pi) + phi = np.random.uniform(0, 2 * np.pi) cosTheta = np.random.uniform(-1, 1) pos_x = r * np.cos(phi) * np.sqrt(1 - np.power(cosTheta, 2)) pos_y = r * np.sin(phi) * np.sqrt(1 - np.power(cosTheta, 2)) -- GitLab