IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2013, 3:03:50 PM (13 years ago)
Author:
eugene
Message:

do not test file sizes & dates for validity (ipptopsps does not have access to this info)

File:
1 edited

Legend:

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

    r35097 r35174  
    263263
    264264           # get paths for this region for the file types we are interested in
    265            paths = []
    266            for fileType in self.ingestFileTypes:
    267                paths.append(self.skychunk.dvoLocation + "/" + regionPath + "." + fileType)
     265           # XXX ipptopsps cannot check files -- it does not know where they are
     266           ## paths = []
     267           ## for fileType in self.ingestFileTypes:
     268           ##     paths.append(self.skychunk.dvoLocation + "/" + regionPath + "." + fileType)
    268269
    269270           # check for the existence of all interested file types
    270            skipThisRegion = False
    271            for path in paths:
    272                if not os.path.isfile(path):
    273                    skipThisRegion = True
    274                    break
    275 
    276            if skipThisRegion: continue
     271           # XXX ipptopsps cannot check files -- it does not know where they are
     272           ## skipThisRegion = False
     273           ## for path in paths:
     274           ##     if not os.path.isfile(path):
     275           ##         skipThisRegion = True
     276           ##         break
     277
     278           ## if skipThisRegion: continue
    277279
    278280           # ok, have real, populated files so add this region to the list
     
    281283
    282284           # if we have already imported up-to-date versions of all interested files, then we skip this region
    283            alreadyIngested = True
    284            for path in paths:
    285                if not self.scratchDb.alreadyImportedThisDvoTable(path):
    286                    alreadyIngested = False
    287                    break
    288    
     285           ## alreadyIngested = True
     286           ## for path in paths:
     287           ##     if not self.scratchDb.alreadyImportedThisDvoTable(path):
     288           ##         alreadyIngested = False
     289           ##         break
     290
     291           alreadyIngested = False
    289292           if alreadyIngested:
    290293               self.regionsAlreadyIngested.append(regionPath)
     
    299302
    300303           # check if we have out-of-date versions of any interested files, if so, add region to the purge list
    301            outOfDate = False
    302            for path in paths:
    303                if self.scratchDb.haveOutOfDateVersionOfThisDvoTable(path):
    304                    outOfDate = True
    305                    break
    306 
    307            if outOfDate: self.regionsIngestedButOutOfDate.append(regionPath)
     304           ## outOfDate = False
     305           ## for path in paths:
     306           ##     if self.scratchDb.haveOutOfDateVersionOfThisDvoTable(path):
     307           ##         outOfDate = True
     308           ##         break
     309           ##
     310           ## if outOfDate: self.regionsIngestedButOutOfDate.append(regionPath)
     311
     312           print "using region: ", regionPath
    308313
    309314           self.regionsToIngest.append(regionPath)
     
    420425
    421426        size = 0.0
     427        return size
     428
    422429        for region in regions:
    423430             self.logger.infoPair("sizes for region", region)
    424431             # get combined size of all interested files
    425432             for fileType in self.ingestFileTypes:
     433                 print "trying ", fileType
    426434                 size = size + self.getDiskSize(self.skychunk.dvoLocation + "/" + region + "." + fileType)
    427435                 # EAM TEST I/O
Note: See TracChangeset for help on using the changeset viewer.