IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17117


Ignore:
Timestamp:
Mar 24, 2008, 5:41:32 PM (18 years ago)
Author:
Paul Price
Message:

Adding check on normalisation.

File:
1 edited

Legend:

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

    r16563 r17117  
    181181        my $normalisation = $normItem->{value}; # Normalisation for component
    182182
     183        if ($normalisation == 0.0 or lc($normalisation) eq 'nan') {
     184            warn("Class $className has bad normalisation: $normalisation");
     185            exit($PS_EXIT_SYS_ERROR);
     186        }
     187
    183188        my $command = $commandBase;
    184189        $command .= " -class_id $className";
Note: See TracChangeset for help on using the changeset viewer.