@classmethod<EOL><INDENT>def from_lal(cls, lalts, copy=True):<DEDENT>
from ..utils.lal import from_lal_unit<EOL>try:<EOL><INDENT>unit = from_lal_unit(lalts.sampleUnits)<EOL><DEDENT>except (TypeError, ValueError) as exc:<EOL><INDENT>warnings.warn("<STR_LIT>" % str(exc))<EOL>unit = None<EOL><DEDENT>channel = Channel(lalts.name, sample_rate=<NUM_LIT:1>/lalts.deltaT, unit=unit,<EOL>dtype=lalts.data.data.dtype)<EOL>out = cls(lalts.data.data, channel=channel, t0=lalts.epoch,<EOL>dt=lalts.deltaT, unit=unit, name=lalts.name, copy=False)<EOL>if copy:<EOL><INDENT>return out.copy()<EOL><DEDENT>return out<EOL>
Generate a new TimeSeries from a LAL TimeSeries of any type.