IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27795 for trunk/PS-IPP-PStamp


Ignore:
Timestamp:
Apr 28, 2010, 2:18:01 PM (16 years ago)
Author:
bills
Message:

first crack at queuing automatic updates for diffSkyfiles. Various bug fixes found in testing

File:
1 edited

Legend:

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

    r27783 r27795  
    455455    my $inverse = $option_mask & $PSTAMP_SELECT_INVERSE;
    456456
    457     my $command = "$difftool -diffskyfile -dbname $imagedb";
     457    my $command = "$difftool -dbname $imagedb";
    458458   
    459459    if ($byid) {
    460         $command .= " -diff_id $id";
     460        $command .= " -listrun -diff_id $id";
    461461    } else {
    462         $command .= " -diff_skyfile_id $id";
     462        $command .= " -diffskyfile -diff_skyfile_id $id";
    463463    }
    464464    $command .= " -skycell_id $skycell_id" if $skycell_id;
    465465
    466     my $images = runToolAndParse($command, $verbose);
    467 
    468     my $n = @$images;
     466    my $output = runToolAndParse($command, $verbose);
     467
     468    my $n = @$output;
    469469    if (!$byid && ($n > 1)) {
    470470        die ("difftool returned an unexpected number of diffskyfiles: $n");
    471471    } elsif ($n == 0) {
    472472        return undef;
     473    }
     474
     475    my $images;
     476    if ($byid) {
     477        $images = selectComponents($ipprc, $imagedb, 'byid', 'diff', $rowList, $output, $verbose);
     478    } else {
     479        $images = $output;
    473480    }
    474481
Note: See TracChangeset for help on using the changeset viewer.