IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 20, 2009, 8:29:18 AM (17 years ago)
Author:
bills
Message:

disallow stamps from non-magicked files

File:
1 edited

Legend:

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

    r24831 r24855  
    240240        foreach my $image (@$images) {
    241241            my $uri = $image->{image};
     242            if (($img_type ne "stack") and ($need_magic and !$image->{magicked})) {
     243                print STDERR "skippping non-magicked image $uri\n" if $verbose;
     244                next;
     245            }
    242246            my $exp_id = $image->{exp_id};
    243247           
     
    261265            }
    262266
    263             # XXX sounds like magic will be handled outside of the postage stamp server
    264             #if ($need_magic) {
    265             #    die "no magic mask available" if ! $image->{magic_mask};
    266             #    $args .= " -magic_mask $image->{magic_mask}"
    267             #}
    268 
    269267            # XXX: TODO: here is where we need to check whether or not the source inputs still exist
    270             # and if not, queue a regeneration job and set the job state appropriately.
    271 
    272             my $state = "run";
     268            # and if not, queue an update job and set the job state appropriately.
     269
     270            my $newState = "run";
    273271
    274272            $num_jobs++;
    275273            my $command = "$pstamptool -addjob -req_id $req_id -job_type $job_type"
    276274                . " -uri $uri -outputBase $output_base -args '$args' -rownum $rownum"
    277                 . " -state $state";
     275                . " -state $newState";
    278276            $command .= " -exp_id $exp_id" if $exp_id;
    279277            $command .= " -dbname $dbname" if $dbname;
Note: See TracChangeset for help on using the changeset viewer.