IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2008, 5:22:00 PM (18 years ago)
Author:
bills
Message:

changes to adapt the magic to the re-worked difference stage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_081204/ippTools/share/magicdstool_todestreak.sql

    r20841 r20964  
    106106    magicMask.uri as streaks_uri,
    107107    stage,
    108     diff_id as stage_id,
    109     diffInputSkyfile.skycell_id as component,
     108    magicRun.diff_id as stage_id,
     109    diffSkyfile.skycell_id as component,
    110110    diffSkyfile.uri,
    111111    diffSkyfile.path_base,
     
    120120JOIN magicDSRun USING(magic_id)
    121121JOIN magicInputSkyfile USING(magic_id)
    122 JOIN diffRun USING(diff_id)
    123 JOIN diffSkyfile USING(diff_id)
    124 JOIN diffInputSkyfile USING(diff_id)
     122JOIN diffSkyfile
     123    ON  magicInputSkyfile.diff_id = diffSkyfile.diff_id
     124    AND magicInputSkyfile.node = diffSkyfile.skycell_id
    125125LEFT JOIN magicDSFile
    126126    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    127     AND magicDSFile.component = diffInputSkyfile.skycell_id
     127    AND magicDSFile.component = diffSkyfile.skycell_id
    128128WHERE
    129129    magicDSRun.state = 'run'
    130130    AND magicDSRun.stage = 'diff'
    131     AND diffRun.state = 'full'
    132131    AND diffSkyfile.fault = 0
    133132    AND magicDSFile.component IS NULL
Note: See TracChangeset for help on using the changeset viewer.