summaryrefslogtreecommitdiff
path: root/photon.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-05-17 16:58:36 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-05-17 16:58:36 -0400
commit909309302c83423994e9c1dd36a3309890a67b90 (patch)
treeade31f97ba43172820efd7bb80d5dd70bffa87c5 /photon.py
parent8df5c2109151613d6ed1c124095c8e6e0f98f3af (diff)
downloadchroma-909309302c83423994e9c1dd36a3309890a67b90.tar.gz
chroma-909309302c83423994e9c1dd36a3309890a67b90.tar.bz2
chroma-909309302c83423994e9c1dd36a3309890a67b90.zip
added documentation
Diffstat (limited to 'photon.py')
-rw-r--r--photon.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/photon.py b/photon.py
index 3472c1e..b58a97b 100644
--- a/photon.py
+++ b/photon.py
@@ -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)