IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2010, 10:05:43 AM (16 years ago)
Author:
eugene
Message:

merge from trunk

Location:
branches/eam_branches/ipp-20101205/ippTools/share
Files:
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/ippTools/share/Makefile.am

    r29717 r30102  
    316316        receivetool_revert.sql \
    317317        receivetool_toadvance.sql \
     318        regtool_checkburntoolimfile.sql \
    318319        regtool_create_dup_table.sql \
    319320        regtool_export_exp.sql \
     
    331332        regtool_updatebyquery.sql \
    332333        regtool_updatebyqueryimfile.sql \
     334        regtool_pendingburntoolimfile.sql \
    333335        stacktool_associationdefine_select.sql \
    334336        stacktool_definebyquery_insert.sql \
  • branches/eam_branches/ipp-20101205/ippTools/share/camtool_find_pendingimfile.sql

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20101205/ippTools/share/chiptool_find_rawexp.sql

    r23917 r30102  
    11-- this query is used to find potental rawExps to be queued for chiptool
    22-- processeing
    3 SELECT
     3SELECT DISTINCT
    44    rawExp.*,
    55    newExp.label
    66FROM rawExp
    77JOIN newExp using (exp_id)
     8LEFT JOIN chipRun USING (exp_id)
    89WHERE
    910    rawExp.fault = 0
  • branches/eam_branches/ipp-20101205/ippTools/share/pubtool_definerun.sql

    r28428 r30102  
    33    client_id,
    44    stage_id,
    5     src_label
     5    src_label,
     6    output_format
    67FROM (
    78    -- Get diffs to publish
     
    910        client_id,
    1011        diff_id AS stage_id,
    11         diffRun.label AS src_label
     12        diffRun.label AS src_label,
     13        output_format
    1214    FROM publishClient
    1315    JOIN diffRun
     
    2830        client_id,
    2931        cam_id AS stage_id,
    30         camRun.label AS src_label
     32        camRun.label AS src_label,
     33        output_format
    3134    FROM publishClient
    3235    JOIN camRun
     
    4346        client_id,
    4447        diff_phot_id AS stage_id,
    45         diffPhotRun.label AS src_label
     48        diffPhotRun.label AS src_label,
     49        output_format
    4650    FROM publishClient
    4751    JOIN diffPhotRun
  • branches/eam_branches/ipp-20101205/ippTools/share/pubtool_pending.sql

    r28491 r30102  
    99        publishClient.stage,
    1010        publishClient.workdir,
     11        publishClient.output_format,
    1112        diffRun.diff_id AS stage_id,
    1213        rawExp.camera,
     
    3536        publishClient.stage,
    3637        publishClient.workdir,
     38        publishClient.output_format,
    3739        camRun.cam_id AS stage_id,
    3840        rawExp.camera,
     
    5658        publishClient.stage,
    5759        publishClient.workdir,
     60        publishClient.output_format,
    5861        diffPhotRun.diff_phot_id AS stage_id,
    5962        rawExp.camera,
  • branches/eam_branches/ipp-20101205/ippTools/share/pxadmin_create_tables.sql

    r29923 r30102  
    99    uri VARCHAR(255),
    1010    epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     11    use_compress SMALLINT,
    1112    PRIMARY KEY(camera, telescope)
    1213) ENGINE=innodb DEFAULT CHARSET=latin1;
     
    251252    md5sum VARCHAR(32),
    252253    burntool_state SMALLINT,
     254    video_cells TINYINT DEFAULT 0,
    253255    PRIMARY KEY(exp_id, class_id),
    254256    KEY(tmp_class_id),
     
    16431645    workdir VARCHAR(255) NOT NULL, -- working directory
    16441646    comment VARCHAR(255),            -- for human memory
    1645     PRIMARY KEY(client_id)
     1647    name varchar(64) default NULL, -- unique client_id verbose identifier
     1648    output_format SMALLINT NOT NULL default 1, -- format output versioning
     1649    PRIMARY KEY(client_id),
     1650    UNIQUE KEY name (name)
    16461651) ENGINE=innodb DEFAULT CHARSET=latin1;
    16471652
  • branches/eam_branches/ipp-20101205/ippTools/share/regtool_pendingexp.sql

    r20759 r30102  
    11SELECT DISTINCT
    2     exp_id,
    3     tmp_exp_name,
    4     tmp_camera,
    5     tmp_telescope,
    6     state,
    7     workdir,
    8     workdir_state,
    9     reduction,
    10     dvodb,
    11     tess_id,
    12     end_stage,
    13     label,
    14     camera,
    15     filter,
    16     obs_mode,
    17     obs_group,
    18     epoch,
    19     dateobs
    20 FROM
    21     (SELECT
    22        newExp.*,
    23        newImfile.tmp_class_id,
    24        rawImfile.tmp_class_id as raw_tmp_class_id,
    25        rawImfile.camera,
    26        rawImfile.filter,
    27        rawImfile.dateobs,
    28        rawImfile.obs_mode,
    29        rawImfile.obs_group
    30     FROM newExp
    31     JOIN newImfile
    32        USING(exp_id)
    33     LEFT JOIN rawExp
    34        USING(exp_id)
    35     LEFT JOIN rawImfile
    36         ON newImfile.exp_id = rawImfile.exp_id
    37         AND newImfile.tmp_class_id = rawImfile.tmp_class_id
    38     WHERE
    39         newExp.state = 'run'
    40         AND rawExp.exp_id IS NULL
    41 -- where hook %s
    42     GROUP BY
    43         newExp.exp_id
    44     HAVING
    45         COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id)
    46         AND SUM(rawImfile.fault) = 0
     2     exp_id,
     3     tmp_exp_name,
     4     tmp_camera,
     5     tmp_telescope,
     6     state,
     7     workdir,
     8     workdir_state,
     9     reduction,
     10     dvodb,
     11     tess_id,
     12     end_stage,
     13     label,
     14     camera,
     15     filter,
     16     obs_mode,
     17     obs_group,
     18     epoch,
     19     dateobs
     20FROM
     21        (
     22        select DISTINCT * from
     23         (
     24          select newExp.*,count(newImfile.tmp_class_id) AS new_count
     25          from newExp
     26          LEFT JOIN newImfile USING (exp_id)
     27          LEFT JOIN rawExp USING (exp_id)
     28          where
     29           newExp.state = 'run' AND rawExp.exp_id IS NULL
     30          GROUP BY newExp.exp_id
     31         ) AS NEWEXPOSURES
     32         JOIN
     33         (
     34          select DISTINCT newExp.exp_id,
     35          rawImfile.camera,
     36          rawImfile.filter,
     37          rawImfile.dateobs,
     38          rawImfile.obs_mode,
     39          rawImfile.obs_group,
     40          count(rawImfile.tmp_class_id) AS raw_count
     41          from newExp
     42          LEFT JOIN rawExp USING (exp_id)
     43          LEFT JOIN rawImfile USING (exp_id)
     44          where
     45           newExp.state = 'run' AND rawExp.exp_id IS NULL
     46           AND rawImfile.data_state = 'full'
     47           -- where hook %s
     48          GROUP BY newExp.exp_id
     49          HAVING SUM(rawImfile.fault) = 0
     50         ) AS RAWEXPOSURES
     51         USING (exp_id)
     52        WHERE raw_count = new_count
     53    ) AS Foo
    4754-- limit hook %s
    48     ) as Foo
Note: See TracChangeset for help on using the changeset viewer.