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

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

Parent Directory Parent Directory | Revision Log Revision Log


Sticky Revision:
(Current path doesn't exist after revision 2835)

Revision 2734 - (view) (annotate) - [select for diffs]
Modified Thu Mar 1 12:42:59 2007 UTC (18 years ago) by bramz
File length: 14779 byte(s)
Diff to previous 2441
made a copy

Revision 2441 - (view) (annotate) - [select for diffs]
Modified Thu Dec 9 10:50:34 2004 UTC (20 years, 3 months ago) by joey
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14779 byte(s)
Diff to previous 2385
Added missing character encoding so that Python doesn't barf upon
evaluating this file


Revision 2385 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 14:28:51 2004 UTC (20 years, 5 months ago) by jan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14746 byte(s)
Diff to previous 1759
(CustomRamp.GetProperties): Added size gradient.


Revision 1759 - (view) (annotate) - [select for diffs]
Modified Fri Sep 26 18:36:01 2003 UTC (21 years, 5 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14517 byte(s)
Diff to previous 1525
(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


Revision 1525 - (view) (annotate) - [select for diffs]
Modified Wed Jul 30 15:42:56 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 16477 byte(s)
Diff to previous 1425
Add docstrings. Rename specific Ramp instances to use lower_case_style.


Revision 1425 - (view) (annotate) - [select for diffs]
Modified Wed Jul 16 13:21:59 2003 UTC (21 years, 7 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 15546 byte(s)
Diff to previous 1387
(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.


Revision 1387 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 14:53:03 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 15914 byte(s)
Diff to previous 1379
(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.


Revision 1379 - (view) (annotate) - [select for diffs]
Modified Tue Jul 8 13:23:20 2003 UTC (21 years, 8 months ago) by bh
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14797 byte(s)
Diff to previous 1361
* 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


Revision 1361 - (view) (annotate) - [select for diffs]
Modified Wed Jul 2 12:59:20 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14650 byte(s)
Diff to previous 1359
(generate_singletons,
        generate_uniform_distribution, generate_quantiles,
        GenQuantiles0): Make sure maxValue isn't less than
        one, otherwise we could divide by zero.


Revision 1359 - (view) (annotate) - [select for diffs]
Modified Wed Jul 2 10:51:49 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14494 byte(s)
Diff to previous 1352
(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.


Revision 1352 - (view) (annotate) - [select for diffs]
Modified Wed Jul 2 09:36:39 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14359 byte(s)
Diff to previous 1335
Fixed parameters to ClassGroupRange constructor.


Revision 1335 - (view) (annotate) - [select for diffs]
Modified Tue Jul 1 16:09:09 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 14457 byte(s)
Diff to previous 1157
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.


Revision 1157 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 12:39:54 2003 UTC (21 years, 8 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 17065 byte(s)
Diff to previous 1128
Renamed functions to follow the
        function_names_with_underscores style. Fixes RTbug #1903.
(calculate_quantiles): Raise ValueError if 'percents' is invalid.


Revision 1128 - (view) (annotate) - [select for diffs]
Modified Tue Jun 3 17:00:47 2003 UTC (21 years, 9 months ago) by tkoester
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 17311 byte(s)
Diff to previous 1098
* Thuban/Model/classgen.py (GenQuantiles0): New function.


Revision 1098 - (view) (annotate) - [select for diffs]
Modified Fri May 30 06:27:44 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 15606 byte(s)
Diff to previous 986
Remove ClassGenerator class but make
        all the methods functions. Fixes RTBug #1903.


Revision 986 - (view) (annotate) - [select for diffs]
Modified Thu May 22 16:41:10 2003 UTC (21 years, 9 months ago) by tkoester
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 16794 byte(s)
Diff to previous 959
* Thuban/Model/classgen.py: Added short module doc string and CVS id.
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too.


Revision 959 - (view) (annotate) - [select for diffs]
Modified Wed May 21 17:22:58 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 16791 byte(s)
Diff to previous 900
(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.


Revision 900 - (view) (annotate) - [select for diffs]
Modified Wed May 14 11:15:41 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 17164 byte(s)
Diff to previous 895
(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.


Revision 895 - (view) (annotate) - [select for diffs]
Modified Mon May 12 11:21:02 2003 UTC (21 years, 9 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 16679 byte(s)
Diff to previous 891
(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.


Revision 891 - (view) (annotate) - [select for diffs]
Modified Fri May 9 18:08:46 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 15325 byte(s)
Diff to previous 886
(ClassGenerator.CalculateQuantiles):
        Clean up debugging statement, add comments, fix a small bug in the
        returned adjusted percentiles.


Revision 886 - (view) (annotate) - [select for diffs]
Added Fri May 9 16:36:56 2003 UTC (21 years, 10 months ago) by jonathan
Original Path: trunk/thuban/Thuban/Model/classgen.py
File length: 16165 byte(s)
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.

  Diffs between and
  Type of Diff should be a

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26