Changeset 35550
- Timestamp:
- May 9, 2013, 11:30:54 AM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130419
- Files:
-
- 10 edited
-
dbconfig/cam.md (modified) (1 prop)
-
dbconfig/changes.txt (modified) (2 diffs, 1 prop)
-
ippScripts/scripts/chip_imfile.pl (modified) (1 prop)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_cleanup.pl (modified) (3 diffs)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 diff, 1 prop)
-
ippScripts/scripts/warp_skycell.pl (modified) (1 diff, 1 prop)
-
ippScripts/scripts/whichimage (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/dbconfig/cam.md
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130419/dbconfig/changes.txt
- Property svn:mergeinfo changed
/trunk/dbconfig/changes.txt merged: 35472
r35436 r35550 2400 2400 ) ENGINE=innodb DEFAULT CHARSET=latin1; 2401 2401 2402 UPDATE dbversion set schema_version = '1.1.75', updated= CURRENT_TIMESTAMP();2403 2404 2405 2402 -- new Postage Stamp Request columns 2406 2403 -- Note: These do not aply to the gpc1 database because the pstamp tables were … … 2412 2409 -- default to the gpc1 project 2413 2410 UPDATE pstampRequest SET proj_id = 1; 2411 2412 -- unique keys for the release tables 2413 2414 alter table relStack add unique key (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs) 2415 alter table relExp add UNIQUE KEY(rel_id, exp_id); 2416 alter table ippRelease add unique key (surveyID, release_name); 2417 2418 UPDATE dbversion set schema_version = '1.1.75', updated= CURRENT_TIMESTAMP(); - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/chip_imfile.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/ipp_cleanup.pl
r35128 r35550 20 20 my ($stage, $camera, $stage_id, $mode, $path_base, $dbname, $verbose, $no_op, $helplist, $logfile, $check_all); 21 21 my $very_verbose = 0; 22 23 # turn this on to set data_state to error_state for components for which cleanup fails 24 # Note: we no longer do this, we leave the state alone. 25 my $set_error_state_for_file = 0; 26 27 # turn this on the set the state to error_state when errors occur cleaning up individual components 28 # We may stop doing this 29 my $set_error_state_for_run = 1; 22 30 23 31 # this gets set to 1 the first time we set the corresponding destreak run to be cleaned … … 335 343 $num_errors++; 336 344 337 # if an error happens for one chip, the chipRun will stay in goto_*, but the chips will go to error_* (matching the goto_*) 338 my $command = "$chiptool -updateprocessedimfile -chip_id $stage_id -class_id $class_id -set_state $error_state"; 339 $command .= " -dbname $dbname" if defined $dbname; 340 341 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 345 if ($set_error_state_for_file) { 346 # if an error happens for one chip, the chipRun will stay in goto_*, but the chips will go to error_* (matching the goto_*) 347 my $command = "$chiptool -updateprocessedimfile -chip_id $stage_id -class_id $class_id -set_state $error_state"; 348 $command .= " -dbname $dbname" if defined $dbname; 349 350 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 351 run(command => $command, verbose => $verbose); 352 unless ($success) { 353 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 354 &my_die("Unable to perform chiptool: $error_code", "chip", $stage_id, $error_code); 355 } 356 } 357 358 if ($set_error_state_for_run) { 359 # We want to flag the run as well, to avoid attempting to reprocess the same data over and over again. 360 $command = "$chiptool -chip_id $stage_id -updaterun -set_state $error_state"; 361 $command .= " -dbname $dbname" if defined $dbname; 362 363 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 342 364 run(command => $command, verbose => $verbose); 343 unless ($success) { 344 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 345 &my_die("Unable to perform chiptool: $error_code", "chip", $stage_id, $error_code); 346 } 347 348 # We want to flag the run as well, to avoid attempting to reprocess the same data over and over again. 349 $command = "$chiptool -chip_id $stage_id -updaterun -set_state $error_state"; 350 $command .= " -dbname $dbname" if defined $dbname; 351 352 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 353 run(command => $command, verbose => $verbose); 354 unless ($success) { 355 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 356 &my_die("Unable to perform chiptool: $error_code", "chip", $stage_id, $error_code); 357 } 358 359 } 360 } 361 if ($num_updated eq 0 and $num_errors eq 0) { 362 # no chips were updated by this procedssing so set state to $done_state 365 unless ($success) { 366 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 367 &my_die("Unable to perform chiptool: $error_code", "chip", $stage_id, $error_code); 368 } 369 370 } 371 } 372 } 373 # We no longer depend on chiptool to promote the run from goto_cleaned to cleaned based on all of 374 # the imfiles being in the cleaned state. 375 # Due to missing files we don't always clean individual components. 376 # unless there was an error set state to $done_state 377 if (!$set_error_state_for_run or $num_errors eq 0) { 378 # set state to $done_state 363 379 my $command = "$chiptool -chip_id $stage_id -updaterun -set_state $done_state"; 364 380 $command .= " -dbname $dbname" if defined $dbname; … … 625 641 } else { 626 642 $num_errors++; 627 my $command = "$warptool -updateskyfile -warp_id $stage_id -skycell_id $skycell_id -set_state $error_state"; 628 $command .= " -dbname $dbname" if defined $dbname; 629 630 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 631 run(command => $command, verbose => $verbose); 632 unless ($success) { 633 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 634 &my_die("Unable to perform warptool: $error_code", "warp", $stage_id, $error_code); 635 } 636 637 # We want to flag the run as well, to avoid attempting to reprocess the same data over and over again. 638 $command = "$warptool -warp_id $stage_id -updaterun -set_state $error_state"; 639 $command .= " -dbname $dbname" if defined $dbname; 640 641 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 642 run(command => $command, verbose => $verbose); 643 unless ($success) { 644 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 645 &my_die("Unable to perform warptool: $error_code", "warp", $stage_id, $error_code); 646 } 647 } 648 } 649 if ($num_updated eq 0 and $num_errors eq 0) { 650 # no skycells were updated by this procedssing so set state to $done_state 643 if ($set_error_state_for_file) { 644 my $command = "$warptool -updateskyfile -warp_id $stage_id -skycell_id $skycell_id -set_state $error_state"; 645 $command .= " -dbname $dbname" if defined $dbname; 646 647 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 648 run(command => $command, verbose => $verbose); 649 unless ($success) { 650 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 651 &my_die("Unable to perform warptool: $error_code", "warp", $stage_id, $error_code); 652 } 653 } 654 655 if ($set_error_state_for_run) { 656 # We want to flag the run as well, to avoid attempting to reprocess the same data over and over again. 657 $command = "$warptool -warp_id $stage_id -updaterun -set_state $error_state"; 658 $command .= " -dbname $dbname" if defined $dbname; 659 660 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 661 run(command => $command, verbose => $verbose); 662 unless ($success) { 663 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 664 &my_die("Unable to perform warptool: $error_code", "warp", $stage_id, $error_code); 665 } 666 } 667 } 668 } 669 if (!$set_error_state_for_run or $num_errors eq 0) { 670 # Set run to done state 651 671 my $command = "$warptool -warp_id $stage_id -updaterun -set_state $done_state"; 652 672 $command .= " -dbname $dbname" if defined $dbname; -
branches/eam_branches/ipp-20130419/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/publish_file.pl merged: 35463
r35436 r35550 328 328 329 329 unless ($no_update) { 330 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id -- copy--abspath --product $product --type $dsType --list $dsFileName";330 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --link --abspath --product $product --type $dsType --list $dsFileName"; 331 331 $command .= " --ps0 \"$comment\"" if defined $comment; 332 332 $command .= " --ps1 \"$exp_name_1\"" if defined $exp_name_1; - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/warp_skycell.pl
- Property svn:mergeinfo changed
/trunk/ippScripts/scripts/warp_skycell.pl merged: 35490
r35436 r35550 158 158 $dynamicMasks = metadataLookupBool($recipeData, 'REFSTAR_MASK'); 159 159 } 160 160 print "Dynamic Mask Status: $dynamicMasks\n"; 161 161 162 162 my $outputImage = prepare_output ("PSWARP.OUTPUT", $outroot, $skycell_id, 1); - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130419/ippScripts/scripts/whichimage
r32820 r35550 94 94 my $cmd = "dvoImagesAtCoords -chipcoords $coord_file"; 95 95 $cmd .= " -listchipcoords" if $listchipcoords; 96 97 $tess_id = uc($tess_id) if $tess_id; 96 98 97 99 my $status = 0; … … 125 127 # next if $tess_name eq 'FIXNS'; 126 128 # next if $tess_name eq 'ALLSKY'; 129 next if $tess_name eq 'RINGS.V0'; 127 130 push @tess_ids_to_check, $tess_name; 128 131 }
Note:
See TracChangeset
for help on using the changeset viewer.
