summaryrefslogtreecommitdiff
path: root/solids/__init__.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-08 15:37:21 -0400
committerStan Seibert <stan@mtrr.org>2011-08-08 15:37:21 -0400
commitfd2cba0f96e2d145e6a2b6e3df91cb6e942c114c (patch)
treebcb6b902c10d8cafa00e228b634e5a0fbd6bf6ae /solids/__init__.py
parent09e042b8888342ed8fc7a8c5b05ea1caa47a3842 (diff)
parented642493fccbcf13efef5491f73241c6a9434ad8 (diff)
downloadchroma-fd2cba0f96e2d145e6a2b6e3df91cb6e942c114c.tar.gz
chroma-fd2cba0f96e2d145e6a2b6e3df91cb6e942c114c.tar.bz2
chroma-fd2cba0f96e2d145e6a2b6e3df91cb6e942c114c.zip
Merge Tony's changes.
Diffstat (limited to 'solids/__init__.py')
-rw-r--r--solids/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/solids/__init__.py b/solids/__init__.py
index 479bacd..46f3119 100644
--- a/solids/__init__.py
+++ b/solids/__init__.py
@@ -1,6 +1,6 @@
import numpy as np
-from pmts import build_pmt, build_light_collector, build_light_collector_from_file
+from pmts import build_pmt, build_light_collector, build_light_collector_from_file, build_pmt_shell
import os
import sys
@@ -15,6 +15,10 @@ from view import buildable
def build_12inch_pmt(outer_material=water, theta=np.pi/8):
return build_pmt(dir + '/hamamatsu_12inch.txt', 0.003, outer_material, theta)
+@buildable('12inch_pmt_shell')
+def build_12inch_pmt_shell(outer_material=water, theta=np.pi/8):
+ return build_pmt_shell(dir + '/hamamatsu_12inch.txt')
+
# from Jelena Maricic
lc_12inch_a = 0.16597
lc_12inch_b = 0.584525