test_aggregation_absolute

./temporal/t.rast.aggregate – test_aggregation_absolute

Test failed

Testtest_aggregation_absolute
Testsuite./temporal/t.rast.aggregate
Test file./temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py
StatusFAILED
Return code1
Number of tests5
Successful tests2
Failed tests3
Percent successful40%
Test duration0:00:14.678864
Tested modulest.rast.aggregate

Supplementary files

Standard error output (stderr)

/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:6: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import multiarray
/usr/lib/python2.7/dist-packages/numpy/core/__init__.py:7: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from . import umath
etc/python/grass/pygrass/raster/history.py:12: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class History(object):
/usr/lib/python2.7/dist-packages/mx/DateTime/mxDateTime/__init__.py:9: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from mxDateTime import *
/usr/lib/python2.7/dist-packages/mx/DateTime/DateTime.py:563: DeprecationWarning: classic int division
  MaxDateTime = DateTime(_sys.maxint / 366 - 1, 12, 31)
/usr/lib/python2.7/dist-packages/mx/DateTime/DateTime.py:564: DeprecationWarning: classic int division
  MinDateTime = DateTime(-_sys.maxint / 366 + 2, 1, 1)
/usr/lib/python2.7/dist-packages/psycopg2/__init__.py:67: DeprecationWarning: CObject type is not supported in 3.x. Please use capsule objects instead.
  from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
etc/python/grass/temporal/abstract_dataset.py:571: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyStartTime(object):
etc/python/grass/temporal/abstract_dataset.py:621: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class AbstractDatasetComparisonKeyEndTime(object):
/usr/lib/python2.7/dist-packages/dateutil/relativedelta.py:15: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class weekday(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:31: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzutc(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:54: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzoffset(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:83: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzlocal(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:152: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class _ttinfo(object):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:191: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzfile(datetime.tzinfo):
/usr/lib/python2.7/dist-packages/dateutil/tz.py:475: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
  class tzrange(datetime.tzinfo):
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_test_aggregation_absolute/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_test_aggregation_absolute/tgis/sqlite.db
/usr/lib/python2.7/xml/etree/ElementTree.py:1627: DeprecationWarning: This method of XMLParser is deprecated.  Define doctype() method on the TreeBuilder target.
  DeprecationWarning,
FF.F.
======================================================================
FAIL: test_aggregation_1month (__main__.TestAggregationAbsolute)
Aggregation one month
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py", line 85, in test_aggregation_1month
    file_limit=0, nprocs=3)
  File "etc/python/grass/gunittest/case.py", line 1161, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.aggregate> module ended with non-zero return code (1)
Called: t.rast_aggregate(input='A', output='B', basename='b', suffix='gran', granularity='1 months', method='maximum', offset=0, nprocs=3, file_limit=0, sampling=['contains'])
See the following errors:
0..25..50..75..100
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
Traceback (most recent call last):
  File "scripts/t.rast.aggregate", line 211, in <module>
    main()
  File "scripts/t.rast.aggregate", line 201, in main
    sp.get_relative_time_unit(),  dbif)
  File "etc/python/grass/temporal/register.py", line 510, in register_map_object_list
    mod(type='raster', name=map.get_name())
  File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
    self.inputs[key].value = val
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'b_2001_04'


======================================================================
FAIL: test_aggregation_1month_time (__main__.TestAggregationAbsolute)
Aggregation one month time suffix
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py", line 118, in test_aggregation_1month_time
    file_limit=0, nprocs=3, suffix='time')
  File "etc/python/grass/gunittest/case.py", line 1161, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.aggregate> module ended with non-zero return code (1)
Called: t.rast_aggregate(input='A', output='B', basename='b', suffix='time', granularity='1 months', method='maximum', offset=0, nprocs=3, file_limit=0, sampling=['contains'])
See the following errors:
0..25..50..75..100
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
Traceback (most recent call last):
  File "scripts/t.rast.aggregate", line 211, in <module>
    main()
  File "scripts/t.rast.aggregate", line 201, in main
    sp.get_relative_time_unit(),  dbif)
  File "etc/python/grass/temporal/register.py", line 510, in register_map_object_list
    mod(type='raster', name=map.get_name())
  File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
    self.inputs[key].value = val
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'b_2001_04_01T00_00_00'


======================================================================
FAIL: test_aggregation_3months (__main__.TestAggregationAbsolute)
Aggregation three month
----------------------------------------------------------------------
Traceback (most recent call last):
  File "temporal/t.rast.aggregate/testsuite/test_aggregation_absolute.py", line 159, in test_aggregation_3months
    suffix='num%03')
  File "etc/python/grass/gunittest/case.py", line 1161, in assertModule
    self.fail(self._formatMessage(msg, stdmsg))
AssertionError: Running <t.rast.aggregate> module ended with non-zero return code (1)
Called: t.rast_aggregate(input='A', output='B', basename='b', suffix='num%03', granularity='3 months', method='sum', offset=100, nprocs=9, file_limit=0, sampling=['contains'])
See the following errors:
0..WARNING: The limit of open fiels (0) was reached (5). The module r.series will be run with flag z, to avoid open files limit exceeding.
50..100
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
Traceback (most recent call last):
  File "scripts/t.rast.aggregate", line 211, in <module>
    main()
  File "scripts/t.rast.aggregate", line 201, in main
    sp.get_relative_time_unit(),  dbif)
  File "etc/python/grass/temporal/register.py", line 510, in register_map_object_list
    mod(type='raster', name=map.get_name())
  File "etc/python/grass/pygrass/modules/interface/module.py", line 564, in __call__
    self.inputs[key].value = val
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 189, in _set_value
    self._value, self._rawvalue = _check_value(self, value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 77, in _check_value
    check_string(value)
  File "etc/python/grass/pygrass/modules/interface/parameter.py", line 47, in check_string
    raise ValueError(msg % (param.name, type(value), value))
ValueError: The Parameter <name> require a string, <type 'unicode'> instead is provided: u'b_102'


----------------------------------------------------------------------
Ran 5 tests in 13.602s
FAILED (failures=3)