IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 7, 2009, 1:05:22 PM (17 years ago)
Author:
bills
Message:

Add new table pstampDependent. An entry gets created by the postage stamp request parser
when the source run has been cleaned. The pstampJob is blocked from running until
the system detects that the run has been updated and magicked. (This code is yet
to be developed.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r25776 r25793  
    128128}
    129129
    130 sub lookup {
     130sub lookup
     131{
    131132    my $ipprc    = shift;
    132133    my $image_db = shift;
     
    296297
    297298        # if uri is nil this will get overridded below
    298         # (this is for raw stage)
     299        # (we do this here for raw stage)
    299300        $out->{image}  = $image->{uri};
    300301        if ($set_class_id) {
     
    302303            $out->{component} = $class_id;
    303304        }
     305        my $stage_id;
     306        if ($img_type eq "raw") {
     307            $stage_id = $image->{exp_id};
     308        } elsif ($img_type eq "chip") {
     309            $stage_id = $image->{chip};
     310        } elsif ($img_type eq "warp") {
     311            $stage_id = $image->{warp_id};
     312        } elsif ($img_type eq "diff") {
     313            $stage_id = $image->{diff_id};
     314        } elsif ($img_type eq "stack") {
     315            $stage_id = $image->{stack_id};
     316        }
     317        $image->{stage_id} = $stage_id;
     318        $image->{stage}    = $img_type;
     319        $image->{image_db} = $image_db;
    304320
    305321        # find the mask and weight images
    306322        if ($base) {
    307             $out->{image}  = $ipprc->filename($image_name,   $base, $class_id) if $image_name;
     323            $out->{image}  = $ipprc->filename($image_name,  $base, $class_id) if $image_name;
    308324            $out->{mask}   = $ipprc->filename($mask_name,   $base, $class_id) if $mask_name;
    309325            $out->{weight} = $ipprc->filename($weight_name, $base, $class_id) if $weight_name;
Note: See TracChangeset for help on using the changeset viewer.