[GRASS-SVN] r61377 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 23 11:57:42 PDT 2014
Author: annakrat
Date: 2014-07-23 11:57:42 -0700 (Wed, 23 Jul 2014)
New Revision: 61377
Modified:
grass/trunk/lib/python/temporal/aggregation.py
Log:
temporal: fix calling pygrass in aggregation method
Modified: grass/trunk/lib/python/temporal/aggregation.py
===================================================================
--- grass/trunk/lib/python/temporal/aggregation.py 2014-07-23 15:04:31 UTC (rev 61376)
+++ grass/trunk/lib/python/temporal/aggregation.py 2014-07-23 18:57:42 UTC (rev 61377)
@@ -213,7 +213,7 @@
msgr = get_tgis_message_interface()
- dbif, connected = init_dbif(dbif)
+ dbif, connected = init_dbif(dbif)
topo_builder = SpatioTemporalTopologyBuilder()
topo_builder.build(mapsA=granularity_list, mapsB=map_list, spatial=spatial)
@@ -224,15 +224,15 @@
# Dummy process object that will be deep copied
# and be put into the process queue
r_series = pymod.Module("r.series", output="spam", method=method,
- overwrite=overwrite, quiet=True, run_=False,
+ overwrite=overwrite, quiet=True, run_=False,
finish_=False)
- g_copy = pymod.Module("g.copy", rast="spam,spamspam",
- quiet=True, run_=False, finish_=False)
+ g_copy = pymod.Module("g.copy", rast=['spam', 'spamspam'],
+ quiet=True, run_=False, finish_=False)
output_list = []
count = 0
for granule in granularity_list:
- msgr.percent(count, len(granularity_list), 1)
+ msgr.percent(count, len(granularity_list), 1)
count += 1
aggregation_list = []
@@ -304,7 +304,7 @@
process_queue.put(mod)
else:
mod = copy.deepcopy(g_copy)
- mod(rast="%s,%s"%(aggregation_list[0], output_name))
+ mod(rast=[aggregation_list[0], output_name])
process_queue.put(mod)
if connected:
More information about the grass-commit
mailing list