IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30281


Ignore:
Timestamp:
Jan 14, 2011, 4:00:00 PM (15 years ago)
Author:
watersc1
Message:

diff queue bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20101215/ippScripts/scripts/nightly_science.pl

    r30262 r30281  
    13591359    foreach my $object_row (@{ $object_ref }) {
    13601360        my $this_object = shift @{ $object_row };
    1361         my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment from warpRun JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) ";
    1362         $input_sth .= " WHERE warpRun.state = 'full' AND warpRun.label = '$label' AND warpRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
    1363         $input_sth .= " ORDER BY dateobs ";
     1361#       my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment from warpRun JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) ";
     1362#       $input_sth .= " WHERE warpRun.state = 'full' AND warpRun.label = '$label' AND warpRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
     1363#       $input_sth .= " ORDER BY dateobs ";
    13641364       
     1365        my $input_sth = "select exp_id,warp_id,dateobs,rawExp.comment,warpRun.state AS warp_state FROM ";
     1366        $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) ";
     1367        $input_sth .=   " WHERE chipRun.label = '$label' AND chipRun.data_group = '$data_group' AND rawExp.filter = '$filter' AND rawExp.object = '$this_object' ";
     1368        $input_sth .=   " ORDER BY dateobs ";
     1369
    13651370        my $warps = $db->selectall_arrayref( $input_sth );
    13661371
     
    14111416            my $template_warp_id = ${ $template_warp }[1];
    14121417
     1418            my $input_warp_state = ${ $input_warp }[4];
     1419            my $template_warp_state = ${ $template_warp }[4];
     1420           
    14131421            $Npotential++;
     1422
     1423            unless (defined($input_warp_id) && defined($template_warp_id) &&
     1424                    ($input_warp_state eq 'full')&&($template_warp_state eq 'full')) {
     1425                print STDERR "Diff for this $date $target $input_exp_id $template_exp_id not fully processed\n";
     1426                next;
     1427            }
     1428
    14141429            if (verify_uniqueness_diff($input_warp_id,$template_warp_id,$date,$target) != 0) {
    14151430                $Nqueued++;
     
    14401455                    &my_die("Unable to perform difftool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);
    14411456                }
     1457                $Nqueued++;
    14421458            }
    14431459        }
Note: See TracChangeset for help on using the changeset viewer.