Skip to content

permute branch tests failing #5

Description

@wcarthur

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions