IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23971


Ignore:
Timestamp:
Apr 24, 2009, 2:25:24 PM (17 years ago)
Author:
bills
Message:

changes to make -label work for -toprocess

Location:
trunk/ippTools/share
Files:
2 edited

Legend:

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

    r23389 r23971  
    1 SELECT
     1SELECT * FROM
     2(SELECT
    23    magicTree.*,
     4    rawExp.exp_id,
    35    rawExp.camera,
    4     rawExp.exp_id,
    5     diffSkyfile.path_base,
     6--    diffSkyfile.path_base,
    67    magicRun.workdir,
    78    -- convert magic_id into a boolean value (1 or 0)
    89    -- note that the type stays a 64 bit int
    9     magicNodeResult.magic_id IS TRUE as done
     10    magicNodeResult.magic_id IS TRUE as done,
     11    magicNodeResult.fault IS TRUE as bad,
     12    warpSkyfile.uri as template_uri
    1013FROM magicTree
    1114JOIN magicRun USING(magic_id)
     
    1417    ON magicInputSkyfile.diff_id = diffSkyfile.diff_id
    1518    AND magicInputSkyfile.node = diffSkyfile.skycell_id
     19JOIN diffInputSkyfile
     20    ON diffSkyfile.diff_id = diffInputSkyfile.diff_id
     21    AND diffSkyfile.skycell_id = diffInputSkyfile.skycell_id
     22JOIN warpSkyfile
     23    ON diffInputSkyfile.warp2 = warpSkyfile.warp_id
     24    AND diffInputSkyfile.skycell_id = warpSkyfile.skycell_id
    1625JOIN rawExp USING(exp_id)
    1726LEFT JOIN magicNodeResult
     
    2231    AND magicNodeResult.magic_id IS NULL
    2332    AND magicNodeResult.node IS NULL
     33    -- where hook 1 %s
     34UNION
     35SELECT
     36    magicTree.*,
     37    rawExp.exp_id,
     38    rawExp.camera,
     39--    diffSkyfile.path_base,
     40    magicRun.workdir,
     41    -- convert magic_id into a boolean value (1 or 0)
     42    -- note that the type stays a 64 bit int
     43    magicNodeResult.magic_id IS TRUE as done,
     44    magicNodeResult.fault IS TRUE as bad,
     45    stackSumSkyfile.uri as template_uri
     46FROM magicTree
     47JOIN magicRun USING(magic_id)
     48JOIN magicInputSkyfile USING(magic_id, node)
     49JOIN diffSkyfile
     50    ON magicInputSkyfile.diff_id = diffSkyfile.diff_id
     51    AND magicInputSkyfile.node = diffSkyfile.skycell_id
     52JOIN diffInputSkyfile
     53    ON diffSkyfile.diff_id = diffInputSkyfile.diff_id
     54    AND diffSkyfile.skycell_id = diffInputSkyfile.skycell_id
     55JOIN stackSumSkyfile
     56    ON diffInputSkyfile.stack2 = stackSumSkyfile.stack_id
     57JOIN rawExp USING(exp_id)
     58LEFT JOIN magicNodeResult
     59    ON magicTree.magic_id = magicNodeResult.magic_id
     60    AND magicTree.node = magicNodeResult.node
     61WHERE
     62    magicRun.state = 'new'
     63    AND magicNodeResult.magic_id IS NULL
     64    AND magicNodeResult.node IS NULL
     65    -- where hook 2 %s
     66) as foo
  • trunk/ippTools/share/magictool_toprocess_tree.sql

    r23389 r23971  
    77    -- note that the type stays a 64 bit int
    88    magicNodeResult.magic_id IS TRUE as done,
    9     magicNodeResult.fault IS TRUE as bad
     9    magicNodeResult.fault IS TRUE as bad,
     10    'notused' as template_uri
    1011FROM magicTree
    1112JOIN magicRun USING(magic_id)
Note: See TracChangeset for help on using the changeset viewer.