IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8551


Ignore:
Timestamp:
Aug 23, 2006, 6:27:39 PM (20 years ago)
Author:
Paul Price
Message:

Catch case that there's only a single imfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/phase0exp.pl

    r8550 r8551  
    130130        $stats->add_data(@backgrounds);
    131131        $command .= " -" . PHASE0_BG() . " " . $stats->mean();
    132         $command .= " -" . PHASE0_BG_STDEV() . " " . $stats->standard_deviation();
     132        if (scalar @backgrounds == 1) {
     133            $command .= ' -' . PHASE0_BG_STDEV() . " 0.0";
     134        } else {
     135            $command .= " -" . PHASE0_BG_STDEV() . " " . $stats->standard_deviation();
     136        }
    133137    }
    134138    {
Note: See TracChangeset for help on using the changeset viewer.