Changeset 136

Show
Ignore:
Timestamp:
10/24/06 18:09:08 (7 years ago)
Author:
max
Message:

No need to zero quality-1 grabbers when not randomizing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • shepherd

    r135 r136  
    589589 
    590590    # Eliminate grabbers of data quality 1 if there are any better-quality 
    591     # alternatives. 
    592     foreach (keys %$gscore) 
    593     { 
    594         if ($gscore->{$_} 
    595                 and 
    596             query_config($_, 'quality') == 1 
    597                 and 
    598             $bestdq > 1) 
    599         { 
    600             $total -= $gscore->{$_}; 
    601             $gscore->{$_} = 0; 
    602             print "Zeroing grabber $_ due to low data quality.\n" if ($debug); 
     591    # alternatives when using randomize. 
     592    if ($opt->{randomize}) 
     593    { 
     594        foreach (keys %$gscore) 
     595        { 
     596            if ($gscore->{$_} 
     597                    and 
     598                query_config($_, 'quality') == 1 
     599                    and 
     600                $bestdq > 1) 
     601            { 
     602                $total -= $gscore->{$_}; 
     603                $gscore->{$_} = 0; 
     604                print "Zeroing grabber $_ due to low data quality.\n" if ($debug); 
     605            } 
    603606        } 
    604607    }