Commit Graph

108 Commits

Author SHA1 Message Date
James Douglass 6fa201f4ee Renaming function parameters to reflect the intended source. RE:#722 2021-11-16 14:50:04 -08:00
James Douglass 442e84e974 Using isort to sort imports and adding configuration for it. RE:#722 2021-11-16 13:34:16 -08:00
James Douglass b203b647d6 Adding a test for the model.
This test doesn't have assertions yet, just the most basic inputs to
make sure the model can at least run.

RE:#722
2021-11-15 12:17:46 -08:00
James Douglass 53c12bcfd9 Adding a more interesting population warping test.
This adds a seeded randomization step to the population warping test,
just so I can be more confident that this function is doing what I
expect it to do with more reasonable data.  It does, which I'm happy to
see.

RE:#722
2021-11-15 11:59:45 -08:00
James Douglass 10c5f5a5ea Testing multiple pixel sizes. RE:#722 2021-11-15 11:39:53 -08:00
James Douglass 4f3761dc89 Finishing basic test for resampling population.
This adds the callthrough for the population raster resampling function
and also asserts that the outputs are reasonable for what we're trying
to do.  Initial results look like that at least in this basic test we're
getting numerically sensible results. RE:#722
2021-11-15 11:27:34 -08:00
James Douglass e381c1f9bc Implementing population resampling.
The function provided is a first stab at resampling/reprojecting a
population raster by way of converting to a population density, then
reprojecting and converting back to a population count.  Correctness has
yet to be determined, but this way we should pretty reasonably be
preserving the population counts. RE:#722
2021-11-15 11:09:26 -08:00
James Douglass 90955c93e5 Adding a skeleton for UNA model tests.
RE#722
2021-11-15 09:08:00 -08:00