IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2015, 2:17:07 PM (11 years ago)
Author:
eugene
Message:

forced warp files end in .cmf

File:
1 edited

Legend:

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

    r38358 r38891  
    285285              AND stage_id = " + str(stageID)
    286286
    287         try:
    288             rs = self.executeQuery(sql)
    289         except:
    290             self.logger.exception("Can't query for addIDs using :" + sql )
     287        rs = self.executeQuery(sql)
    291288
    292289        addIDs = []
     
    306303    def getListOfDiffSkyFileIdsForDiffBatch(self, dvoDb, stageID):
    307304
    308         self.logger.debug("Querying GPC1 for add IDs for ff_id: " + str(stageID))
     305        self.logger.debug("Querying GPC1 for add IDs for diff_id: " + str(stageID))
    309306        stage = "diff"
    310307        sql = "SELECT diff_skyfile_id \
     
    490487              join fullForceResult using (ff_id, warp_id) \
    491488              where add_id = %d" % forcedWarpID
     489
    492490        try:
    493491            rs = self.executeQuery(sql)
     
    506504        files = []
    507505        if pathBase.startswith("neb"):
    508        
    509506            f=os.popen("neb-ls -p " + pathBase + ".cmf")
    510507            for i in f.readlines():
    511        
    512508                files.append(i.rstrip())
    513        
     509
     510        else:
     511            files = glob.glob(pathBase + ".cmf")
     512
    514513       
    515514        if len(files) < 1: return None
Note: See TracChangeset for help on using the changeset viewer.