[GRASS-SVN] r51888 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 30 06:25:03 PDT 2012
Author: huhabla
Date: 2012-05-30 06:25:01 -0700 (Wed, 30 May 2012)
New Revision: 51888
Modified:
grass/trunk/lib/python/temporal/abstract_dataset.py
grass/trunk/lib/python/temporal/abstract_map_dataset.py
Log:
Removed redundant id build method
Modified: grass/trunk/lib/python/temporal/abstract_dataset.py
===================================================================
--- grass/trunk/lib/python/temporal/abstract_dataset.py 2012-05-30 13:24:09 UTC (rev 51887)
+++ grass/trunk/lib/python/temporal/abstract_dataset.py 2012-05-30 13:25:01 UTC (rev 51888)
@@ -96,30 +96,6 @@
"""!Return the mapset"""
return self.base.get_mapset()
- def build_id(name, mapset, layer=None):
- """!Build and return the id (primary key) based on name, mapset and layer of a dataset.
-
- @param name: The name of the map
- @param mapset: The name of the mapset
- @param layer: The name of the layer (optional)
-
- Return None in case the name can not be build (name or mapset are None)
- """
-
- if not name or not mapset:
- return None
-
- # Make sure to extract the pure mapname
- pure_name = name.split("@")[0].split(":")[0]
-
- if layer:
- return "%s:%s@%s"%(name, layer, mapset)
- else:
- return "%s@%s"%(name, mapset)
-
- return None
-
-
def get_valid_time(self):
"""!Returns a tuple of the start, the end valid time, this can be either datetime or double values
@return A tuple of (start_time, end_time)
Modified: grass/trunk/lib/python/temporal/abstract_map_dataset.py
===================================================================
--- grass/trunk/lib/python/temporal/abstract_map_dataset.py 2012-05-30 13:24:09 UTC (rev 51887)
+++ grass/trunk/lib/python/temporal/abstract_map_dataset.py 2012-05-30 13:25:01 UTC (rev 51888)
@@ -442,7 +442,6 @@
# Check if the name includes any mapset
if name.find("@") >= 0:
- print name
name, mapset = name.split("@")
# Check for layer number in map name
More information about the grass-commit
mailing list