summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony LaTorre <devnull@localhost>2013-11-08 13:12:27 -0600
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit90461d74a4b416598ea50f23364b6e0fa050bc59 (patch)
treedb73f7addc767e7cab0a0d12ea596ca4bc0783c3
parent4a2c9ed04a47ffa89dc259d1aed8a248c0512fae (diff)
downloadchroma-90461d74a4b416598ea50f23364b6e0fa050bc59.tar.gz
chroma-90461d74a4b416598ea50f23364b6e0fa050bc59.tar.bz2
chroma-90461d74a4b416598ea50f23364b6e0fa050bc59.zip
move map_to_color import inside function because it requires matplotlib
-rw-r--r--chroma/camera.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/camera.py b/chroma/camera.py
index 0d3e225..80fc8f6 100644
--- a/chroma/camera.py
+++ b/chroma/camera.py
@@ -12,7 +12,6 @@ import sys
import pycuda.driver as cuda
from pycuda import gpuarray as ga
-from chroma.color import map_to_color
from chroma.geometry import Mesh, Solid, Geometry, vacuum
from chroma.transform import rotate, make_rotation_matrix
from chroma.sample import uniform_sphere
@@ -727,6 +726,7 @@ class EventViewer(Camera):
print 'Done.'
def color_hit_pmts(self):
+ from chroma.color import map_to_color
self.gpu_geometry.reset_colors()
if self.ev.channels is None: