Changeset 6202:889003f1a3e9 in orange


Ignore:
Timestamp:
08/14/09 14:23:02 (5 years ago)
Author:
markotoplak
Branch:
default
Convert:
bb47377e40f331e305d998983ede62972d20fc97
Message:

OWDistanceMap: rounding up for upper limits and down for lower

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Unsupervised/OWDistanceMap.py

    r6078 r6202  
    446446        self.errorText.hide() 
    447447 
    448         lo = self.CutEnabled and self.CutLow   or self.lowerBound 
    449         hi = round(self.CutEnabled and self.CutHigh  or self.upperBound, 1) 
     448        lo = self.CutEnabled and self.CutLow or round(self.lowerBound, 1) + \ 
     449            (-0.1 if round(self.lowerBound, 1) > self.lowerBound else 0) 
     450        hi = self.CutEnabled and self.CutHigh or round(self.upperBound, 1) + \ 
     451            (0.1 if round(self.upperBound, 1) < self.upperBound else 0) 
    450452 
    451453        self.offsetX = 5 
Note: See TracChangeset for help on using the changeset viewer.