IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28853


Ignore:
Timestamp:
Aug 5, 2010, 2:17:37 PM (16 years ago)
Author:
bills
Message:

magicdstool -torevert -stage chip was returning zillions of entries because
the join to chipProcessedImfile was incorrect

File:
1 edited

Legend:

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

    r27945 r28853  
    22    magic_ds_id,
    33    magicDSRun.state,
    4     exp_id,
     4    rawExp.exp_id,
    55    re_place,
    66    camera,
     
    1919    JOIN camProcessedExp using(cam_id)
    2020    JOIN chipRun ON (stage_id = chipRun.chip_id)
    21     -- JOIN chipProcessedImfile ON (stage_id = chipProcessedImfile.chip_id AND component = class_id)
    22     JOIN chipProcessedImfile USING(chip_id, exp_id)
    23     JOIN rawExp using(exp_id)
     21    JOIN chipProcessedImfile ON (stage_id = chipProcessedImfile.chip_id AND component = class_id)
     22    JOIN rawExp ON chipRun.exp_id = rawExp.exp_id
    2423WHERE magicDSRun.stage = 'chip'
    2524    AND ((magicDSRun.state = 'new' AND magicDSFile.fault > 0)
Note: See TracChangeset for help on using the changeset viewer.