def apogeeDesign(dr=None): """ NAME: apogeeDesign PURPOSE: read the apogeeDesign file INPUT: dr= return the file corresponding to this data release OUTPUT: apogeeDesign file HISTORY: 2013-11-04 - Written - Bovy (IAS) """ filePath = path.apogeeDesignPath(dr=dr) if not os.path.exists(filePath): download.apogeeDesign(dr=dr) return fitsio.read(filePath)
def apogeeDesign(dr=None): """ NAME: apogeeDesign PURPOSE: read the apogeeDesign file INPUT: dr= return the file corresponding to this data release OUTPUT: apogeeDesign file HISTORY: 2013-11-04 - Written - Bovy (IAS) """ filePath= path.apogeeDesignPath(dr=dr) if not os.path.exists(filePath): download.apogeeDesign(dr=dr) return fitsio.read(filePath)