IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37239


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

remove test pritns

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

Legend:

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

    r37173 r37239  
    6363        # this scratch Db either has no DVO info ingested, or a different DVO ingested. Prompt user
    6464        if not self.correctDvo:
    65             print "*******************************************************************************"
    6665            self.logger.warning("switching to a new dvo: '" + self.skychunk.dvoLocation + "'")
    6766            # response = raw_input("(y/n) ")
     
    105104
    106105        if (self.skychunk.dvoLocation == 'none'):
    107             print "do not load Photcodes for place-holder DVO " + self.skychunk.dvoLocation
     106            # print "do not load Photcodes for place-holder DVO " + self.skychunk.dvoLocation
    108107            return False
    109108
     
    160159
    161160        if (self.skychunk.dvoLocation == 'none'):
    162             print "do not load SkyTable for place-holder DVO " + self.skychunk.dvoLocation
     161            # print "do not load SkyTable for place-holder DVO " + self.skychunk.dvoLocation
    163162            return False
    164163
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/gpc1db.py

    r37208 r37239  
    117117            stage = "forcedwarp"
    118118            sql = "SELECT differentStuff from Stufftable"
    119 
    120         self.logger.infoPair("sql for pending:", sql)
    121119
    122120        try:
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/ipptopsps.py

    r37133 r37239  
    5555            raise
    5656
    57         print "check client status"
    5857        self.checkClientStatus()
    5958
     
    143142    def checkClientStatus(self):
    144143
    145         print "updateClient (add this process to client table)"
    146144        self.ippToPspsDb.updateClient(self.config.programName, self.HOST, self.PID)
    147145
    148         print "check if isKilled (has someone killed me?)"
    149146        if self.ippToPspsDb.isKilled(self.HOST, self.PID):
    150147            self.exitProgram("killed via Db")
     
    152149        # this loop pauses the process if we have no skychunk or we have set it to pause
    153150        firstTimeIn = True
    154         print "refreshSkychunk"
    155151        while not self.refreshSkychunk() or self.ippToPspsDb.isPaused(self.HOST, self.PID):
    156 
    157             print "looping in ipptopsps"
    158 
    159152            self.ippToPspsDb.updateClient(self.config.programName, self.HOST, self.PID)
    160153            if self.ippToPspsDb.isKilled(self.HOST, self.PID):
     
    163156            firstTimeIn = False
    164157            time.sleep(self.PAUSEPERIOD)
    165 
    166         print "DONE looping in ipptopsps"
    167158
    168159    '''
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/ipptopspsdb.py

    r37232 r37239  
    12591259                AND batch_type = '" + batchType + "'")
    12601260
    1261         print "deleted old items"
    1262 
    12631261        for id in ids:
    12641262            sql = "INSERT IGNORE INTO pending \
     
    12671265               (" + str(box_id) + ", '" + batchType + "', " + str(id) + ")"
    12681266
    1269             print "sql: ", sql
    1270 
    12711267            try: self.execute(sql)
    12721268            except:
    12731269                print "failed to insert into pending"
     1270                print "sql: " + sql
    12741271                raise
    12751272
     
    12961293               GROUP BY ra_center LIMIT 1"
    12971294
    1298         # XXX print "sql: ", sql               
    1299 
    13001295        try: rs = self.executeQuery(sql)
    13011296        except:
     
    13031298            print "SQL: " + sql
    13041299
    1305         print "SQL: " + sql
    13061300        if not rs.next():
    13071301            self.logger.errorPair("No outstanding boxes", "nothing to do here")
     
    13841378            print "SQL: " + sql
    13851379
    1386         print "SQL: " + sql
    13871380        if not rs.next():
    13881381            self.logger.infoPair("No outstanding boxes", "nothing to do here")
     
    16201613                       VALUES ( '" + dvo_db + "', '" + batchType + "'," + str(row[0]) + "," + str(row[1]) + " \
    16211614                       , " + str(row[2]) + ", '"+uniq+"' ) "
    1622                 print "sql 1: ", sql
     1615                # print "sql 1: ", sql
    16231616                self.execute(sql)
    16241617            except: continue
     
    16411634               AND dec_bore BETWEEN " + str(minDEC) + " AND " + str(maxDEC)
    16421635
    1643         print "items: ", sql
    1644 
    16451636        try:
    16461637            rs = self.executeQuery(sql)
    16471638            while (rs.next()):
    16481639                ids.append(rs.getInt(1))
    1649                 print "stage_id: " + str(rs.getInt(1))
    16501640        except:
    16511641            self.logger.errorPair("Can't get items in this box", sql)
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/scratchdb.py

    r37179 r37239  
    482482        try: self.execute(sql)
    483483        except:
    484             print "problem dropping DVO " + dvoDetectionTable
     484            self.logger.errorPair("problem dropping DVO table", dvoDetectionTable)
    485485            pass
    486486
     
    561561
    562562       # we need a big enough memory table for the incoming detections
    563        print "requested memory in gigs: ", self.memoryTableSize
     563       # print "requested memory in gigs: ", self.memoryTableSize
    564564       tableSize = int(self.memoryTableSize) * 1024 * 1024 * 1024
     565       self.logger.infoPair("setting max heap size: ", tableSize)
     566
    565567       sql = "set @@max_heap_table_size = " + str(tableSize)
    566        print "setting max heap size: ", sql
    567568       try: self.execute(sql)
    568569       except:
Note: See TracChangeset for help on using the changeset viewer.