Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permute branch tests failing #5

Open
wcarthur opened this issue Aug 7, 2017 · 0 comments
Open

permute branch tests failing #5

wcarthur opened this issue Aug 7, 2017 · 0 comments

Comments

@wcarthur
Copy link
Member

wcarthur commented Aug 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant