IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28765


Ignore:
Timestamp:
Jul 29, 2010, 11:26:37 AM (16 years ago)
Author:
bills
Message:

if data_group is not supplied use the diffRun's data_group

Location:
trunk/ippTools
Files:
2 edited

Legend:

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

    r28039 r28765  
    44    MAX(diffWarps.diff_id) AS diff_id,
    55    -- The following trick pulls out the 'inverse' value for the maximum diff_id
    6     CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse
     6    CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse,
     7    diff_data_group
    78FROM (
    89    -- Forward diffs
     
    1011        diffRun.diff_id,
    1112        warp1 AS warp_id,
    12         0 AS inverse
     13        0 AS inverse,
     14        diffRun.data_group AS diff_data_group
    1315    FROM diffRun
    1416    JOIN diffInputSkyfile USING(diff_id)
     
    2224        diffRun.diff_id,
    2325        warp2 AS warp_id,
    24         1 AS inverse
     26        1 AS inverse,
     27        diffRun.data_group AS diff_data_group
    2528    FROM diffRun
    2629    JOIN diffInputSkyfile USING(diff_id)
  • trunk/ippTools/src/magictool.c

    r28516 r28765  
    246246        psS64 diff_id = psMetadataLookupS64(NULL, row, "diff_id"); // difference identifier
    247247        bool inverse = psMetadataLookupU64(NULL, row, "inverse"); // Inverse subtraction? Note types!
     248        psString diff_data_group = psMetadataLookupStr(NULL, row, "diff_data_group");
    248249
    249250        // create a new magicRun for this group
     
    256257                                            "dirty",    // workdir_state
    257258                                            label,
    258                                             data_group ? data_group : label,
     259                                            data_group ? data_group : (diff_data_group ? diff_data_group : label),
    259260                                            dvodb,
    260261                                            registered,
Note: See TracChangeset for help on using the changeset viewer.