IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35042


Ignore:
Timestamp:
Jan 24, 2013, 11:36:13 AM (13 years ago)
Author:
eugene
Message:

add objID,detectID to dvoDetectionFull table definition rather than adding after inserts are done

Location:
branches/eam_branches/ipp-20121219/ippToPsps/jython
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/dvo.py

    r35031 r35042  
    621621        p.wait()
    622622
    623         sql = "alter table dvoDetectionFull add key (objID, detectID)"
    624         self.scratchDb.execute(sql)
    625 
    626623        # update lists after attempted sync
    627624        # self.printSummary()
  • branches/eam_branches/ipp-20121219/ippToPsps/jython/scratchdb.py

    r35033 r35042  
    340340            rs.first()
    341341            if rs.getInt(1) < 50:
     342                # print "bad astromety"
    342343                self.logger.debug("Bad astrometric solution for",  ota)
    343344                return False
    344345            else:
     346                # print "good astromety"
    345347                return True
    346348        except:
     349            # print "query failed"
    347350            self.logger.debug("Unable to check astrometric solution")
    348351            return False
     
    401404               raErr REAL, \
    402405               decErr REAL, \
    403                PRIMARY KEY (imageID, ippDetectID) \
    404                )"
     406               PRIMARY KEY (imageID, ippDetectID), \
     407               KEY (objID, detectID) \
     408             )"
    405409
    406410        try: self.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.