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>create = find_typed_function(self.dtype, '<STR_LIT>', '<STR_LIT>')<EOL>lalts = create(self.name, lal.LIGOTimeGPS(self.epoch.gps), <NUM_LIT:0>,<EOL>self.dt.value, unit, self.shape[<NUM_LIT:0>])<EOL>lalts.data.data = self.value<EOL>return lalts<EOL>
Convert this `TimeSeries` into a LAL TimeSeries.