code: def to_pycbc(self, copy=True):
          
          from pycbc import types
  
          if self.epoch is None:
              epoch = None
          else:
              epoch = self.epoch.gps
          return types.FrequencySeries(self.value,
                                       delta_f=self.df.to('Hz').value,
                                       epoch=epoch, copy=copy)
docs: Convert this `FrequencySeries` into a
          `~pycbc.types.frequencyseries.FrequencySeries`
  
          Parameters
          ----------
          copy : `bool`, optional, default: `True`
              if `True`, copy these data to a new array
  
          Returns
          -------
          frequencyseries : `pycbc.types.frequencyseries.FrequencySeries`
              a PyCBC representation of this `FrequencySeries`