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/dvo.py

    r38981 r38990  
    589589    Imports the Photcode file
    590590    '''
     591    def importPhotcodes(self, path, tableName):
     592        if True:
     593            self.importPhotcodesOhana(path,tableName)
     594        else:
     595            self.importPhotcodesStilts(path,tableName)
     596
     597    '''
     598    Imports the Photcode file
     599    '''
    591600    def importPhotcodesOhana(self, path, tableName):
    592601
    593       self.logger.infoPair("Importing file", "%s (%s)" % (path, self.getFileSizeStr(self.getDiskSize(path))))
     602      self.logger.infoPair("Importing file with ohana", "%s (%s)" % (path, self.getFileSizeStr(self.getDiskSize(path))))
    594603      self.logger.debugPair("Writing to database table", tableName)
    595604
     
    598607      # table = stilts.tpipe(table, cmd='addcol -after TYPE TYPE_AS_INT "TYPE + 0"')
    599608
    600       loadFITStoMYSQL (path, tableName)
     609      self.scratchDb.loadFITStoMYSQL (path, tableName)
    601610
    602611      self.logger.debugPair("Finished importing", tableName)
     
    607616    Imports the Photcode file
    608617    '''
    609     def importPhotcodes(self, path, tableName):
     618    def importPhotcodesStilts(self, path, tableName):
    610619
    611620      self.logger.infoPair("Importing file", "%s (%s)" % (path, self.getFileSizeStr(self.getDiskSize(path))))
Note: See TracChangeset for help on using the changeset viewer.