62 """Return max number of particles of type particle_type
65 particle_type -- type or category of particle to check (default 'all')
70 np = iaea_types.IAEA_I64(0)
73 ptypes = tuple(iaea_types.particle_types[particle_type])
75 ptypes = (iaea_types.particle_types[particle_type],)
78 ptype = iaea_types.IAEA_I32(ptype)
79 iaeadll.iaea_get_max_particles(byref(self.
_source_id),byref(ptype),byref(np))
80 num_particles += np.value
83 message =
"Unable to read number of particles of type: %s" % particle_type