Exemplo n.º 1
0
    def getFile(self, kepid, campaign, isFluxFile, month=None, *args, **kwargs):
        """See KeplerAbstractClass.getFile()"""

        #Traps the case of attempting to download a lightcurve file for the
        #first three quarters, for which no lightcurve files were created.
        if campaign < 3 and isFluxFile:
            raise ValueError("No lightcurve files were created for Campaigns 0,1 or 2")

        return KeplerAbstractClass.getFile(self, kepid, campaign, isFluxFile,
                                                month, *args, **kwargs)
Exemplo n.º 2
0
    def getFile(self,
                kepid,
                campaign,
                isFluxFile,
                month=None,
                *args,
                **kwargs):
        """See KeplerAbstractClass.getFile()"""

        #Traps the case of attempting to download a lightcurve file for the
        #first three quarters, for which no lightcurve files were created.
        if campaign < 3 and isFluxFile:
            raise ValueError(
                "No lightcurve files were created for Campaigns 0,1 or 2")

        return KeplerAbstractClass.getFile(self, kepid, campaign, isFluxFile,
                                           month, *args, **kwargs)