summaryrefslogtreecommitdiff
path: root/solids
diff options
context:
space:
mode:
Diffstat (limited to 'solids')
-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))