code: def impact_check_range(func):
      
      @wraps(func)
      def impact_wrapper(*args,**kwargs):
          if isinstance(args[1],numpy.ndarray):
              out= numpy.zeros(len(args[1]))
              goodIndx= (args[1] < args[0]._deltaAngleTrackImpact)*(args[1] > 0.)
              out[goodIndx]= func(args[0],args[1][goodIndx])
              return out
          elif args[1] >= args[0]._deltaAngleTrackImpact or args[1] <= 0.:
              return 0.
          else:
              return func(*args,**kwargs)
      return impact_wrapper
docs: Decorator to check the range of interpolated kicks