[GRASS-SVN] r69316 - grass/branches/releasebranch_7_2/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 31 00:22:57 PDT 2016


Author: huhabla
Date: 2016-08-31 00:22:57 -0700 (Wed, 31 Aug 2016)
New Revision: 69316

Modified:
   grass/branches/releasebranch_7_2/lib/python/temporal/temporal_algebra.py
Log:
temporal framework: fixed doctests of temporal algebra to ignore new return value of the parse function

Modified: grass/branches/releasebranch_7_2/lib/python/temporal/temporal_algebra.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/temporal/temporal_algebra.py	2016-08-31 06:59:10 UTC (rev 69315)
+++ grass/branches/releasebranch_7_2/lib/python/temporal/temporal_algebra.py	2016-08-31 07:22:57 UTC (rev 69316)
@@ -302,14 +302,14 @@
     >>> expression =  "D = A {!:} B {:,during} C"
     >>> print(expression)
     D = A {!:} B {:,during} C
-    >>> p.parse(expression)
+    >>> ret = p.parse(expression)
     A* =  A {!:} B
     A** =  A* {:,during} C
     D = A**
     >>> expression =  "D = A {:} B {!:,during} C"
     >>> print(expression)
     D = A {:} B {!:,during} C
-    >>> p.parse(expression)
+    >>> ret = p.parse(expression)
     A* =  A {:} B
     A** =  A* {!:,during} C
     D = A**
@@ -318,49 +318,49 @@
     >>> expression =  "C = test1 : test2"
     >>> print(expression)
     C = test1 : test2
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     >>> expression =  'D = buff_t(test1,"10 months")'
     >>> print(expression)
     D = buff_t(test1,"10 months")
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     >>> expression =  'E = test2 {:,during} buff_t(test1,"1 days")'
     >>> print(expression)
     E = test2 {:,during} buff_t(test1,"1 days")
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     >>> expression =  'F = test2 {:,equal} buff_t(test1,"1 days")'
     >>> print(expression)
     F = test2 {:,equal} buff_t(test1,"1 days")
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     >>> p.debug = True
     >>> expression =  'H = tsnap(test2 {:,during} buff_t(test1, "1 days"))'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     test1* = buff_t( test1 , " 1 days " )
     test2* =  test2 {:,during} test1*
     test2** = tsnap( test2* )
     H = test2**
     >>> expression =  'H = tshift(test2 {:,during} test1, "1 days")'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     test2* =  test2 {:,during} test1
     test2** = tshift( test2* , " 1 days " )
     H = test2**
     >>> expression =  'H = tshift(H, 3)'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     H* = tshift( H , 3 )
     H = H*
     >>> expression =  'C = if(td(A) == 2, A)'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     td(A)
     td(A) == 2
     A* =  if condition None  then  A
     C = A*
     >>> expression =  'C = if(td(A) == 5, A, B)'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     td(A)
     td(A) == 5
     A* =  if condition None  then  A  else  B
     C = A*
     >>> expression =  'C = if(td(A) == 5 || start_date(A) > "2010-01-01", A, B)'
-    >>> p.parse(expression, 'stvds')
+    >>> ret = p.parse(expression, 'stvds')
     td(A)
     td(A) == 5
     start_date A > "2010-01-01"



More information about the grass-commit mailing list