IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25194


Ignore:
Timestamp:
Aug 25, 2009, 3:22:24 PM (17 years ago)
Author:
bills
Message:

temporarily allow requests for mops to skip the magic check.
Fix duplicate error status from jobs that need images that aren't destreaked
change some comments

File:
1 edited

Legend:

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

    r25130 r25194  
    219219    $need_magic = $proj_hash->{need_magic};
    220220
     221    # Temporary hack so that MOPS can get at non-magicked data
     222    if ($product eq "mops-pstamp-results") {
     223        $need_magic = 0;
     224    }
     225
    221226    # collect rows with the same images of interest in a list so that they
    222227    # can be looked up together
     
    289294    my $have_skycells = shift;
    290295    my $need_magic = shift;
     296
    291297    my $num_jobs = 0;
    292 
    293298    my $rownum = $row->{ROWNUM};
    294 
    295299    my $components = $row->{components};
    296300
     
    334338        if (($stage ne "stack") and ($need_magic and !$image->{magicked})) {
    335339            # XXX: should we add a faulted job so the client can know what happened if no images come back?
    336             print STDERR "skippping non-magicked image $imagefile\n" if $verbose;
     340            print STDERR "skipping non-magicked image $imagefile\n" if $verbose;
    337341
    338342            # for now assume yes.
    339343
    340344            insertFakeJobForRow($row, $job_num, $PSTAMP_NOT_DESTREAKED);
     345            $num_jobs++;
    341346
    342347            next;
     
    488493            if ($npoints) {
    489494                # we collected a set of sky coordintates above filter the images so that only
    490                 # those tat contain the centers are processed
     495                # those that contain the centers are processed
    491496                my $command = "$dvoImagesAtCoords $pointsListName";
    492497                if ($have_skycells) {
     
    519524                    my ($rownum, undef, undef, $component) = split " ", $line;
    520525
    521                     # I guess since we need this function we should be useing a hash for rowList
     526                    # I guess since we need this function we should be using a hash for rowList
    522527                    my $row = findRow($rownum, $rowList);
    523528                    $row->{components}->{$component} = 1;
Note: See TracChangeset for help on using the changeset viewer.