IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 3, 2013, 12:52:33 PM (13 years ago)
Author:
eugene
Message:

changed dvoDetectionFull mysql engine to 'MEMORY' to improve ingest speed

handle errrors in calls to dvopsps (only in detectionbatch.py)

removed a lot of excess verbosity used for debugging / testing

determine the mysql major version number via mysql query

added test option -realgpc to use test ipptopsps databases with a real gpc1 dataset

add version-dependent call to 'set session old_alter_table' to allow
the ALTER IGNORE statements to work on mysql v5.5 machines (like our
desktops).

raise an exception in case the load infile operations fail

remove unneeded 'killLastConnectionID'

extend logging time to milliseconds

allow an exposure to be skipped without aborting loader

check that a P2 image exists in the dvoImage table (otherwise skip the chip)

change the mysql floating point types for the dvoDetection table to use FLOAT/DOUBLE instead of REAL/FLOAT

remove the old test for valid astrometry of a chip (NASTRO >= 50)

this test was crude and not really the right test. it was also used
to verify that an image should / should not be included. now we check
against dvoImages to see if the chip should be loaded or not (DVO
rejects input images for bad astrometry)

skip an exposure if too many detections have been rejected. this is a sign of a problem and should require more attention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/ippToPsps/jython/batch.py

    r35174 r35352  
    415415
    416416          # drop any previous tables before import
    417           #self.scratchDb.dropTable(table.name)
     417          self.scratchDb.dropTable(table.name)
    418418
    419419          # IPP FITS files are littered with infinities, so remove these
     
    426426          try:
    427427              table.write(self.scratchDb.url + '#' + table.name)
    428               # print "wrote to mysql ", table
    429               self.scratchDb.killLastConnectionID()
     428              # XXX this one is not needed
     429              # self.scratchDb.killLastConnectionID()
    430430              count = count + 1
    431431          except:
     
    454454           # get everything from table
    455455           try:
     456               print "reading table from mysql ", table
    456457               _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table)
    457458               self.scratchDb.killLastConnectionID()
     
    554555
    555556        if not self.populatePspsTables():
     557            if self.skipBatch:
     558                self.ippToPspsDb.updateProcessed(self.batchID, -1)
     559                return True
     560
    556561            self.logger.errorPair("Aborting this batch", "unable to populate PSPS tables")
    557562            self.ippToPspsDb.updateProcessed(self.batchID, -1)
Note: See TracChangeset for help on using the changeset viewer.