[GRASS-SVN] r37115 - grass/branches/develbranch_6/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 10 14:39:56 EDT 2009
Author: martinl
Date: 2009-05-10 14:39:56 -0400 (Sun, 10 May 2009)
New Revision: 37115
Modified:
grass/branches/develbranch_6/lib/python/grass.py
Log:
grass.region(): cast values to float
(merge trunk, r37114)
Modified: grass/branches/develbranch_6/lib/python/grass.py
===================================================================
--- grass/branches/develbranch_6/lib/python/grass.py 2009-05-10 18:38:40 UTC (rev 37114)
+++ grass/branches/develbranch_6/lib/python/grass.py 2009-05-10 18:39:56 UTC (rev 37115)
@@ -281,7 +281,7 @@
def region():
"""Returns the output from running "g.region -g", as a dictionary."""
s = read_command("g.region", flags='g')
- return parse_key_val(s)
+ return parse_key_val(s, val_type = float)
def use_temp_region():
"""Copies the current region to a temporary region with "g.region save=",
More information about the grass-commit
mailing list