Skip to content

Instantly share code, notes, and snippets.

@timlinux
Created August 2, 2013 10:59
Show Gist options
  • Save timlinux/6139086 to your computer and use it in GitHub Desktop.
Save timlinux/6139086 to your computer and use it in GitHub Desktop.
4
src/providers/ogr/qgsogrprovider.cpp: 787: (nextFeature) Feature is null
src/core/qgsmessagelog.cpp: 41: (logMessage) 2013-08-02T12:58:35 InaSAFE[0] Native zonal stats duration: 0.01s
src/providers/gdal/qgsgdalprovider.cpp: 363: (~QgsGdalProvider) QgsGdalProvider: deconstructing.
src/providers/ogr/qgsogrprovider.cpp: 787: (nextFeature) Feature is null
src/core/qgsvectorlayer.cpp: 177: (~QgsVectorLayer) entered.
Failure
Traceback (most recent call last):
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/impact_statistics/test/test_aggregator.py", line 350, in test_aggregate_raster_impact_native
self._aggregate_raster_impact(useNativeZonalStats=True)
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/impact_statistics/test/test_aggregator.py", line 388, in _aggregate_raster_impact
self._aggregate(myImpactLayer, myExpectedResults, useNativeZonalStats)
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/impact_statistics/test/test_aggregator.py", line 342, in _aggregate
rtol=0.01)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 1179, in assert_allclose
verbose=verbose, header=header)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 645, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Not equal to tolerance rtol=0.01, atol=0
(mismatch 100.0%)
x: array([[ 5.05400000e+04, 1.20150619e+07, 2.37733713e+02],
[ 1.94920000e+04, 2.94370211e+06, 1.51021040e+02],
[ 5.73670000e+04, 1.64549827e+06, 2.86837079e+01],...
y: array([[ 0., 0., 0.],
[ 0., 0., 0.],
[ 0., 0., 0.],...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment