IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28135


Ignore:
Timestamp:
May 27, 2010, 10:12:12 AM (16 years ago)
Author:
bills
Message:

Merging changes needed by the postage stamp server into the working branch

Location:
tags/ipp-20100525
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100525/PS-IPP-PStamp

  • tags/ipp-20100525/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r28069 r28135  
    10451045    $last_project = $proj_hash->[0];
    10461046
     1047    $ipprc->define_camera($last_project->{camera});
     1048
    10471049    return $last_project;
    10481050}
     
    11051107    close $pointsList;
    11061108
    1107     # XXX: need to loop over these
    1108     # my $run = $runList->[0];
    11091109    if (($req_type eq "byid") or ($req_type eq "byexp")) {
    11101110        my ($last_tess_id, $tess_dir_abs, $astrom_file) = ("", "", "");
     
    11141114                # XXX: use file rule and handle cameras where the astrometry is solved at
    11151115                # the chip stage.
    1116                 $astrom_file = $run->{cam_path_base} . ".smf";
     1116                my $cam_path_base = $run->{cam_path_base};
     1117                if ($cam_path_base) {
     1118                    $astrom_file = $run->{cam_path_base} . ".smf";
     1119                } else {
     1120                    if (! find_astrometry($ipprc, $imagedb, $run, $verbose) ) {
     1121                        setErrorCodes($rowList, $PSTAMP_NOT_AVAILABLE);
     1122                        next;
     1123                    }
     1124                    $cam_path_base = $run->{cam_path_base};
     1125                    $astrom_file = $run->{astrom_file};
     1126                }
    11171127                my $astrom_file_resolved = $ipprc->file_resolve($astrom_file);
    11181128                if (!$astrom_file_resolved) {
  • tags/ipp-20100525/pstamp

  • tags/ipp-20100525/pstamp/scripts/pstamp_checkdependent.pl

    r28064 r28135  
    299299        my $command = "$warptool -scmap -warp_id $warp_id -skycell_id $skycell_id";
    300300        my $data = runToolAndParse($command, $verbose);
    301         my_die("failed to find warpSkyCelllMap for warpRun $warp_id skycell_id $skycell_id", $PS_EXIT_UNKNOWN_ERROR)
    302             if !$data or scalar @$data == 0;
     301        if (!$data or scalar @$data == 0) {
     302            # This happens if the chipProcessedImfile disappears which happened when earlier
     303            # versions of chiptool -revertprocessedimfile didn't check the chipRun.state before
     304            # deleing the row.
     305            # Fault the jobs so that the Request can finish ...
     306            faultJobs('stop', undef, undef, $PSTAMP_GONE);
     307            # ... and fault the dependent so that we have a record of the error
     308            my_die("failed to find warpSkyCelllMap for warpRun $warp_id skycell_id $skycell_id",
     309                $PS_EXIT_DATA_ERROR);
     310        }
     311
    303312
    304313        my $chips_ready = 1;
Note: See TracChangeset for help on using the changeset viewer.