code: def apply(self, strain, detector_name, distance_scale=1,
                simulation_ids=None, inj_filter_rejector=None):
          
          if inj_filter_rejector is not None:
              raise NotImplementedError("Ringdown injections do not support "
                                        "inj_filter_rejector")
          if strain.dtype not in (float32, float64):
              raise TypeError("Strain dtype must be float32 or float64, not " \
                      + str(strain.dtype))
  
          lalstrain = strain.lal()
  
          # pick lalsimulation injection function
          add_injection = injection_func_map[strain.dtype]
  
          injections = self.table
          if simulation_ids:
              injections = injections[list(simulation_ids)]
          for ii in range(injections.size):
              injection = injections[ii]
              signal = self.make_strain_from_inj_object(
                  injection, strain.delta_t, detector_name,
                  distance_scale=distance_scale)
              signal = signal.astype(strain.dtype)
              signal_lal = signal.lal()
              add_injection(lalstrain, signal_lal, None)
  
              strain.data[:] = lalstrain.data.data[:]
docs: Add injection (as seen by a particular detector) to a time series.
  
          Parameters
          ----------
          strain : TimeSeries
              Time series to inject signals into, of type float32 or float64.
          detector_name : string
              Name of the detector used for projecting injections.
          distance_scale: float, optional
              Factor to scale the distance of an injection with. The default (=1)
              is no scaling.
          simulation_ids: iterable, optional
              If given, only inject signals with the given simulation IDs.
          inj_filter_rejector: InjFilterRejector instance, optional
              Not implemented. If not ``None``, a ``NotImplementedError`` will
              be raised.
  
          Returns
          -------
          None
  
          Raises
          ------
          NotImplementedError
              If an ``inj_filter_rejector`` is provided.
          TypeError
              For invalid types of `strain`.