#NEWLINE# def load_EROS_lc( filename = 'lm0010n22323.time' ) : #NEWLINE# #INDENT# '\n    Read an EROS light curve and return its data.\n\n    Parameters\n    ----------\n    filename : str, optional\n        A light-curve filename.\n\n    Returns\n    -------\n    dates : numpy.ndarray\n        An array of dates.\n    magnitudes : numpy.ndarray\n        An array of magnitudes.\n    errors : numpy.ndarray\n        An array of magnitudes errors.\n    ' #NEWLINE# module_path = dirname ( __file__ ) #NEWLINE# file_path = join ( module_path , 'lightcurves' , filename ) #NEWLINE# data = np . loadtxt ( file_path ) #NEWLINE# date = file_path [ : , 0 ] #NEWLINE# mag = data [ : , 1 ] #NEWLINE# err = data [ : , 2 ] #NEWLINE# return ( date , mag , err )