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/sqlUtility.py

    r37133 r37156  
    2121        return
    2222
     23    # result is startString + fields + middleString + values + endString
    2324    def makeRaw(self,middleString,endString):
    2425
    25         output = self.startString
     26        output = self.startString + " "
    2627
    2728        for i in range(len(self.fields)):
     
    3031                output += ", "
    3132
    32         output += middleString
     33        output += " " + middleString + "  "
    3334
    3435        for i in range(len(self.values)):
     
    3738                output += ", "
    3839       
    39         output += endString
     40        output += " " + endString
    4041
    4142        return output
    4243
     44    # result is startString + fields + middleString + values + endString (each value surrounded by '')
    4345    def make(self,middleString,endString):
    4446
    45         output = self.startString
     47        output = self.startString + " "
    4648
    4749        for i in range(len(self.fields)):
     
    5052                output += ", "
    5153
    52         output += middleString
     54        output += " " + middleString + " "
    5355
    5456        for i in range(len(self.values)):
     
    5759                output += ", "
    5860       
    59         output += endString
     61        output += " " + endString
     62
     63        return output
     64
     65    # result is startString + field = value,... + endString
     66    def makeEquals(self,endString):
     67
     68        output = self.startString + " "
     69
     70        for i in range(len(self.fields)):
     71            output += self.fields[i] + " = " + self.values[i]
     72            if (i < len(self.fields) - 1):
     73                output += ", "
     74       
     75        output += " " + endString
    6076
    6177        return output
Note: See TracChangeset for help on using the changeset viewer.