def to_lal(self):
import lal<EOL>from ..utils.lal import (find_typed_function, to_lal_unit)<EOL>try:<EOL><INDENT>unit = to_lal_unit(self.unit)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>warnings.warn("<STR_LIT>" % str(e))<EOL>unit = lal.DimensionlessUnit<EOL><DEDENT>epoch = lal.LIGOTimeGPS(<NUM_LIT:0> if self.epoch is None else self.epoch.gps)<EOL>create = find_typed_function(self.dtype, '<STR_LIT>', '<STR_LIT>')<EOL>lalfs = create(self.name, epoch, self.f0.value, self.df.value,<EOL>unit, self.shape[<NUM_LIT:0>])<EOL>lalfs.data.data = self.value<EOL>return lalfs<EOL>
Convert this `FrequencySeries` into a LAL FrequencySeries.

        Returns
        -------
        lalspec : `FrequencySeries`
            an XLAL-format FrequencySeries of a given type, e.g.
            `REAL8FrequencySeries`

        Notes
        -----
        Currently, this function is unable to handle unit string
        conversion.