test.t.rast.accdetect

./temporal/t.rast.accdetect – test.t.rast.accdetect

Test failed

Testtest.t.rast.accdetect
Testsuite./temporal/t.rast.accdetect
Test file./temporal/t.rast.accdetect/testsuite/test.t.rast.accdetect.sh
StatusFAILED
Return code1
Number of testsunknown
Successful testsunknown
Failed tests0
Percent successfulunknown
Test duration0:00:06.077188

Supplementary files

Standard error output (stderr)

+ g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 -p
+ export GRASS_OVERWRITE=1
+ r.mapcalc expr=temp_1 = 5
+ r.mapcalc expr=temp_2 = 10
+ r.mapcalc expr=temp_3 = 15
+ r.mapcalc expr=temp_4 = 20
+ r.mapcalc expr=temp_5 = 25
+ r.mapcalc expr=temp_6 = 30
+ t.create type=strds temporaltype=absolute output=temp_abs1 title=A test descr=A test
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_accdetect_test.t.rast.accdetect/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_accdetect_test.t.rast.accdetect/tgis/sqlite.db
+ t.register -i type=raster input=temp_abs1 maps=temp_1,temp_2,temp_3,temp_4,temp_5,temp_6 start=2001-01-01 increment=2 months
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.rast.accumulate input=temp_abs1 output=temp_accumulation base=temp_acc limits=10,25 start=2001-01-01 gran=2 months cycle=12 months suffix=num%03
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
0..12..25..37..50..62..75..87..100
100
+ t.rast.accdetect input=temp_accumulation occurrence=temp_occ base=temp_occ range=20,80 start=2001-01-01 cycle=12 months suffix=num%03
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
100
+ t.rast.list temp_accumulation col=name,start_time,min,max
+ t.rast.list temp_occ col=name,start_time,min,max
+ r.mapcalc expr=minimum = 18
+ r.mapcalc expr=maximum = 78
+ t.create type=strds temporaltype=absolute output=minimum title=minimum limit descr=minimum limit
+ t.register -i type=raster input=minimum maps=minimum start=2001-01-01 increment=8 months
Gathering map information...
0..100
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.create type=strds temporaltype=absolute output=maximum title=maximum limit descr=maximum limit
+ t.register -i type=raster input=maximum maps=maximum start=2001-01-01 increment=10 months
Gathering map information...
0..100
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.rast.accdetect input=temp_accumulation occurrence=temp_occ base=temp_occ range=20,80 start=2001-01-01 cycle=12 months min=minimum max=maximum staend=1,2,3 indi=temp_indi suffix=num%03
Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
100
Traceback (most recent call last):
  File "scripts/t.rast.accdetect", line 592, in <module>
    main()
  File "scripts/t.rast.accdetect", line 437, in main
ERROR: Unable to execute transaction:
 INSERT INTO raster_base ( name  ,creator  ,mapset  ,creation_time  ,temporal_type  ,id ) VALUES ('temp_occ_003' ,'vpetras' ,'__temporal_t_rast_accdetect_test.t.rast.accdetect' ,'2017-01-23 04:27:10.303110' ,'absolute' ,'temp_occ_003@__temporal_t_rast_accdetect_test.t.rast.accdetect') ;
INSERT INTO raster_absolute_time ( start_time  ,id  ,end_time ) VALUES ('2001-05-01 00:00:00' ,'temp_occ_003@__temporal_t_rast_accdetect_test.t.rast.accdetect' ,'2001-07-01 00:00:00') ;
INSERT INTO raster_spatial_extent ( north  ,bottom  ,west  ,top  ,proj  ,east  ,id  ,south ) VALUES (80.000000 ,0.000000 ,0.000000 ,0.000000 ,'XY' ,120.000000 ,'temp_occ_003@__temporal_t_rast_accdetect_test.t.rast.accdetect' ,0.000000) ;
INSERT INTO raster_metadata ( max  ,rows  ,min  ,datatype  ,number_of_cells  ,cols  ,ewres  ,nsres  ,id ) VALUES (1.000000 ,12 ,1.000000 ,'CELL' ,96 ,8 ,10.000000 ,10.000000 ,'temp_occ_003@__temporal_t_rast_accdetect_test.t.rast.accdetect') ;
INSERT INTO raster_stds_register ( id  ,registered_stds ) VALUES ('temp_occ_003@__temporal_t_rast_accdetect_test.t.rast.accdetect' ,NULL) ;

    register_null, empty_maps, dbif)
  File "scripts/t.rast.accdetect", line 479, in create_strds_register_maps
    map.insert(dbif)
  File "etc/python/grass/temporal/abstract_map_dataset.py", line 283, in insert
    return AbstractDataset.insert(self, dbif=dbif, execute=execute)
  File "etc/python/grass/temporal/abstract_dataset.py", line 403, in insert
    dbif.execute_transaction(statement)
  File "etc/python/grass/temporal/core.py", line 1020, in execute_transaction
    return self.connections[mapset].execute_transaction(statement)
  File "etc/python/grass/temporal/core.py", line 1314, in execute_transaction
    self.cursor.executescript(statement)
sqlite3.IntegrityError: UNIQUE constraint failed: raster_base.id