test_extract

./temporal/t.rast.extract – test_extract

Test failed

Test filetest_extract
Testsuite./temporal/t.rast.extract
StatusFAILED
Return code1
Number of tests4
Successful tests1
Failed tests6
Percent successful25%
Test duration0:00:08.176924

Supplementary files

Standard error output (stderr)

etc/python/grass/lib/gis.py:803: DeprecationWarning: classic int division
  ('__val', c_ulong * (1024 / (8 * sizeof(c_ulong)))),
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FEFEFE.
======================================================================
ERROR: test_expression_with_empty_maps (__main__.TestRasterExtraction)
Perform r.mapcalc expression and register empty maps
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 52, in tearDown
    inputs="precip_abs1,precip_abs2")
  File "etc/python/grass/gunittest/case.py", line 953, in runModule
    errors=errors)
CalledModuleError: Module run 1 t.remove ended with error
Process ended with non-zero return code t.remove(inputs=['precip_abs1,precip_abs2'], type='strds', flags=u'rf'). See the following errors:
Removing registered maps
ERROR: Space time raster dataset <precip_abs2> no found


======================================================================
ERROR: test_selection (__main__.TestRasterExtraction)
Perform a simple selection by datetime
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 52, in tearDown
    inputs="precip_abs1,precip_abs2")
  File "etc/python/grass/gunittest/case.py", line 953, in runModule
    errors=errors)
CalledModuleError: Module run 1 t.remove ended with error
Process ended with non-zero return code t.remove(inputs=['precip_abs1,precip_abs2'], type='strds', flags=u'rf'). See the following errors:
Removing registered maps
ERROR: Space time raster dataset <precip_abs2> no found


======================================================================
ERROR: test_selection_and_expression (__main__.TestRasterExtraction)
Perform a selection by datetime and a r.mapcalc expression
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 52, in tearDown
    inputs="precip_abs1,precip_abs2")
  File "etc/python/grass/gunittest/case.py", line 953, in runModule
    errors=errors)
CalledModuleError: Module run 1 t.remove ended with error
Process ended with non-zero return code t.remove(inputs=['precip_abs1,precip_abs2'], type='strds', flags=u'rf'). See the following errors:
Removing registered maps
ERROR: Space time raster dataset <precip_abs2> no found


======================================================================
FAIL: test_expression_with_empty_maps (__main__.TestRasterExtraction)
Perform r.mapcalc expression and register empty maps
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 122, in test_expression_with_empty_maps
    basename="new_prec",  nprocs=2,  overwrite=True)
  File "etc/python/grass/gunittest/case.py", line 1016, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.extract> module ended with non-zero return code (1)
Called: t.rast_extract(input='precip_abs1', expression=' if(precip_abs1 > 400, precip_abs1, null())', output='precip_abs2', basename='new_prec', nprocs=2, flags=u'n', overwrite=True)
See the folowing errors:
   0%   0%Traceback (most recent call last):
  File "scripts/t.rast.extract", line 92, in <module>
    main()
  File "scripts/t.rast.extract", line 86, in main
    base, nprocs, register_null)
  File "etc/python/grass/temporal/extract.py", line 169, in extract_dataset
    new_sp = open_new_stds(output, type, sp.get_temporal_type(), title.
AttributeError: 'unicode' object has no attribute 'description'


======================================================================
FAIL: test_selection (__main__.TestRasterExtraction)
Perform a simple selection by datetime
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 57, in test_selection
    where="start_time > '2001-06-01'")
  File "etc/python/grass/gunittest/case.py", line 1016, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.extract> module ended with non-zero return code (1)
Called: t.rast_extract(input='precip_abs1', where="start_time > '2001-06-01'", output='precip_abs2', nprocs=1)
See the folowing errors:
Traceback (most recent call last):
  File "scripts/t.rast.extract", line 92, in <module>
    main()
  File "scripts/t.rast.extract", line 86, in main
    base, nprocs, register_null)
  File "etc/python/grass/temporal/extract.py", line 169, in extract_dataset
    new_sp = open_new_stds(output, type, sp.get_temporal_type(), title.
AttributeError: 'unicode' object has no attribute 'description'
   0%   0%

======================================================================
FAIL: test_selection_and_expression (__main__.TestRasterExtraction)
Perform a selection by datetime and a r.mapcalc expression
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.extract/testsuite/test_extract.py", line 90, in test_selection_and_expression
    basename="new_prec",  nprocs=2,  overwrite=True)
  File "etc/python/grass/gunittest/case.py", line 1016, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.extract> module ended with non-zero return code (1)
Called: t.rast_extract(input='precip_abs1', where="start_time > '2001-06-01'", expression=' if(precip_abs1 > 400, precip_abs1, null())', output='precip_abs2', basename='new_prec', nprocs=2, overwrite=True)
See the folowing errors:
   0%   0%Traceback (most recent call last):
  File "scripts/t.rast.extract", line 92, in <module>
    main()
  File "scripts/t.rast.extract", line 86, in main
    base, nprocs, register_null)
  File "etc/python/grass/temporal/extract.py", line 169, in extract_dataset
    new_sp = open_new_stds(output, type, sp.get_temporal_type(), title.
AttributeError: 'unicode' object has no attribute 'description'


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