IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39016 for trunk


Ignore:
Timestamp:
Oct 30, 2015, 5:20:30 PM (11 years ago)
Author:
watersc1
Message:

Actually populate DiffDetection table, after noting that imageID in mkcmf is the diff_skyfile_id. Fix incorrect column uniqueness.

Location:
trunk/ippToPsps
Files:
2 edited

Legend:

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

    r39015 r39016  
    533533        self.logger.debug("Altering PSPS tables")
    534534        self.logger.debug("Creating indexes on PSPS tables")
    535         self.scratchDb.makeColumnUnique("DiffDetection", "diffObjID")
     535        self.scratchDb.makeColumnUnique("DiffDetection", "diffDetID")
    536536        self.scratchDb.makeColumnPrimaryKey("DiffDetection", "ippDetectID")
    537537
  • trunk/ippToPsps/test/mkgpc1data.dvo

    r39015 r39016  
    7373  $dbhost = localhost
    7474  $dbname = gpc1test
    75 #  $dbuser = dvo
    76 #  $dbpass = dvo
    77   $dbuser = czw
    78   $dbpass = czw
     75  $dbuser = dvo
     76  $dbpass = dvo
     77#  $dbuser = czw
     78#  $dbpass = czw
    7979
    8080  exec mkgpc1.sh delete $dbhost $dbname $dbuser $dbpass
     
    558558
    559559    mkinput $offset $rawfile
    560     echo mkcmf -diff -photcode SIMTEST.$filter.SkyChip -no-noise -extroot SkyChip -append $rawfile $cmffile -date $myDATE -time $myTIME -mjd $mjd -radec $RA $DEC -type $1 -imageID $ID -sourceID 36 -bad-psfqf-frac $BAD_PSFQF_FRAC
    561     exec mkcmf -diff -photcode SIMTEST.$filter.SkyChip -no-noise -extroot SkyChip -append $rawfile $cmffile -date $myDATE -time $myTIME -mjd $mjd -radec $RA $DEC -type $1 -imageID $ID -sourceID 36 -bad-psfqf-frac $BAD_PSFQF_FRAC
     560    $diff_skyfile_id = $ID + 25
     561    echo mkcmf -diff -photcode SIMTEST.$filter.SkyChip -no-noise -extroot SkyChip -append $rawfile $cmffile -date $myDATE -time $myTIME -mjd $mjd -radec $RA $DEC -type $1 -imageID $diff_skyfile_id -sourceID 36 -bad-psfqf-frac $BAD_PSFQF_FRAC
     562    exec mkcmf -diff -photcode SIMTEST.$filter.SkyChip -no-noise -extroot SkyChip -append $rawfile $cmffile -date $myDATE -time $myTIME -mjd $mjd -radec $RA $DEC -type $1 -imageID $diff_skyfile_id -sourceID 36 -bad-psfqf-frac $BAD_PSFQF_FRAC
    562563
    563564
Note: See TracChangeset for help on using the changeset viewer.