summaryrefslogtreecommitdiff
path: root/solid.py
diff options
context:
space:
mode:
authorAnthony LaTorre <tlatorre9@gmail.com>2011-06-17 14:51:40 -0400
committerAnthony LaTorre <tlatorre9@gmail.com>2011-06-17 14:51:40 -0400
commit34ff4d6c734e5adf3aa8a0e7ca89031effdb1489 (patch)
tree8e3ed0a692117b3eb38d6d89029f9cae42f2ede0 /solid.py
parent870236b3c4950762a73247c68023a8dee6e14a7b (diff)
downloadchroma-34ff4d6c734e5adf3aa8a0e7ca89031effdb1489.tar.gz
chroma-34ff4d6c734e5adf3aa8a0e7ca89031effdb1489.tar.bz2
chroma-34ff4d6c734e5adf3aa8a0e7ca89031effdb1489.zip
visually tested optics code. added models of the inner and outer meshes for the 12" hamamatsu and sno pmts. ratdb.py is able to parse ratdb files. chromaticity.py provides a function to map wavelength -> rgb color. lbne detector model now includes an outer black cylinder and pmts with a glass layer and photocathode/reflective surfaces.
Diffstat (limited to 'solid.py')
-rw-r--r--solid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/solid.py b/solid.py
index 929883e..707a786 100644
--- a/solid.py
+++ b/solid.py
@@ -43,7 +43,7 @@ class Solid(object):
raise ValueError('shape mismatch')
self.color = np.array(color, dtype=np.uint32)
else:
- self.color = np.tile(color, len(self.mesh))
+ self.color = np.tile(color, len(self.mesh)).astype(np.uint32)
def __len__(self):
return len(self.mesh)