/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/classgen.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/classgen.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 900 by jonathan, Wed May 14 11:15:41 2003 UTC revision 959 by jonathan, Wed May 21 17:22:58 2003 UTC
# Line 141  class ClassGenerator: Line 141  class ClassGenerator:
141    
142                  start, min, endMax, right = _range.GetRange()                  start, min, endMax, right = _range.GetRange()
143    
                 if str(min) == '-inf':  
                     min = "-oo"  
                 elif str(min) == 'inf':  
                     min = "oo"  
   
                 if str(endMax) == '-inf':  
                     endMax = "-oo"  
                 elif str(endMax) == 'inf':  
                     endMax = "oo"  
   
144                  oldp = 0                  oldp = 0
145                  i = 1                  i = 1
146                  end = "]"                  end = "]"
# Line 162  class ClassGenerator: Line 152  class ClassGenerator:
152                      else:                      else:
153                          max = _list[q]                          max = _list[q]
154    
155                      group = ClassGroupRange(Range(start + str(min) + ";" +                      group = ClassGroupRange(Range((start, min, max, end)),
                                                           str(max) + end),  
156                                              None, prop)                                              None, prop)
157                    
158                      group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),                      group.SetLabel("%s%% - %s%%" % (round(oldp*100, 2),

Legend:
Removed from v.900  
changed lines
  Added in v.959

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26