Parent Directory
|
Revision Log
Sticky Revision: |
made a copy
Added missing character encoding so that Python doesn't barf upon evaluating this file
(CustomRamp.GetProperties): Added size gradient.
(GenQuantiles0): Removed since it's only used in GREAT-ER but not used in Thuban itself. When GREAT-ER is ported to a newer the import will fail, so it should be noticed immediately that this function is gone. Fixes RT#1919
Add docstrings. Rename specific Ramp instances to use lower_case_style.
(generate_singletons, generate_uniform_distribution, generate_quantiles): Remove fixes parameter, but maintain the same functionality by having the calling function pass a FixedRamp object for the ramp. (FixedRamp): New. Adapts a ramp to have fixed property values.
(generate_singletons, generate_uniform_distribution, generate_quantiles): Added 'fixes' parameter so that property attributes can be held constant over the generated classification groups. (CustomRamp.GetProperties): Remove unused variables.
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the interpolated colors correctly. * test/test_classgen.py (TestCustomRamp.test_color_interpolation): New. Test case for the fix in classgen.py
(generate_singletons, generate_uniform_distribution, generate_quantiles, GenQuantiles0): Make sure maxValue isn't less than one, otherwise we could divide by zero.
(generate_singletons, generate_uniform_distribution, generate_quantiles, GenQuantiles0): The denominator was one to high when calculating the index for the ramp causing the index to never to reach one.
Fixed parameters to ClassGroupRange constructor.
Fixes RTbug #1972, 1971. Import used objects/class from color. (generate_singletons): We don't need the numGroups parameter anymore because we are using the new ramps with GetProperties(). (generate_uniform_distribution): Use new ramp method GetProperties(). (generate_quantiles, GenQuantiles0): Use new ramp method GetProperties(). (CustomRamp.SetNumGroups): Removed. The ramps now map a value from 0 to 1 to class properties so the number of groups is not needed ahead of time. (CustomRamp.next): Removed. CustomRamp does not support interation anymore. (CustomRamp.GetProperties): Returns a ClassGroupProperties object based on the index value from 0 to 1 that is passed to it. (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): Made into instances of Monochromatic class instread of deriving from it. (HotToCold.SetNumGroups): Removed. See CustomRamp. (HotToCold.next): Removed. See CustomRamp.
Renamed functions to follow the function_names_with_underscores style. Fixes RTbug #1903. (calculate_quantiles): Raise ValueError if 'percents' is invalid.
* Thuban/Model/classgen.py (GenQuantiles0): New function.
Remove ClassGenerator class but make all the methods functions. Fixes RTBug #1903.
* Thuban/Model/classgen.py: Added short module doc string and CVS id. (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
(ClassGenerator.GenQuantiles): Remove references to 'inf' and use new Range __init__ to pass floats directly rather than converting them to strings first. Fixes RTBug #1876.
(ClassGenerator.GenSingletonsFromList): Fix docstring. (ClassGenerator.GenUniformDistribution): Fix spelling of method name. (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max values of the supplied range to determine the beginning and end bounds of the generated classes.
(ClassGenerator.GenQuantiles): Add comments describing the parameters, use new return values from CalculateQuantiles to produce the correct range bounds in the Classification. (ClassGenerator.CalculateQuantiles): Add more comments describing the return values and parameters. Make minor adjustments to improve the legibility of the code. Fix problem with adjusted not being set in most cases.
(ClassGenerator.CalculateQuantiles): Clean up debugging statement, add comments, fix a small bug in the returned adjusted percentiles.
New. Contains the classes ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, GreenRamp, BlueRamp, HotToColdRamp from Thuban/UI/classgen.py
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |