docstr: Set velocity to zero if the particle is out of bounds
docstr_tok: ["Set","velocity","to","zero","if","the","particle","is","out","of","bounds"]
code: def zero(self, velocity, clamp=None, **kwargs):
      """Set velocity to zero if the particle is out of bounds"""
      try:
          lower_than_bound, greater_than_bound = self._out_of_bounds(
              kwargs["position"], kwargs["bounds"]
          )
          new_vel = velocity
          new_vel[lower_than_bound[0]] = np.zeros(velocity.shape[1])
          new_vel[greater_than_bound[0]] = np.zeros(velocity.shape[1])
      except KeyError:
          self.rep.logger.exception(
              "Keyword 'position' or 'bounds' missing"
          )
          raise
      else:
          return new_vel
  
imports: import inspect
  import logging
  import numpy
  import math
  from copy import copy
  from ..utils.reporter import Reporter
label_desc: Use image node_id 7 for calling the VelocityHandler obj's underlying member method code with example usage: obj.zero(velocity, clamp) and returns: new_vel