IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2006, 12:16:03 PM (20 years ago)
Author:
Paul Price
Message:

Changing 'exp id' to 'exp tag' throughout, following corresponding change in database.

File:
1 edited

Legend:

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

    r9091 r9097  
    1212use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    1313
    14 my ($expid, $no_update);
     14my ($exptag, $no_update);
    1515
    1616GetOptions(
    17     'exp_id|e=s'    => \$expid,
     17    'exp_tag|e=s'    => \$exptag,
    1818    'no-update'     => \$no_update
    1919) or pod2usage( 2 );
     
    2121pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    2222pod2usage(
    23     -msg => "Required options: --exp_id",
     23    -msg => "Required options: --exp_tag",
    2424    -exitval => 3,
    25 ) unless defined $expid;
     25) unless defined $exptag;
    2626
    2727# Define setup
     
    7373my $imfiles;
    7474{
    75     my $command = "$p0tool -rawimfile -exp_id $expid";
     75    my $command = "$p0tool -rawimfile -exp_tag $exptag";
    7676    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7777        run(command => $command, verbose => 1);
    78     die "Unable to perform p0tool on exposure id $expid: $error_code\n" if not $success;
     78    die "Unable to perform p0tool on exposure id $exptag: $error_code\n" if not $success;
    7979    my $metadata = $mdcParser->parse(join "", @$stdout_buf)
    8080            or die "unable to parse metadata config doc";
     
    117117# Output results to the database
    118118unless ($no_update) {
    119     my $command = "$p0tool -updateexp -exp_id $expid"; # Command to execute to update exposure parameters
     119    my $command = "$p0tool -updateexp -exp_tag $exptag"; # Command to execute to update exposure parameters
    120120   
    121121    # Add the values of interest
     
    157157    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    158158        run(command => $command, verbose => 1);
    159     die "Unable to run phase0 update for $expid: $error_code\n" if not $success;
     159    die "Unable to run phase0 update for $exptag: $error_code\n" if not $success;
    160160}
    161161
Note: See TracChangeset for help on using the changeset viewer.