347 |
if numGroups == 0: return clazz |
if numGroups == 0: return clazz |
348 |
|
|
349 |
for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)): |
for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)): |
350 |
clazz.AddGroup(ClassGroupSingleton(value, prop)) |
clazz.AppendGroup(ClassGroupSingleton(value, prop)) |
351 |
|
|
352 |
return clazz |
return clazz |
353 |
|
|
369 |
|
|
370 |
# this check guards against rounding issues |
# this check guards against rounding issues |
371 |
if cur_min != cur_max: |
if cur_min != cur_max: |
372 |
clazz.AddGroup(ClassGroupRange(cur_min, cur_max, prop)) |
clazz.AppendGroup(ClassGroupRange(cur_min, cur_max, prop)) |
373 |
|
|
374 |
cur_min = cur_max |
cur_min = cur_max |
375 |
cur_max += step |
cur_max += step |