diff options
author | Stan Seibert <stan@mtrr.org> | 2011-09-19 13:45:38 -0400 |
---|---|---|
committer | Stan Seibert <stan@mtrr.org> | 2011-09-19 13:45:38 -0400 |
commit | 47e99a7b3cbd4b7c7e48a7d5451fd648e068fda9 (patch) | |
tree | ed35458bd1ae0cc0e6a7992e52167c9f164101e2 | |
parent | db5a892ee57ff53f085477fdd77e648099353e88 (diff) | |
download | chroma-47e99a7b3cbd4b7c7e48a7d5451fd648e068fda9.tar.gz chroma-47e99a7b3cbd4b7c7e48a7d5451fd648e068fda9.tar.bz2 chroma-47e99a7b3cbd4b7c7e48a7d5451fd648e068fda9.zip |
Remove unused imports
-rwxr-xr-x | chroma/benchmark.py | 1 | ||||
-rw-r--r-- | chroma/generator/photon.py | 1 | ||||
-rw-r--r-- | chroma/likelihood.py | 7 | ||||
-rw-r--r-- | chroma/parabola.py | 3 | ||||
-rw-r--r-- | chroma/project.py | 3 |
5 files changed, 4 insertions, 11 deletions
diff --git a/chroma/benchmark.py b/chroma/benchmark.py index c2f7ac9..a45ff90 100755 --- a/chroma/benchmark.py +++ b/chroma/benchmark.py @@ -8,7 +8,6 @@ import sys import itertools from chroma import gpu -from chroma import camera from chroma import event from chroma import sample from chroma import generator diff --git a/chroma/generator/photon.py b/chroma/generator/photon.py index 6c656b2..39e8cf4 100644 --- a/chroma/generator/photon.py +++ b/chroma/generator/photon.py @@ -1,7 +1,6 @@ import g4gen import multiprocessing import numpy as np -import itertools import threading import zmq import uuid diff --git a/chroma/likelihood.py b/chroma/likelihood.py index 0e378b1..49b04a7 100644 --- a/chroma/likelihood.py +++ b/chroma/likelihood.py @@ -1,8 +1,6 @@ import numpy as np -from histogram import HistogramDD -from uncertainties import ufloat, umath, unumpy -from math import sqrt -from itertools import islice, izip, compress, repeat +from uncertainties import ufloat, unumpy +from itertools import islice, izip, repeat from chroma.tools import profile_if_possible class Likelihood(object): @@ -95,7 +93,6 @@ class Likelihood(object): if __name__ == '__main__': from chroma import detectors from chroma.sim import Simulation - from chroma.optics import water from chroma.generator import constant_particle_gun from chroma import tools import time diff --git a/chroma/parabola.py b/chroma/parabola.py index 0ea9f15..f4160fb 100644 --- a/chroma/parabola.py +++ b/chroma/parabola.py @@ -1,6 +1,6 @@ import numpy as np import uncertainties -from uncertainties import unumpy, ufloat +from uncertainties import unumpy import ROOT def build_design_matrix(x, y): @@ -79,7 +79,6 @@ def parabola_eval(x, a, b, c): if len(x.shape) == 1: return a + np.dot(x, b) + np.dot(x, np.dot(c, x.T)) else: - dims = x.shape[1] y = np.array([a] * x.shape[0]) for i, xrow in enumerate(x): diff --git a/chroma/project.py b/chroma/project.py index 7d9cabe..51fba1e 100644 --- a/chroma/project.py +++ b/chroma/project.py @@ -1,6 +1,5 @@ import numpy as np -from itertools import repeat -from chroma.transform import rotate, normalize +from chroma.transform import normalize def from_film(position=(0,0,0), axis1=(0,0,1), axis2=(1,0,0), size=(800,600), width=0.035, focal_length=0.018): |