IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2015, 7:55:59 AM (11 years ago)
Author:
eugene
Message:

enable ohana fits_to_mysql

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/batch.py

    r38987 r38990  
    452452    Accepts a regular expression filter so not all tables need to be imported
    453453    '''
     454    def importIppTables(self, columns="*", filter=""):
     455        if self.useOhanaMYSQLtoFITS:
     456            if not self.importIppTablesOhana():
     457                self.logger.errorPair("problem running", "importIppTablesOhana")
     458                return False
     459        else:
     460            if not self.importIppTablesStilts(columns, filter):
     461                self.logger.errorPair("problem running", "importIppTablesStilts")
     462                return False
     463
     464        return True
     465
     466    '''
     467    Imports IPP tables from FITS file
     468
     469    Accepts a regular expression filter so not all tables need to be imported
     470    '''
    454471    def importIppTablesOhana(self):
    455472       
     
    463480            return False
    464481
    465         loadFITStoMYSQL(self.fits.getPath(), "none")
     482        self.scratchDb.loadFITStoMYSQL(self.fits.getPath(), "none")
    466483
    467484        ## may need to do this with direct sql:
     
    496513    Accepts a regular expression filter so not all tables need to be imported
    497514    '''
    498     def importIppTables(self, columns="*", filter=""):
     515    def importIppTablesStilts(self, columns="*", filter=""):
    499516       
    500517        self.logger.infoPair("Importing tables with filter", filter)
Note: See TracChangeset for help on using the changeset viewer.