IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2013, 4:35:54 PM (13 years ago)
Author:
eugene
Message:

use MEMORY engine for dvoDetectionFull; add error handline for dvopsps; check mysql version; remove some test verbosity; check for image existence in dvoImages; skip bad batches but do not exit; fix precision issues; add -realgpc option (part of -test mode); log times in milliseconds

Location:
trunk/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps

  • trunk/ippToPsps/jython/objectbatch.py

    r35223 r35417  
    372372        self.logger.infoPair("Forcing uniqueness on", "objID in Object table")
    373373        rowCountBefore = self.scratchDb.getRowCount("Object")
     374
     375        # XXX EAM : note that in mysql versions later than 5.1, this fails
     376        # unless the following is called first:
     377        # set session old_alter_table=1
     378        # follow the command with
     379        # set session old_alter_table=0
     380        # OF COURSE, this fails for mysql version < 5.5...
     381        if self.scratchDb.version > 5.1:
     382            self.scratchDb.execute("set session old_alter_table=1")
     383           
    374384        self.scratchDb.execute("ALTER IGNORE TABLE Object ADD UNIQUE INDEX(objID)")
     385        if self.scratchDb.version > 5.1:
     386            self.scratchDb.execute("set session old_alter_table=0")
     387
    375388        rowCountAfter = self.scratchDb.getRowCount("Object")
    376389        self.logger.infoPair("Number of duplicated objIDs removed", "%d out of %d" % ((rowCountBefore - rowCountAfter), rowCountBefore))
Note: See TracChangeset for help on using the changeset viewer.