[GRASS-SVN] r54415 - in grass-addons/grass7/raster/r.agent: . libagent

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 27 06:10:33 PST 2012


Author: mic
Date: 2012-12-27 06:10:32 -0800 (Thu, 27 Dec 2012)
New Revision: 54415

Modified:
   grass-addons/grass7/raster/r.agent/libagent/aco.py
   grass-addons/grass7/raster/r.agent/libagent/agent.py
   grass-addons/grass7/raster/r.agent/libagent/ant.py
   grass-addons/grass7/raster/r.agent/libagent/error.py
   grass-addons/grass7/raster/r.agent/libagent/playground.py
   grass-addons/grass7/raster/r.agent/libagent/world.py
   grass-addons/grass7/raster/r.agent/r.agent.aco
Log:
use python docstring for headers

Modified: grass-addons/grass7/raster/r.agent/libagent/aco.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/aco.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/aco.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,16 +1,14 @@
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      library file for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 import error
 import world
 import ant

Modified: grass-addons/grass7/raster/r.agent/libagent/agent.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/agent.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/agent.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,16 +1,14 @@
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      library file for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 class Agent(object):
     """Generic Agent class with limited capabilities, as a basis for
        child classes."""

Modified: grass-addons/grass7/raster/r.agent/libagent/ant.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/ant.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/ant.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,16 +1,13 @@
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      library file for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
 from random import choice, randint
 import agent
 import error
@@ -27,6 +24,5 @@
         self.nextstep = [None,None,0,0,0,0]
         self.goal = []
         self.penalty = 0.0
-#
 
 

Modified: grass-addons/grass7/raster/r.agent/libagent/error.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/error.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/error.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,16 +1,14 @@
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      library file for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 class Error(Exception):
     """Base class for exceptions in this module.
 

Modified: grass-addons/grass7/raster/r.agent/libagent/playground.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/playground.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/playground.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,17 +1,14 @@
-#!/usr/bin/env python
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      very basic test collection for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 import grass.script as grass
 
 class Playground(object):

Modified: grass-addons/grass7/raster/r.agent/libagent/world.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/world.py	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/libagent/world.py	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,16 +1,14 @@
-############################################################################
-#
-# MODULE:       r.agent.*
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      library file for the r.agent.* suite
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.*
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      library file for the r.agent.* suite
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 import error
 import playground
 import agent

Modified: grass-addons/grass7/raster/r.agent/r.agent.aco
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.aco	2012-12-27 13:59:26 UTC (rev 54414)
+++ grass-addons/grass7/raster/r.agent/r.agent.aco	2012-12-27 14:10:32 UTC (rev 54415)
@@ -1,20 +1,18 @@
 #!/usr/bin/env python
-############################################################################
-#
-# MODULE:       r.agent.aco
-# AUTHOR(S):    michael lustenberger inofix.ch
-# PURPOSE:      r.agent.aco is used to organize ant-like agents in a raster
-#               based playground. As decribed by the Ant Colony Optimization
-#               algorithm, the ants wander around looking for attractors,
-#               marking their paths if they find any.
-# COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
-#
-#               This program is free software under the GNU General Public
-#               License (>=v2). Read the file COPYING that comes with GRASS
-#               for details.
-#
-#############################################################################
+"""
+MODULE:       r.agent.aco
+AUTHOR(S):    michael lustenberger inofix.ch
+PURPOSE:      r.agent.aco is used to organize ant-like agents in a raster
+              based playground. As decribed by the Ant Colony Optimization
+              algorithm, the ants wander around looking for attractors,
+              marking their paths if they find any.
+COPYRIGHT:    (C) 2011 by Michael Lustenberger and the GRASS Development Team
 
+              This program is free software under the GNU General Public
+              License (>=v2). Read the file COPYING that comes with GRASS
+              for details.
+"""
+
 #%Module
 #% description: Creates a special kind of world, that follows the rules of ACO - with ant-like agents in it.
 #%End



More information about the grass-commit mailing list