IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2009, 9:23:45 AM (17 years ago)
Author:
bills
Message:

fix error in logic handling points that don't overlap any images

File:
1 edited

Legend:

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

    r25110 r25124  
    289289    my $have_skycells = shift;
    290290    my $need_magic = shift;
     291    my $num_jobs = 0;
    291292
    292293    my $rownum = $row->{ROWNUM};
    293294
    294295    my $components = $row->{components};
    295     my $numComponents = scalar keys %$components;
    296     if ( $numComponents == 0 ) {
    297         print STDERR "no jobs for row $rownum\n" if $verbose;
    298         insertFakeJobForRow($row, 1, $PSTAMP_NO_JOBS_QUEUED);
    299         return 1;
    300     }
    301296
    302297    my $roi_string;
     
    416411            print "skipping command: $command\n";
    417412        }
     413    }
     414    if ( $num_jobs == 0 ) {
     415        print STDERR "no jobs for row $rownum\n" if $verbose;
     416        insertFakeJobForRow($row, 1, $PSTAMP_NO_OVERLAP);
     417        $num_jobs = 1;
    418418    }
    419419    return $num_jobs;
Note: See TracChangeset for help on using the changeset viewer.