IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35902


Ignore:
Timestamp:
Aug 7, 2013, 12:32:53 PM (13 years ago)
Author:
bills
Message:

fix a couple of bugs checked in by mistake.
Don't pass dbname and dbserver to ppstamp. They aren't needed and the values in the script are
pstamp database not the image database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r35901 r35902  
    155155    if ($stage eq 'chip' or $stage eq 'warp') {
    156156        my $cam_id = $params->{cam_id};
     157        if (!$cam_id) {
     158            carp "no cam_id found in job params\n";
     159            exit $PS_EXIT_PROG_ERROR;
     160        }
    157161        ($calib_fd, $calibfile) = tempfile ("$outdir/calib.XXXX", UNLINK => !$save_temps);
    158162        close $calib_fd;
    159163
    160         my $command = "$psgetcalibinfo --cam_id $cam_id --output $calibfile";
     164        my $command = "$psgetcalibinfo --cam_id $cam_id --output $calibfile --dbname $params->{imagedb}";
    161165        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    162166            run(command => $command, verbose => $verbose);
     
    184188    $command .= " -stage $stage";
    185189    $command .= " -forheader $calibfile" if $calibfile;
    186     $command .= " -dbname $dbname" if $dbname;
    187     $command .= " -dbserver $dbserver" if $dbserver;
     190#    $command .= " -dbname $dbname" if $dbname;
     191#    $command .= " -dbserver $dbserver" if $dbserver;
    188192    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    189193        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.