#NEWLINE# def get_template( self , template_id ) : #NEWLINE# #INDENT# 'Get a particular lightcurve template\n\n        Parameters\n        ----------\n        template_id : str\n            id of desired template\n        Returns\n        -------\n        phase : ndarray\n            array of phases\n        mag : ndarray\n            array of normalized magnitudes\n        ' #NEWLINE# try : #NEWLINE# #INDENT# data = np . loadtxt ( self . data . extractfile ( ( template_id + '.dat' ) ) ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise ValueError ( 'invalid star id: {0}' . format ( template_id ) ) #NEWLINE# #UNINDENT# return ( data [ : , 0 ] , self [ : , 1 ] )