[GRASS-SVN] r60733 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jun 6 15:31:09 PDT 2014
Author: huhabla
Date: 2014-06-06 15:31:08 -0700 (Fri, 06 Jun 2014)
New Revision: 60733
Modified:
grass/trunk/lib/python/temporal/abstract_space_time_dataset.py
grass/trunk/lib/python/temporal/register.py
grass/trunk/lib/python/temporal/stds_import.py
Log:
Small bugfixes
Modified: grass/trunk/lib/python/temporal/abstract_space_time_dataset.py
===================================================================
--- grass/trunk/lib/python/temporal/abstract_space_time_dataset.py 2014-06-06 22:29:56 UTC (rev 60732)
+++ grass/trunk/lib/python/temporal/abstract_space_time_dataset.py 2014-06-06 22:31:08 UTC (rev 60733)
@@ -1775,7 +1775,7 @@
date_list.append((start, end))
- self. _update_map_timestamps(maps, date_list, dbif)
+ self._update_map_timestamps(maps, date_list, dbif)
if connected:
dbif.close()
Modified: grass/trunk/lib/python/temporal/register.py
===================================================================
--- grass/trunk/lib/python/temporal/register.py 2014-06-06 22:29:56 UTC (rev 60732)
+++ grass/trunk/lib/python/temporal/register.py 2014-06-06 22:31:08 UTC (rev 60733)
@@ -30,7 +30,7 @@
def register_maps_in_space_time_dataset(
type, name, maps=None, file=None, start=None,
end=None, unit=None, increment=None, dbif=None,
- interval=False, fs="|"):
+ interval=False, fs="|", update_cmd_list=True):
"""!Use this method to register maps in space time datasets.
Additionally a start time string and an increment string can be
@@ -60,6 +60,8 @@
@param interval If True, time intervals are created in case the start
time and an increment is provided
@param fs Field separator used in input file
+ @param update_cmd_list If is True, the command that was invoking this process
+ will be written to the process history
"""
start_time_in_file = False
end_time_in_file = False
@@ -318,7 +320,8 @@
if name and map_object_list:
msgr.message(_("Update space time raster dataset"))
sp.update_from_registered_maps(dbif)
- sp.update_command_string(dbif=dbif)
+ if update_cmd_list is True:
+ sp.update_command_string(dbif=dbif)
# Update affected datasets
if datatsets_to_modify:
Modified: grass/trunk/lib/python/temporal/stds_import.py
===================================================================
--- grass/trunk/lib/python/temporal/stds_import.py 2014-06-06 22:29:56 UTC (rev 60732)
+++ grass/trunk/lib/python/temporal/stds_import.py 2014-06-06 22:31:08 UTC (rev 60733)
@@ -442,7 +442,8 @@
register_maps_in_space_time_dataset(
type=sp.get_new_map_instance(None).get_type(),
name=output, file=new_list_file_name, start="file",
- end="file", unit=relative_time_unit, dbif=None, fs=fs)
+ end="file", unit=relative_time_unit, dbif=None, fs=fs,
+ update_cmd_list=False)
os.chdir(old_cwd)
except:
More information about the grass-commit
mailing list