IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30700


Ignore:
Timestamp:
Feb 19, 2011, 10:28:40 AM (15 years ago)
Author:
eugene
Message:

merge from trunk

Location:
branches/eam_branches/ipp-20110213
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/ipp_apply_burntool_single.pl

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/magic_destreak.pl

    r30328 r30700  
    152152
    153153
     154# We don't use recoveryroot for camera stage
     155if ($stage eq 'camera') {
     156    $recoveryroot = undef;
     157}
     158
    154159# default value is "NULL" do not use
    155160if (defined($recoveryroot) and ($recoveryroot eq "NULL")) {
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/magic_destreak_revert.pl

    r30676 r30700  
    451451{
    452452    foreach my $file (@_) {
     453        next if !$file;
    453454        if ($ipprc->file_exists($file)) {
    454455            if (!$ipprc->file_delete($file)) {
  • branches/eam_branches/ipp-20110213/ippScripts/scripts/nightly_science.pl

    r30575 r30700  
    13151315    my $cam_ref  = $db->selectall_arrayref( $cam_sth );
    13161316    my $warp_ref = $db->selectall_arrayref( $warp_sth );
    1317 
    13181317    return($#{ $chip_ref } + 1, $#{ $cam_ref } + $#{ $warp_ref } + 2);
    13191318}
     
    14391438#       $input_sth .= " ORDER BY dateobs ";
    14401439       
    1441         my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state FROM ";
    1442         $input_sth .=   " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) ";
     1440        my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state,camProcessedExp.quality FROM ";
     1441        $input_sth .=   " rawExp LEFT JOIN chipRun USING (exp_id) LEFT JOIN camRun USING (chip_id) LEFT JOIN camProcessedExp USING(cam_id) LEFT JOIN fakeRun USING (cam_id) LEFT JOIN warpRun USING (fake_id) ";
    14431442        $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    14441443        $input_sth .=   " ORDER BY dateobs ";
     
    14611460            }
    14621461            else {
    1463                 print STDERR ": I should declare an exposure to be faulty.\n";
     1462                print STDERR ": I should declare an exposure to be qualityy.\n";
    14641463                my @keep_warps = ();
    14651464#               print "@{ $warps }\n";
     
    14941493            my $input_warp_state = ${ $input_warp }[4];
    14951494            my $template_warp_state = ${ $template_warp }[4];
    1496            
     1495
     1496            my $input_warp_camQuality = ${ $input_warp }[5];
     1497            my $template_warp_camQuality = ${ $template_warp }[5];
     1498
    14971499            $Npotential++;
    14981500
    14991501            unless (defined($input_warp_id) && defined($template_warp_id) &&
    15001502                    ($input_warp_state eq 'full')&&($template_warp_state eq 'full')) {
    1501                 print STDERR "Diff for this $date $target $input_exp_id $template_exp_id not fully processed\n";
     1503                print STDERR "Diff for this $date $target $input_exp_id $template_exp_id not fully processed ($input_warp_state $template_warp_state) ($input_warp_camQuality $template_warp_camQuality)\n";
     1504                if (($input_warp_camQuality == 4007)||($template_warp_camQuality == 4007)) {
     1505                    print STDERR "  ...but this is due to a camera stage astrometry quality\n";
     1506                    $Npotential--;
     1507                }
    15021508                next;
    15031509            }
  • branches/eam_branches/ipp-20110213/ippTools/share/camtool_find_pendingimfile.sql

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

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20110213/ippTools/src

  • branches/eam_branches/ipp-20110213/ippTools/src/magicdstool.c

    r30675 r30700  
    771771        break;
    772772    case IPP_STAGE_CAMERA:
    773         psFree(query);
    774773        query = NULL;
    775774        clearRunQuery = "UPDATE chipBackgroundRun SET magicked = 0 where chip_bg_id = %" PRId64;
  • branches/eam_branches/ipp-20110213/ippTools/src/magictool.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20110213/pstamp/scripts/psstatus

    r30517 r30700  
    4444
    4545my $totals_query = "
    46 SELECT label, count(job_id) AS 'Unfinished Jobs', priority
     46SELECT label,
     47    count(job_id) AS 'Unfinished Jobs',
     48    IFNULL(priority,10000) as priority
    4749FROM pstampRequest join pstampJob USING(req_id)
    48 JOIN Label USING(label)
     50LEFT JOIN Label USING(label)
    4951WHERE pstampJob.state ='run' and pstampRequest.state ='run'
    5052GROUP by label";
     
    7577        pstampRequest.fault,
    7678        timestamp,
    77         priority
    78 FROM pstampRequest
    79 JOIN Label USING(label)
     79        IFNULL(priority,10000) AS priority
     80FROM pstampRequest
     81LEFT JOIN Label USING(label)
    8082    WHERE pstampRequest.state = 'run' or pstampRequest.state ='new'
    8183   --     OR pstampRequest.state = 'run.wait'
  • branches/eam_branches/ipp-20110213/tools/regpeek.pl

    r30675 r30700  
    1313my $date = shift(@ARGV);
    1414unless(defined($date)) {
    15     my @time = localtime;
     15    my @time = gmtime;
    1616    $date = sprintf("%4d-%02d-%02d",$time[5] + 1900,$time[4] + 1,$time[3]);
    1717}
Note: See TracChangeset for help on using the changeset viewer.