IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37238


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

drop a bunch of test prints

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

Legend:

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

    r37232 r37238  
    3939                 fits):
    4040
    41         # print "starting the batch"
    42 
    43         # self.printline = 0
    44         # self.testprint()
    45 
    4641        self.readHeader = False
    4742        self.config = config
     
    5348        self.logger.infoSeparator()
    5449        self.logger.debug("Batch class constructor")
    55 
    56         # self.testprint()
    5750
    5851        # set up class variables
     
    6659        self.pspsVoTableFilePath = self.config.configDir + "tables." + batchType + ".vot"
    6760
    68         # self.testprint()
    69 
    7061        # check FITS file is ok
    7162        if self.fits:
     
    10697        if not os.path.exists(self.localOutPath): os.makedirs(self.localOutPath)
    10798
    108         # self.testprint()
    109 
    11099        # store today's date
    111100        now = datetime.datetime.now();
     
    123112            self.logger.infoPair("Input FITS file", self.fits.getOriginalPath())
    124113            self.logger.infoPair("Input FITS primary header", "%s cards found" % self.fits.getPrimaryHeaderCardCount())
    125 
    126         # self.testprint()
    127114
    128115        self.logger.infoPair("Output path", self.localOutPath)
     
    493480           # get everything from table
    494481           try:
    495                print "reading table from mysql ", table
    496482               _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table)
    497483               self.scratchDb.killLastConnectionID()
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/loader.py

    r37232 r37238  
    8282
    8383        self.skychunk.printAll()
    84         print "done with loader.py init"
    8584
    8685    '''
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/queue.py

    r37133 r37238  
    2929        super(Queue, self).__init__(argv)
    3030
    31         # print "inited ipptopsps"
    32 
    3331        # create various objects
    3432        self.gpc1Db = Gpc1Db(self.logger, self.config)
    35         # print "connect to gpc1"
    3633
    3734        self.datastore = Datastore(self.logger, self.skychunk, self.ippToPspsDb)
    38 
    39         print "made datastore"
    4035
    4136        # connect to scratch database
    4237        self.scratchDb = ScratchDb(self.logger, self.config)
    4338
    44         print "connect to scratchdb"
    45 
    4639        try:
    47             print "does this work?"
    4840            self.dvoObjects = DvoObjects(self.logger, self.config, self.skychunk, self.ippToPspsDb, self.scratchDb)
    4941        except:
    5042            self.exitProgram("Unable to create instance of DvoObject")
    5143            raise
    52 
    53         print "got objects"
    5444
    5545        self.skychunk.printAll()
     
    144134                    if (dec > 85): raise
    145135
    146                     print "dec, dD: ", dec, dD ,self.skychunk.maxDec
     136                    # print "dec, dD: ", dec, dD ,self.skychunk.maxDec
    147137
    148138                    # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds
     
    152142                    ra = self.skychunk.minRa + dR
    153143                   
    154                     print "ra, dR, maxRa", ra, dR, self.skychunk.maxRa
     144                    # print "ra, dR, maxRa", ra, dR, self.skychunk.maxRa
    155145
    156146                    # XXX not sure why this is not done with a for-loop...
    157147                    while dec <= self.skychunk.maxDec:
    158148                        while ra <= self.skychunk.maxRa:
    159                            print "here"
    160149                           # a given box centered at RA,DEC with (linear) size of SIDE has the following bounds
    161150                           minRA  = ra  - dR
     
    175164                                       len(ids)))
    176165               
    177                            print "box_id: ", box_id
    178 
    179166                           if len(ids) > 0: self.ippToPspsDb.insertPending(box_id, batchType, ids)
    180167                           # print "inserted pending"
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/stackbatch.py

    r37237 r37238  
    476476        tablename = "StackModelFit" + model
    477477
     478        if self.config.camera == "simtest":
     479            self.logger.infoPair("Skipping table for simtest:", tablename)
     480            return
     481
    478482        self.logger.infoPair("Procesing table", tablename)
    479483        self.insertDvoIDs(tablename, "StackObjectThin")
     
    607611        tablename = "StackPetrosian"
    608612
     613        if self.config.camera == "simtest":
     614            self.logger.infoPair("Skipping table for simtest:", tablename)
     615            return
     616
    609617        self.logger.infoPair("Procesing table", tablename)
    610618        self.insertDvoIDs(tablename, "StackObjectThin")
     
    677685        tablename = "StackApFlx"
    678686
     687        if self.config.camera == "simtest":
     688            self.logger.infoPair("Skipping table for simtest:", tablename)
     689            return
     690
    679691        self.logger.infoPair("Procesing table", tablename)
    680692        self.insertDvoIDs(tablename, "StackObjectThin")
     
    697709
    698710        tablename = "StackApFlxFull" + version
     711
     712        if self.config.camera == "simtest":
     713            self.logger.infoPair("Skipping table for simtest:", tablename)
     714            return
    699715
    700716        self.logger.infoPair("Procesing table", tablename)
Note: See TracChangeset for help on using the changeset viewer.