IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2013, 1:46:43 PM (13 years ago)
Author:
bills
Message:

fix errors in defining and running warp_bg and chip_bg runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/bgtool_advancechip.sql

    r28486 r35672  
    33    chipBackgroundImfile.magicked
    44FROM chipBackgroundRun
    5 JOIN chipProcessedImfile USING(chip_id)
    6 LEFT JOIN chipBackgroundImfile USING(chip_bg_id, class_id)
     5JOIN camRun using(cam_id)
     6JOIN chipProcessedImfile ON chipBackgroundRun.chip_id = chipProcessedImfile.chip_id
     7JOIN chipRun AS bgsub_chipRun on camRun.chip_id = bgsub_chipRun.chip_id
     8JOIN chipProcessedImfile AS bgsub_chipProcessedImfile
     9    ON (bgsub_chipRun.chip_id = bgsub_chipProcessedImfile.chip_id
     10        AND bgsub_chipProcessedImfile.class_id = chipProcessedImfile.class_id)
     11LEFT JOIN chipBackgroundImfile
     12    ON (chipBackgroundRun.chip_bg_id = chipBackgroundImfile.chip_bg_id
     13        AND chipBackgroundImfile.class_id = chipProcessedImfile.class_id)
    714WHERE chipBackgroundRun.state = 'new'
    815    AND chipProcessedImfile.quality = 0
    916    AND chipProcessedImfile.fault = 0
     17    AND bgsub_chipProcessedImfile.quality = 0
    1018-- WHERE hook %s
    11 GROUP BY chip_bg_id
     19GROUP BY chipBackgroundRun.chip_bg_id
    1220HAVING
    1321    COUNT(chipBackgroundImfile.class_id) = COUNT(chipProcessedImfile.class_id)
Note: See TracChangeset for help on using the changeset viewer.