IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33529 for trunk


Ignore:
Timestamp:
Mar 15, 2012, 11:46:48 AM (14 years ago)
Author:
rhenders
Message:

now specifying in the call to base-class constructor that the log should be written to stdout and file; temporarily commented out dvo sync stuff

File:
1 edited

Legend:

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

    r33487 r33529  
    3131    '''
    3232    def __init__(self, argv):
    33         super(Loader, self).__init__(argv)
     33        super(Loader, self).__init__(argv, 1, 1)
    3434
    3535        # create gpc1 database objects
     
    134134       
    135135                    # look in DVO for this box (with extra border)
    136                     self.dvo.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSizeWithBorder)
    137                     sizeToBeIngested = self.dvo.getDiskSizeOfRegionsToBeIngested()
    138                     if sizeToBeIngested == 0.0: smfsPerGB = 999999999
    139                     else: smfsPerGB = len(ids)/sizeToBeIngested
    140                     self.logger.infoPair("DVO to be ingested", "%.1f GB" % sizeToBeIngested)
    141                     self.logger.infoPair("smfs-per-GB", "%.1f" % smfsPerGB)
    142            
     136                    #self.dvo.setSkyAreaAsBox(boxDim['RA'], boxDim['DEC'], boxSizeWithBorder)
     137                    #sizeToBeIngested = self.dvo.getDiskSizeOfRegionsToBeIngested()
     138                    #if sizeToBeIngested == 0.0: smfsPerGB = 999999999
     139                    #else: smfsPerGB = len(ids)/sizeToBeIngested
     140                    #self.logger.infoPair("DVO to be ingested", "%.1f GB" % sizeToBeIngested)
     141                    #self.logger.infoPair("smfs-per-GB", "%.1f" % smfsPerGB)
     142                    smfsPerGB = 0
    143143                    # should do we pre-ingest stuff from DVO?
    144144                    if smfsPerGB > 40:
Note: See TracChangeset for help on using the changeset viewer.