[GRASS-SVN] r61844 - grass/trunk/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Sep 9 09:59:24 PDT 2014


Author: neteler
Date: 2014-09-09 09:59:24 -0700 (Tue, 09 Sep 2014)
New Revision: 61844

Modified:
   grass/trunk/lib/python/temporal/mapcalc.py
   grass/trunk/lib/python/temporal/register.py
Log:
temporal: more clear user messages

Modified: grass/trunk/lib/python/temporal/mapcalc.py
===================================================================
--- grass/trunk/lib/python/temporal/mapcalc.py	2014-09-09 14:38:20 UTC (rev 61843)
+++ grass/trunk/lib/python/temporal/mapcalc.py	2014-09-09 16:59:24 UTC (rev 61844)
@@ -103,9 +103,9 @@
 
     # Sample all inputs by the first input and create a sample matrix
     if spatial:
-        msgr.message(_("Start spatio-temporal sampling"))
+        msgr.message(_("Starting spatio-temporal sampling..."))
     else:
-        msgr.message(_("Start temporal sampling"))
+        msgr.message(_("Starting temporal sampling..."))
     map_matrix = []
     id_list = []
     sample_map_list = []
@@ -167,7 +167,7 @@
 
         if list is None:
             dbif.close()
-            msgr.message(_("No maps in input dataset"))
+            msgr.message(_("No maps registered in input dataset"))
             return 0
 
         map_name_list = []
@@ -183,7 +183,7 @@
 
     if len(map_matrix) > 0:
 
-        msgr.message(_("Start mapcalc computation"))
+        msgr.message(_("Starting mapcalc computation..."))
 
         count = 0
         # Get the number of samples
@@ -278,7 +278,7 @@
                 proc_list = []
 
         # Register the new maps in the output space time dataset
-        msgr.message(_("Start map registration in temporal database"))
+        msgr.message(_("Starting map registration in temporal database..."))
 
         temporal_type, semantic_type, title, description = first_input.get_initial_values()
 

Modified: grass/trunk/lib/python/temporal/register.py
===================================================================
--- grass/trunk/lib/python/temporal/register.py	2014-09-09 14:38:20 UTC (rev 61843)
+++ grass/trunk/lib/python/temporal/register.py	2014-09-09 16:59:24 UTC (rev 61844)
@@ -163,7 +163,7 @@
     # Store the ids of datasets that must be updated
     datatsets_to_modify = {}
 
-    msgr.message(_("Gathering map informations"))
+    msgr.message(_("Gathering map information..."))
 
     for count in range(len(maplist)):
         if count % 50 == 0:
@@ -288,7 +288,7 @@
             #  Gather the SQL insert statement
             statement += map.insert(dbif=dbif, execute=False)
 
-        # Sqlite3 performace better for huge datasets when committing in
+        # Sqlite3 performance is better for huge datasets when committing in
         # small chunks
         if dbif.dbmi.__name__ == "sqlite3":
             if count % 100 == 0:
@@ -303,14 +303,14 @@
     msgr.percent(num_maps, num_maps, 1)
 
     if statement is not None and statement != "":
-        msgr.message(_("Register maps in the temporal database"))
+        msgr.message(_("Registering maps in the temporal database..."))
         dbif.execute_transaction(statement)
 
     # Finally Register the maps in the space time dataset
     if name and map_object_list:
         count = 0
         num_maps = len(map_object_list)
-        msgr.message(_("Register maps in the space time raster dataset"))
+        msgr.message(_("Registering maps in the space time raster dataset..."))
         for map in map_object_list:
             if count % 50 == 0:
                 msgr.percent(count, num_maps, 1)
@@ -319,7 +319,7 @@
 
     # Update the space time tables
     if name and map_object_list:
-        msgr.message(_("Update space time raster dataset"))
+        msgr.message(_("Updating space time raster dataset..."))
         sp.update_from_registered_maps(dbif)
         if update_cmd_list is True:
             sp.update_command_string(dbif=dbif)



More information about the grass-commit mailing list