Changeset 30281
- Timestamp:
- Jan 14, 2011, 4:00:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippScripts/scripts/nightly_science.pl
r30262 r30281 1359 1359 foreach my $object_row (@{ $object_ref }) { 1360 1360 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 "; 1364 1364 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 1365 1370 my $warps = $db->selectall_arrayref( $input_sth ); 1366 1371 … … 1411 1416 my $template_warp_id = ${ $template_warp }[1]; 1412 1417 1418 my $input_warp_state = ${ $input_warp }[4]; 1419 my $template_warp_state = ${ $template_warp }[4]; 1420 1413 1421 $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 1414 1429 if (verify_uniqueness_diff($input_warp_id,$template_warp_id,$date,$target) != 0) { 1415 1430 $Nqueued++; … … 1440 1455 &my_die("Unable to perform difftool: $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR); 1441 1456 } 1457 $Nqueued++; 1442 1458 } 1443 1459 }
Note:
See TracChangeset
for help on using the changeset viewer.
