IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2014, 10:59:37 AM (12 years ago)
Author:
eugene
Message:

adding stack mags to dvopsps detection output; adding option to reset the dvoDetections table; adding makeEquals to sqlUtilities; intelligently(?) select photcode ranges for dvopsps; massive re-work of stackbatch.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/gpc1db.py

    r37133 r37156  
    123123            # XXX EAM : test output
    124124            rs = self.executeQuery(sql)
    125             while (rs.next()):
    126                rows.append([rs.getInt(1), rs.getFloat(2), rs.getFloat(3)])
    127             rs.close()
     125
    128126        except:
    129127            self.logger.exception("Can't query for ids in DVO")
    130128            self.logger.infoPair("failed sql:", sql)
    131             return rows
     129            sys.exit(1)
     130
     131        while (rs.next()):
     132            rows.append([rs.getInt(1), rs.getFloat(2), rs.getFloat(3)])
     133
     134        rs.close()
    132135
    133136        self.logger.debug("Found %d items in DVO database '%s' for stage='%s'" % (len(rows), dvoDb, stage))
Note: See TracChangeset for help on using the changeset viewer.