IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37241


Ignore:
Timestamp:
Aug 12, 2014, 3:38:38 PM (12 years ago)
Author:
eugene
Message:

dropping more test prints

Location:
branches/eam_branches/ipp-20140717/ippToPsps/jython
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/detectionbatch.py

    r37232 r37241  
    381381
    382382        sql = sqlLine.makeRaw(") SELECT ", " FROM " + ippTableName)
    383         print "sql: " + sql
    384 
    385         self.scratchDb.execute(sql)
     383
     384        try: self.scratchDb.execute(sql)
     385        except:
     386            self.logger.errorPair("failed sql: ", sql)
     387            raise
    386388
    387389        # NOTE : Flux limits : in the current PSPS schema, negative fluxes
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/mysql.py

    r37179 r37241  
    8383    '''
    8484    def lockTable(self, table):
    85         print "Locking table: " + table
     85        # print "Locking table: " + table
    8686        self.execute("LOCK TABLES " + table + " WRITE")
    8787
     
    9090    '''
    9191    def unlockTables(self):
    92         print "Unlocking tables"
     92        # print "Unlocking tables"
    9393        self.execute("UNLOCK TABLES")
    9494
     
    117117        while (rs.next()):
    118118            tableName = rs.getString(1)
    119             print "table: " + tableName
     119            # print "table: " + tableName
    120120        rs.close()
    121121
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/objectbatch.py

    r37219 r37241  
    155155
    156156
    157             self.logger.info(sql)
    158             self.scratchDb.execute(sql)
     157            try: self.scratchDb.execute(sql)
     158            except:
     159                self.logger.errorPair("failed update MeanObject", sql)
     160                raise
    159161
    160162        # now set to null all MeanMagErr values > 0.5 (cut set by Gene, 2012-04-12)
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/scratchdb.py

    r37239 r37241  
    427427            # if no returned rows, return an error
    428428            if not rs.next():
    429                 print "DVO lacks imageID ", imageID
    430                 print "sql: ", sql
     429                self.logger.infoPair("DVO lacks imageID ", imageID)
    431430                return False
    432431
     
    436435
    437436            else:
    438                 print "DVO has wrong imageID? ", imageID
    439                 print "result was ", rs.getInt(1)
    440                 print "sql: ", sql
     437                self.logger.error("DVO has wrong imageID? ")
     438                self.logger.error("imageID: ", imageID)
     439                self.logger.error("EXTERN_ID: ", rs.getInt(1))
     440                self.logger.infoPair("sql: ", sql)
    441441                raise
    442442
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/stackbatch.py

    r37238 r37241  
    329329            sqlLine.group("a."+filter+"infoFlag2",     "(b.flags << 13)")
    330330            sql = sqlLine.makeEquals("WHERE a.objID = b.objID AND b.imageID = " + str(imageID))
    331             self.logger.infoPair('sql', sql)     
    332331
    333332            try: self.scratchDb.execute(sql)
     
    351350
    352351            sql = sqlLine.makeEquals("WHERE a." + filter + "ippDetectID=b.IPP_IDET")
    353             self.logger.infoPair('sql', sql)     
    354352
    355353            # index the (f)ippDetectIDs for the next steps?
     
    428426            sql = sqlLine.makeEquals("WHERE a." + filter + "ippDetectID = b.IPP_IDET")
    429427
    430             self.logger.infoPair('sql', sql)     
    431428            try:
    432429                self.scratchDb.execute(sql)
     
    445442            sql = sqlLine.makeEquals("WHERE a.objID = b.objID AND a." + filter + "ippDetectID = b.ippDetectID")
    446443
    447             self.logger.infoPair('sql', sql)     
    448444            try:
    449445                self.scratchDb.execute(sql)
     
    558554        sql = sqlLine.makeEquals("WHERE a.objID = b.objID AND a." + filter + "ippDetectID = b.ippDetectID")
    559555
    560         self.logger.infoPair('sql', sql)     
    561556        try:
    562557            self.scratchDb.execute(sql)
     
    597592        sql = sqlLine.makeEquals("WHERE a.objID = b.objID AND a.objID = c.objID")
    598593
    599         self.logger.infoPair('sql', sql)     
    600594        try:
    601595            self.scratchDb.execute(sql)
     
    817811           
    818812        sql = sqlLine.makeEquals("WHERE a." + filter + "ippDetectID = b.IPP_IDET AND  " + psfCondition)
    819         self.logger.infoPair("sql",sql)
     813
    820814        self.scratchDb.execute(sql)
    821815
     
    840834            sqlLine.group(field + "Std",       field + "Std" + " * POW(10, 3.56 - 0.4* b.zp)")
    841835        sql = sqlLine.makeEquals("WHERE a.objID = b.objID AND a." + filter + "ippDetectID = b.ippDetectID")
    842         self.logger.infoPair("sql",sql)
    843836        self.scratchDb.execute(sql)
    844837
Note: See TracChangeset for help on using the changeset viewer.