IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2009, 3:18:43 PM (16 years ago)
Author:
bills
Message:

Add program that given a dvo database, smf file, or tess_id figures
out which image a given point is contained in. Uses dvoImagesAtCoords to do the real
work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/magic_destreak_revert.pl

    r26266 r26290  
    389389    $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
    390390
    391     # we wouldn't be here unless an entry already exists in the database
    392 #    my $command = "$magicdstool -adddestreakedfile";
    393 #    $command   .= " -magic_ds_id $magic_ds_id";
    394 #    $command   .= " -component $component";
    395 #    $command   .= " -fault $exit_code";
    396 #    $command   .= " -dbname $dbname" if defined $dbname;
    397 
    398 #    # Add the processed file to the database
    399 #    unless ($no_update) {
    400 #        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    401 #            run(command => $command, verbose => $verbose);
    402 #        unless ($success) {
    403 #            carp("failed to update database for $magic_ds_id $component");
    404 #        }
    405 #    } else {
    406 #        print "Skipping command: $command\n";
    407 #    }
    408 
    409     carp($msg);
     391    # fault the whole run if one of the components fails to revert
     392    my $command = "$magicdstool -updaterun";
     393    $command   .= " -magic_ds_id $magic_ds_id";
     394    $command   .= " -fault $exit_code";
     395    $command   .= " -dbname $dbname" if defined $dbname;
     396
     397    # Add the processed file to the database
     398    unless ($no_update) {
     399        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     400            run(command => $command, verbose => $verbose);
     401        unless ($success) {
     402            carp("failed to update database for $magic_ds_id $component");
     403        }
     404    } else {
     405        print "Skipping command: $command\n";
     406    }
     407
    410408    exit $exit_code;
    411409}
Note: See TracChangeset for help on using the changeset viewer.