[GRASS-SVN] r73579 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Oct 21 11:00:05 PDT 2018
Author: huhabla
Date: 2018-10-21 11:00:05 -0700 (Sun, 21 Oct 2018)
New Revision: 73579
Modified:
grass/trunk/lib/python/temporal/temporal_extent.py
Log:
temporal framework: Fixed doctests in temporal_extent
Modified: grass/trunk/lib/python/temporal/temporal_extent.py
===================================================================
--- grass/trunk/lib/python/temporal/temporal_extent.py 2018-10-21 10:57:53 UTC (rev 73578)
+++ grass/trunk/lib/python/temporal/temporal_extent.py 2018-10-21 18:00:05 UTC (rev 73579)
@@ -58,8 +58,8 @@
| Start time:................. 2001-01-01 00:00:00
| End time:................... 2005-01-01 00:00:00
>>> A.print_shell_info()
- start_time=2001-01-01 00:00:00
- end_time=2005-01-01 00:00:00
+ start_time='2001-01-01 00:00:00'
+ end_time='2005-01-01 00:00:00'
>>> # relative time
>>> A = TemporalExtent(table="raster_absolute_time",
... ident="soil at PERMANENT", start_time=0, end_time=1 )
@@ -73,8 +73,8 @@
| Start time:................. 0
| End time:................... 1
>>> A.print_shell_info()
- start_time=0
- end_time=1
+ start_time='0'
+ end_time='1'
"""
def __init__(self, table=None, ident=None, start_time=None, end_time=None):
@@ -1119,9 +1119,9 @@
| Granularity:................ 1 days
| Temporal type of maps:...... interval
>>> A.print_shell_info()
- start_time=2001-01-01 00:00:00
- end_time=2005-01-01 00:00:00
- granularity=1 days
+ start_time='2001-01-01 00:00:00'
+ end_time='2005-01-01 00:00:00'
+ granularity='1 days'
map_time=interval
"""
@@ -1243,8 +1243,8 @@
| End time:................... 1
| Relative time unit:......... years
>>> A.print_shell_info()
- start_time=0
- end_time=1
+ start_time='0'
+ end_time='1'
unit=years
"""
@@ -1367,8 +1367,8 @@
| Granularity:................ 5
| Temporal type of maps:...... interval
>>> A.print_shell_info()
- start_time=0
- end_time=1
+ start_time='0'
+ end_time='1'
unit=years
granularity=5
map_time=interval
More information about the grass-commit
mailing list