IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2012, 2:49:37 PM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r32731 r33638  
    351351        $command .= " -dateobs_begin $dateobs_begin" if $dateobs_begin;
    352352        $command .= " -dateobs_end $dateobs_end" if $dateobs_end;
    353     } else {
     353    } elsif ($req_type ne "byid") {
    354354        $command .= " -mjd_obs_begin $mjd_min" if $mjd_min;
    355355        $command .= " -mjd_obs_end $mjd_max" if $mjd_max;
     
    438438        } elsif ($stage eq "stack") {
    439439            $stage_id = $out->{stack_id};
     440            # dquery wants these set
     441            $out->{magicked} = 0;
     442            $out->{data_state} = $out->{state};
    440443        }
    441444        $out->{stage_id} = $stage_id;
     
    487490    my $command = "$difftool -dbname $imagedb -pstamp_order";
    488491   
    489     my $listrun = 0;
     492    my $choose_components = 0;
    490493    if ($byid) {
    491494        if ($skycell_id and ($skycell_id ne 'all')) {
    492495            $command .= " -diffskyfile -diff_id $id -skycell_id $skycell_id";
    493496        } else {
    494             $listrun = 1;
     497            $choose_components = 1;
    495498            $command .= " -listrun -diff_id $id";
    496499            # the following is a work around for the problem reported in ticket #1394
     
    512515
    513516    my $images;
    514     if ($listrun) {
     517    if ($choose_components) {
    515518        $images = selectComponents($ipprc, $imagedb, 'byid', 'diff', $rowList, $output, $verbose);
    516519    } else {
     
    603606            my @imageList = ($image);
    604607
    605             setRowRefs($rowList, \@imageList);
     608            setRowRefs($rowList, \@imageList) unless $choose_components;
    606609            # the $image is going to be returned directly in this case so we need to duplicate
    607610            # some of processing that lookup does for other img_types
     
    847850    {
    848851        my $command = "$whichimage $ra $dec";
     852        $command .= " --tess_id $requested_tess_id" if $requested_tess_id;
    849853        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    850854                    run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.