test_raster_algebra_granularity

./temporal/t.rast.algebra – test_raster_algebra_granularity

Test failed

Testtest_raster_algebra_granularity
Testsuite./temporal/t.rast.algebra
Test file./temporal/t.rast.algebra/testsuite/test_raster_algebra_granularity.py
StatusFAILED
Return code1
Number of tests10
Successful tests0
Failed tests20
Percent successful0%
Test duration0:00:22.206342

Supplementary files

Standard error output (stderr)

... (lines omitted)
AssertionError: Running <t.rast.algebra> module ended with non-zero return code (1)
Called: t.rast_algebra(expression='R = (A[0,0,-1] : D) + (A[0,0,1] : D)', basename='r', suffix='num', nprocs=1, flags=u'gd')
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.algebra", line 132, in <module>
    sys.exit(main())
  File "scripts/t.rast.algebra", line 121, in main
    if not p.setup_common_granularity(expression=expression,  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


======================================================================
FAIL: test_tmap_map (__main__.TestTRastAlgebraGranularity)
Test STDS + single map with and without timestamp
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.algebra/testsuite/test_raster_algebra_granularity.py", line 223, in test_tmap_map
    self.assertModule("t.rast.algebra",  expression=expr, flags="gd", basename="r")
  File "etc/python/grass/gunittest/case.py", line 1164, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.algebra> module ended with non-zero return code (1)
Called: t.rast_algebra(expression='R = tmap(singletmap) + A + map(singletmap)', basename='r', suffix='num', nprocs=1, flags=u'gd')
See the following errors:
Traceback (most recent call last):
  File "scripts/t.rast.algebra", line 132, in <module>
    sys.exit(main())
  File "scripts/t.rast.algebra", line 121, in main
    if not p.setup_common_granularity(expression=expression,  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 10 tests in 21.193s
FAILED (failures=10, errors=10)