From 34ff4d6c734e5adf3aa8a0e7ca89031effdb1489 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Fri, 17 Jun 2011 14:51:40 -0400 Subject: 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. --- solid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solid.py') 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) -- cgit