IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2011, 4:17:56 PM (15 years ago)
Author:
rhenders
Message:

added alreadyProcessed() method to be implemented by all subclasses; dropping tables before importing them from FITS

File:
1 edited

Legend:

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

    r31350 r31352  
    336336    def importIppTables(self, filter):
    337337
     338      self.logger.info("Attempting to import tables from input FITS file")
    338339      tables = stilts.treads(self.inputFitsPath)
    339       self.logger.info("Attempting to import tables from input FITS file")
    340340
    341341      count = 0
     
    346346          self.logger.info("   Reading IPP table " + table.name + " from FITS file")
    347347          table = stilts.tpipe(table, cmd='explodeall')
     348
     349          # drop any previous tables before import
     350          self.scratchDb.dropTable(table.name)
    348351
    349352          # IPP FITS files are littered with infinities, so remove these
     
    439442        return True
    440443
     444    '''
     445    Checks whether this batch has already been processed and published. To be implemented by all subclasses
     446    '''
     447    def alreadyProcessed(self):
     448           self.logger.info("Not implemented")
     449
     450
     451
Note: See TracChangeset for help on using the changeset viewer.