test_raster3d_algebra

./temporal/t.rast3d.algebra – test_raster3d_algebra

Test failed

Testtest_raster3d_algebra
Testsuite./temporal/t.rast3d.algebra
Test file./temporal/t.rast3d.algebra/testsuite/test_raster3d_algebra.py
StatusFAILED
Return code1
Number of tests4
Successful tests1
Failed tests6
Percent successful25%
Test duration0:00:16.506485

Supplementary files

Standard error output (stderr)

... (lines omitted)
  File "scripts/t.rast3d.algebra", line 109, in <module>
    sys.exit(main())
  File "scripts/t.rast3d.algebra", line 105, in main
    p.parse(expression, basename, grass.script.overwrite())
  File "etc/python/grass/temporal/temporal_raster3d_algebra.py", line 68, in parse
    self.parser.parse(expression)
  File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 331, in parse
    return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
  File "/usr/lib/python2.7/dist-packages/ply/yacc.py", line 1106, in parseopt_notrack
    p.callable(pslice)
  File "etc/python/grass/temporal/temporal_raster3d_algebra.py", line 92, in p_ts_neighbor_operation
    maplist = self.check_stds(t[1])
  File "etc/python/grass/temporal/temporal_algebra.py", line 1226, in check_stds
    self.msgr.fatal(_("Wrong type of input " + str(input)))
  File "etc/python/grass/pygrass/messages/__init__.py", line 269, in fatal
    raise FatalError(message)
grass.exceptions.FatalError: Wrong type of input A


======================================================================
FAIL: test_temporal_neighbors_granularity (__main__.TestTRast3dAlgebra)
Simple temporal neighborhood computation test with granularity algebra
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast3d.algebra/testsuite/test_raster3d_algebra.py", line 86, in test_temporal_neighbors_granularity
    basename="d")
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast3d.algebra> module ended with non-zero return code (1)
Called: t.rast3d_algebra(expression='D = A[0,0,0,-1] + A[0,0,0,1]', basename='d', nprocs=1, flags=u'g')
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast3d.algebra", line 109, in <module>
    sys.exit(main())
  File "scripts/t.rast3d.algebra", line 102, in main
    if not p.setup_common_granularity(expression=expression,  stdstype = 'str3ds',  lexer = tgis.TemporalRasterAlgebraLexer()):
  File "etc/python/grass/temporal/temporal_algebra.py", line 858, in setup_common_granularity
    if stds.check_temporal_topology() is False:
  File "etc/python/grass/temporal/abstract_space_time_dataset.py", line 540, in check_temporal_topology
    dbif=dbif)
  File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 847, in count_temporal_topology_relationships
    tb.build(maps1, maps2)
  File "etc/python/grass/temporal/spatio_temporal_relationships.py", line 552, in build
    vector.RTreeSearch2(tree, rect, list_)
ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_struct_RTree instance instead of LP_struct_RTree


----------------------------------------------------------------------
Ran 4 tests in 15.509s
FAILED (failures=3, errors=3)