test_load_raster_clipping fails when comparing NaN values. The test data is written with a NODATA_value of -9999, but the core_hazimp.jobs.jobs.LoadRaster class is not setting the NODATA value correctly.
See the output from the test_jobs.py unittest.
FAIL: test_load_raster_clipping (core_hazimp.jobs.test_jobs.TestJobs)
Traceback (most recent call last):
File "C:\WorkSpace\hazimp\core_hazimp\jobs\test_jobs.py", line 480, in test_load_raster_clipping
con_in.exposure_att['haz_actual']), msg)
AssertionError: con_in.exposure_att[haz_v]
0 4.0
1 NaN
2 6.0
3 NaN
4 NaN
Name: haz_v, dtype: float64
not = con_in.exposure_att['haz_actual']
0 4.0
1 NaN
2 6.0
3 NaN
4 -9999.0
Name: haz_actual, dtype: float64
test_load_raster_clippingfails when comparing NaN values. The test data is written with aNODATA_valueof -9999, but thecore_hazimp.jobs.jobs.LoadRasterclass is not setting the NODATA value correctly.See the output from the
test_jobs.pyunittest.FAIL: test_load_raster_clipping (core_hazimp.jobs.test_jobs.TestJobs)
Traceback (most recent call last):
File "C:\WorkSpace\hazimp\core_hazimp\jobs\test_jobs.py", line 480, in test_load_raster_clipping
con_in.exposure_att['haz_actual']), msg)
AssertionError: con_in.exposure_att[haz_v]
0 4.0
1 NaN
2 6.0
3 NaN
4 NaN
Name: haz_v, dtype: float64
not = con_in.exposure_att['haz_actual']
0 4.0
1 NaN
2 6.0
3 NaN
4 -9999.0
Name: haz_actual, dtype: float64