IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2015, 1:19:35 PM (11 years ago)
Author:
heather
Message:

current state of ipptopsps / sas37 - ob/p2/st/df work

File:
1 edited

Legend:

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

    r37551 r37917  
    180180        for filter in filters:
    181181            # now do a sum of n[filters], but do not include the ones with -999
    182             sql  = "UPDATE ObjectThin "
    183             sql += "SET nDetections = nDetections + n" + filter[1]
     182            sql  = "UPDATE ForcedMeanObject"
     183            sql += "SET nDetections = nDetections + " + filter[1] +"nTotal "
    184184            sql += " WHERE n" + filter[1] + " != -999"
    185185            self.scratchDb.execute(sql)
     186            try: self.scratchDb.execute(sql)
     187            except:
     188                self.logger.errorPair("failed update MeanObject nDetections", sql)
     189                raise
    186190
    187191    '''
Note: See TracChangeset for help on using the changeset viewer.