IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 23, 2015, 6:06:25 PM (11 years ago)
Author:
mhuber
Message:

adding md5sum for frame,stack,diff,forcedwarpMeta (was working for frame+stack)

File:
1 edited

Legend:

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

    r38954 r38956  
    112112       # MJD-OBS is the exposure start, EXTIME / 172800 = (EXPTIME sec / 84600 sec/day) / 2
    113113       self.obsTime = float(self.header['MJD-OBS']) + (float(self.header['EXPTIME']) / 172800.0)
    114      
     114   
     115       ## MEH md5sum options test
     116       self.md5sum = None
     117       self.md5sum = self.fits.getMd5sum()
     118       #self.md5sum = self.fits.getMd5sumShell()
     119       #self.md5sum = self.fits.getMd5sumFile()
     120 
    115121       # set up some defauts
    116122       self.totalNumPhotoRef = 0
     
    137143        sqlLine = sqlUtility("INSERT INTO FrameMeta (")
    138144
    139         # sqlLine.group("md5sum",               ' needs a number');
    140  
    141145        sqlLine.group("frameID",               str(self.expID));
    142146        sqlLine.group("frameName",             self.expName);
     
    148152        sqlLine.group("telescopeID",           "1");
    149153        sqlLine.group("analysisVer",           self.analysisVer);
     154        sqlLine.group("md5sum",                str(self.md5sum))
    150155        sqlLine.group("photoScat",             self.getKeyFloat(self.header, "%.8f", 'ZPT_ERR'));
    151156        sqlLine.group("expStart",              self.getKeyFloat(self.header, "%.10f", 'MJD-OBS'));
Note: See TracChangeset for help on using the changeset viewer.