IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2015, 2:38:19 PM (11 years ago)
Author:
eugene
Message:

add debug option to ippjython / ipptopsps.py; move some messages to debug; only do XY01 in test mode; test ingest of a FITS file to mysql

File:
1 edited

Legend:

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

    r38958 r38973  
    341341        self.scratchDb.execute(sql)
    342342
    343         print "---- inserted ImageMeta into mysql"
     343        self.logger.debugPair("inserted into mysql", "ImageMeta")
    344344
    345345        self.scratchDb.updateRecalStats(tableName, header['IMAGEID'], str(pltscale));
     
    347347        self.scratchDb.updateAllRows(tableName, "processingVersion", str(self.skychunk.processingVersion))
    348348
    349         print "---- updated things"
    350 
    351349        if 'NASTRO' in header: self.totalNumPhotoRef = self.totalNumPhotoRef + int(header['NASTRO'])
    352350        self.scratchDb.replaceNullsInThisColumn(tableName, "polyOrder", "0")
    353351
    354         print "---- completed ImageMeta"
     352        self.logger.debugPair("completed", "ImageMeta")
    355353        return True
    356354
     
    691689                for y in range(self.startY, self.endY):
    692690                   
     691                    ## for a quick test, just do the first chip:
     692                    if self.config.test and self.config.camera == "gpc1":
     693                        if x != 0 or y != 1: continue
     694
    693695                    # dodge the corners
    694696                    if x==0 and y==0: continue
     
    717719        for x in range(self.startX, self.endX):
    718720            for y in range(self.startY, self.endY):
     721
     722                ## for a quick test, just do the first chip:
     723                if self.config.test and self.config.camera == "gpc1":
     724                    if x != 0 or y != 1: continue
    719725
    720726                # dodge the corners
     
    927933            for y in range(self.startY, self.endY):
    928934               
     935                ## for a quick test, just do the first chip:
     936                if self.config.test and self.config.camera == "gpc1":
     937                    if x != 0 or y != 1: continue
     938
    929939                # dodge the corners
    930940                if x==0 and y==0: continue
     
    10501060    def importIppTables(self, filter=""):
    10511061       
    1052         regex = ".*.psf"
     1062        ## XXX does the regex work?
     1063        regex = "XY*"
    10531064   
    1054         if False and self.config.test and self.config.camera == "gpc1":
    1055             regex = "XY01.psf"
     1065        ## for a quick test, just do the first chip:
     1066        if self.config.test and self.config.camera == "gpc1":
     1067            regex = "XY01*"
    10561068           
    10571069        print "my ID: " + str(self.id)
     
    10661078            #### crap crap crap
    10671079
    1068         regex = ".*"
     1080        ## this is apparently over-riding the choices above
     1081        ## regex = ".*"
     1082
     1083        ## the list of columns above works fine for *.psf, but breaks the *.deteff tables
     1084        ## just read all columns
    10691085        columns = "*"
    10701086
Note: See TracChangeset for help on using the changeset viewer.