summaryrefslogtreecommitdiff
path: root/solids/pmts.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-08-05 18:38:02 -0400
committerStan Seibert <stan@mtrr.org>2011-08-05 18:38:02 -0400
commit2f668983993971d8ca997e6f7d15ec086f55b702 (patch)
tree2cc07c215ca382e6cdf98adf5f901880f77bca0f /solids/pmts.py
parentef9a4f8925f6693044f8c14a744d9c9fe3120f83 (diff)
parent643f3df7b8538d5c52ea782ec3c22406cadc7c6e (diff)
downloadchroma-2f668983993971d8ca997e6f7d15ec086f55b702.tar.gz
chroma-2f668983993971d8ca997e6f7d15ec086f55b702.tar.bz2
chroma-2f668983993971d8ca997e6f7d15ec086f55b702.zip
merge with tony
Diffstat (limited to 'solids/pmts.py')
-rw-r--r--solids/pmts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/solids/pmts.py b/solids/pmts.py
index 377024d..22d9d67 100644
--- a/solids/pmts.py
+++ b/solids/pmts.py
@@ -51,7 +51,7 @@ def build_pmt(filename, glass_thickness, outer_material=water, theta=np.pi/8):
outer_envelope = Solid(outer_envelope_mesh, glass, outer_material)
- photocathode = np.mean(inner_envelope_mesh[:], axis=1)[:,1] > 0
+ photocathode = np.mean(inner_envelope_mesh.assemble(), axis=1)[:,1] > 0
inner_envelope = Solid(inner_envelope_mesh, vacuum, glass, surface=np.where(photocathode, r7081hqe_photocathode, shiny_surface), color=np.where(photocathode, 0xff00, 0xff0000))