IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 5, 2015, 5:09:21 PM (11 years ago)
Author:
heather
Message:

schema 21 / sas 39 ipptopsps - random now float/double, forced object column names changed to be less confusing

File:
1 edited

Legend:

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

    r38358 r38397  
    340340        sqlLine.group("forcedWarpID",            str(forcedWarpID))
    341341        print " got here too, num", num
    342         sqlLine.group("randomWarpID",     "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)")
     342        sqlLine.group("randomWarpID",     "RAND("+str(self.batchID)+")")
    343343        print "here" 
    344344        sqlLine.group("filterID",        str(self.filterID[num]))
     
    676676
    677677    def generateRandomIDs(self,forcedWarpID):
    678         sql = "UPDATE ForcedWarpMeasurement_"+forcedWarpID+" set randomWarpID = FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)"
     678        sql = "UPDATE ForcedWarpMeasurement_"+forcedWarpID+" set randomWarpID = RAND("+str(self.batchID)+")"
    679679        try:
    680680            self.scratchDb.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.