[GRASS-SVN] r60821 - grass-addons/grass7/raster/r.agent/libagent

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 13 09:04:57 PDT 2014


Author: mic
Date: 2014-06-13 09:04:57 -0700 (Fri, 13 Jun 2014)
New Revision: 60821

Modified:
   grass-addons/grass7/raster/r.agent/libagent/playground.py
Log:
for some this is already higher maths..

Modified: grass-addons/grass7/raster/r.agent/libagent/playground.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/playground.py	2014-06-13 14:37:24 UTC (rev 60820)
+++ grass-addons/grass7/raster/r.agent/libagent/playground.py	2014-06-13 16:04:57 UTC (rev 60821)
@@ -84,7 +84,7 @@
         Return the number of cells in the diagonal
         @return int diagonal cells count
         """
-        return sqrt(self.region["rows"]*self.region["cols"])
+        return sqrt(pow(self.region["rows"],2)+pow(self.region["cols"],2))
 
     def getbound(self, bound):
         """



More information about the grass-commit mailing list