[Greater-commits] r3709 - in branches/3.0.0-all-models/GREAT-ER: . Greater/Modules

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jul 27 12:07:45 CEST 2011


Author: aheinecke
Date: 2011-07-27 12:07:43 +0200 (Wed, 27 Jul 2011)
New Revision: 3709

Modified:
   branches/3.0.0-all-models/GREAT-ER/ChangeLog
   branches/3.0.0-all-models/GREAT-ER/Greater/Modules/analysis.py
Log:
Switch to new style ramps in analysis module also for the sediment
extension


Modified: branches/3.0.0-all-models/GREAT-ER/ChangeLog
===================================================================
--- branches/3.0.0-all-models/GREAT-ER/ChangeLog	2011-07-27 09:32:29 UTC (rev 3708)
+++ branches/3.0.0-all-models/GREAT-ER/ChangeLog	2011-07-27 10:07:43 UTC (rev 3709)
@@ -1,3 +1,8 @@
+2011-07-27  Andre Heinecke <aheinecke at intevation.de>
+
+	*  Greater/Modules/analysis.py (sediment_extension_results):
+		- Switch to new style ramps and generate_quantiles
+
 2011-07-26  Andre Heinecke <aheinecke at intevation.de>
 
 	* Greater/UI/mainwindow.py:

Modified: branches/3.0.0-all-models/GREAT-ER/Greater/Modules/analysis.py
===================================================================
--- branches/3.0.0-all-models/GREAT-ER/Greater/Modules/analysis.py	2011-07-27 09:32:29 UTC (rev 3708)
+++ branches/3.0.0-all-models/GREAT-ER/Greater/Modules/analysis.py	2011-07-27 10:07:43 UTC (rev 3709)
@@ -228,9 +228,9 @@
                 _list.append(layer.ShapeStore().Table().ReadValue(i,colname)) 
     
             _list.sort()
-            quantiles, clazz = GenQuantiles(_list,
+            quantiles, clazz = generate_quantiles(_list,
                                           [ 0.25, 0.50, 0.75, 1.0 ],
-                                          GreenToRedRamp(),
+                                          green_to_red_ramp,
                                           Range(']0;oo['))
             clazz.SetField(colname)
             dg = clazz.GetDefaultGroup()



More information about the Greater-commits mailing list