Changeset 32590 for trunk/ippToPsps/jython/scratchdb.py
- Timestamp:
- Oct 28, 2011, 11:41:25 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/scratchdb.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/scratchdb.py
r32459 r32590 33 33 self.logger.debugPair("Using DVO detection table", self.dvoDetectionTable) 34 34 35 #self.createPsfLikelihoodFunction()36 37 35 ''' 38 36 Destructor … … 47 45 def createPsfLikelihoodFunction(self): 48 46 49 sql = "DELIMITER $$ \ 50 DROP FUNCTION IF EXISTS `psfLikelihood` $$ \ 51 CREATE FUNCTION `psfLikelihood`(x REAL) RETURNS REAL \ 47 sql = "DROP FUNCTION IF EXISTS `psfLikelihood`" 48 try: 49 self.execute(sql) 50 except: 51 self.logger.errorPair("Could not drop stored procedure", "psfLikelihood") 52 return False 53 54 sql = "CREATE FUNCTION `psfLikelihood`(x REAL) RETURNS REAL \ 52 55 DETERMINISTIC \ 53 56 COMMENT 'Returns the psfLikelihood using the complimentary error function with fractional error everywhere less than 1.2 x 10-7. From Numerical Recipes in C' \ … … 64 67 END IF; \ 65 68 RETURN ans; \ 66 END $$ \ 67 DELIMITER ;" 69 END" 68 70 69 71 try:
Note:
See TracChangeset
for help on using the changeset viewer.
