diff options
Diffstat (limited to 'photon.py')
-rw-r--r-- | photon.py | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -1,4 +1,3 @@ -import time import numpy as np def uniform_sphere(size=None): @@ -13,8 +12,6 @@ def uniform_sphere(size=None): source: Weisstein, Eric W. "Sphere Point Picking." Mathworld. """ - t0 = time.time() - theta, u = np.random.uniform(0.0, 2*np.pi, size), \ np.random.uniform(-1.0, 1.0, size) |