Commit Graph

108 Commits

Author SHA1 Message Date
James Douglass ec88d787e4
Merge pull request #1690 from emlys/task/1570
enable gdal.UseExceptions in entrypoints and tests
2024-11-21 16:36:26 -08:00
Emily Soth ad59b739d2 enable gdal.UseExceptions in entrypoints and tests
Enable gdal exceptions in the CLI and server. Update all models to
expect and handle gdal exceptions where they are now raised.
2024-11-19 13:32:47 -08:00
davemfish dd5e569669 use VectorTranslate instead of CopyDataSource for convenience and reliability; nature access. #1686 2024-11-15 15:38:45 -05:00
James Douglass 63fb8883da Using assert_allclose for better numerical comparisons.
RE:#1641
2024-10-15 17:31:58 -07:00
James Douglass e6eb1a037a Adding a test for when the LULC has no nodata value. RE:#1293 2024-09-19 16:06:24 -07:00
James Douglass 85d8028aad
Merge branch 'main' into bugfix/1509-una-validation-missing-uniform-search-radius 2024-02-13 15:42:33 -08:00
James Douglass 5cceb7e902 Better handling for nodata values.
RE:#1519
2024-02-06 11:58:22 -08:00
James Douglass 18c06468c8 Implementing sums across pop groups.
RE:#1512
2024-01-25 13:56:55 -08:00
James Douglass 845c49f2a1 Varname mangling for value-based conditional req.
RE:#1503
2024-01-24 11:55:38 -08:00
James Douglass 1f919458bc Testing. RE:#1503 2024-01-23 14:37:35 -08:00
James Douglass 28524a24ff Merge branch 'main' of https://github.com/natcap/invest into bugfix/1503-admin-boundary-overlaps-noone 2024-01-23 14:15:53 -08:00
James Douglass 6c99386e78 Starting a test for case where there are no residents.
RE:#1503
2024-01-23 14:15:23 -08:00
James Douglass c14a436689 Fixing NameError, testing, and noting change in HISTORY.
RE:#1502
2024-01-18 16:27:53 -08:00
Emily Soth 059264ef6c more cleanup 2023-11-02 09:32:05 -07:00
Emily Soth 0f24212f0a clean up 2023-11-01 13:45:15 -07:00
Emily Soth 4b581bc851 replace kernel functions with pygeoprocessing.kernels 2023-11-01 10:43:37 -07:00
Emily Soth d0b880e564 remove utils.array_equals_nodata and replace with pygeoprocessing.array_equals_nodata 2023-10-30 15:55:33 -07:00
Emily Soth 357c310ed1 replace raster_calculator with raster_map where it simplifies things 2023-10-30 15:13:14 -07:00
Emily Soth f693dc4bd0 Merge branch 'main' into task/1373 2023-09-06 15:51:59 -07:00
James Douglass 81c5710b36 Adding a test for various numeric datatypes.
RE:#1350
2023-08-29 11:26:29 -07:00
James Douglass 87c945748d Merge branch 'main' of https://github.com/natcap/invest into bugfix/1350-una-cryptic-gdal-typeerror
Conflicts:
	HISTORY.rst
	tests/test_urban_nature_access.py
2023-08-29 11:11:21 -07:00
James Douglass 14e91871cd Testing limiting of lucodes. RE:#1180 2023-08-24 15:05:56 -07:00
James Douglass e1e1a711a7 Adding a test for proportional urban nature area. RE:#1180 2023-08-24 15:01:30 -07:00
James Douglass fcb4011e53 Using the proportion in urban nature area. RE:#1180 2023-08-24 11:48:07 -07:00
James Douglass d4e34b5f32 Starting off with some boilerplate and updates to MODEL_SPEC.
RE:#1180
2023-08-24 11:30:57 -07:00
James Douglass 193c6beaa7 Refactoring a test function out to a class method.
RE:#1344
2023-08-17 15:14:56 -07:00
Emily Soth 0e0c7b1bae fix a few bugs introduced in merge and update tests for #1373 2023-08-17 15:13:22 -07:00
James Douglass 5829f4e7ce Adding stub for finishing a test. RE:#1350 2023-07-24 14:57:19 -07:00
James Douglass a3f7985235 Removing extra line. 2023-06-30 14:50:27 -07:00
James Douglass a31b16764a Adding assertions about population group accessibility.
RE:#1344
2023-06-30 14:49:40 -07:00
James Douglass d49d7974ee Testing per-lucode accessible nature area. RE:#1344 2023-06-30 14:43:07 -07:00
James Douglass d992336ee9 Adding basic test for accessible nature.
RE:#1344
2023-06-30 14:31:26 -07:00
James Douglass d2569890b5 Renaming urban_nature_supply --> urban_nature_supply_percapita.
RE:#1344
2023-06-29 14:13:55 -07:00
James Douglass e5d72e621a Testing the weighted sum function.
RE:#1219
2023-03-09 14:22:01 -08:00
James Douglass b3f69aae54 Statically defining the admin boundaries layer name.
RE:#1164
2023-03-06 12:07:08 -08:00
James Douglass 090bd12eb1 Merge branch 'feature/urban-nature-access' of https://github.com/natcap/invest into bugfix/1179-rename-greenspace-to-urbannature
Conflicts:
	src/natcap/invest/urban_nature_access.py
	tests/test_urban_nature_access.py
2023-02-15 14:45:16 -08:00
James Douglass 8787e918e6 Renaming files, variables, everything to 'urban_nature'*.
RE:#1179
2023-02-11 15:57:31 -08:00
James Douglass 1e2959378f Renaming attribute in LULC table, updating text.
RE:#1179
2023-02-11 15:54:22 -08:00
James Douglass 3cd5d4e584 Implementing greenspace_supply_totalpop as requested.
This was already in the model, just under the confusing name 'greenspace
supply/demand budget.'.

RE:#1177
2023-02-08 17:06:11 -08:00
James Douglass 92a5c5afaf Implementing greenspace demand.
RE:#1177
2023-02-08 16:17:46 -08:00
James Douglass 097f9a5f4d Renaming greenspace_balance -> greenspace_balance_percapita.
RE:#1177
2023-02-08 15:42:05 -08:00
James Douglass a9f34bf589 Renaming greenspace_budget to greenspace_balance.
Per request by Yingjie.

RE:#722
2023-02-07 15:42:19 -08:00
James Douglass 84f9d4750a Adding a test for the gaussian kernel.
RE:#722
2023-02-02 16:51:30 -08:00
James Douglass 238b070d59 Adding a test for exponential decay.
Also fixes a bug revealed by the test. RE:#722
2023-02-02 16:42:21 -08:00
James Douglass c91eaa6064 Adding a test for the power kernel and removing unused import.
RE:#722
2023-02-02 16:35:12 -08:00
James Douglass c2ae69feb5 Using Admin Boundaries instead of AOIs. RE:#722 2023-01-30 14:51:37 -08:00
James Douglass 8527c9d378 Fixing a syntax issue encountered in python 3.8.
RE:#722
2023-01-24 14:55:46 -08:00
James Douglass 2262ae5d54 Mild improvements to validation.
RE:#722
2023-01-23 16:25:48 -08:00
James Douglass e5acbb8c61 Updating kernels to match the design doc.
In the draft user's guide chapter, several search kernels are defined
for weighting travel distances.  At least one of these (gaussian) is
similar to other kernels used elsewhere in InVEST.  However, the
definition of this gaussian kernel is different from the others in
InVEST.  Technically speaking, 'gaussian' refers to a class of function,
not a specific function.  Thus, I've reworked the kernels to define all
the kernels in accordance with what's defined in the user's guide.

RE:#722
2023-01-23 15:58:02 -08:00
James Douglass ead918d63f Adding a test for normalized dichotomous kernel.
RE:#722
2023-01-21 10:35:37 -08:00