Commit Graph

56 Commits

Author SHA1 Message Date
Megan Nissel f9dfd99b7f Merge branch 'main' into bugfix/1689-forest-carbon-geom 2025-04-15 16:42:37 -04:00
Megan Nissel 4b2043ea9b minor forest carbon test improvement (#1689) 2025-04-10 10:08:38 -04:00
Megan Nissel 3ff336c430 unit testing for forest carbon _clip_global_regression_models_vector (#1689) 2025-04-10 09:58:01 -04:00
Claire Simpson 6093d803bd Spot-test values in output tropical_forest_edge_carbon_map; remove unused param #1603 2025-04-09 15:56:21 -06:00
Claire Simpson 54fa2f57ea Set greater rtol 2025-04-08 14:21:40 -06:00
Claire Simpson 6cfcbb1921 Testing only sum of array to fix diff between arrays calculated on windows vs mac 2025-04-08 14:10:45 -06:00
Claire Simpson 2038e9dd13 Revert nearest model pts and expected values; raise rtol 2025-04-08 13:57:51 -06:00
Claire Simpson 4135ca7be1 cleanup 2025-04-08 13:43:57 -06:00
Claire Simpson 977dc477f3 Change nearest model pts to ensure same chosen on different platforms 2025-04-08 13:43:32 -06:00
Claire Simpson f9e1d5f60b Change nearest model pts 2025-04-08 13:36:44 -06:00
Claire Simpson 0e8a66ddf9 Update method model and test values 2025-04-08 13:20:10 -06:00
Claire Simpson 0d152f9409 Resolve merge conflicts 2025-04-07 15:31:53 -06:00
Claire Simpson 8fd5196ee8 Added unit test for calc_tropical_forest_edge_carbon_map; clean up #1603 2025-03-28 10:32:02 -06:00
Claire Simpson 604de8979d add more forest carbon tests and simplify existing helper function 2025-03-13 10:14:13 -06:00
Claire Simpson 21da82da7c forest carbon 2 tests 2025-03-12 08:46:58 -06:00
Emily Davis 56a69dd327 Update Forest Carbon to produce per-hectare values in raster output 2024-12-10 16:46:14 -07: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
Emily Soth 0e0c7b1bae fix a few bugs introduced in merge and update tests for #1373 2023-08-17 15:13:22 -07:00
Emily Soth bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
emlys 4b2fe46e1a update tests and test data 2020-12-10 13:05:27 -07:00
Doug fd8417bf39 I. #8 forest_cee using utils reclass and test 2020-09-03 14:54:54 -04:00
Doug 79fed192db A lot of test linting and keyword update to SQ
Replacing 'projection' with 'projection_wkt' in SQ for PGP updates
2020-05-29 08:34:17 -04:00
Doug 46b19392d5 Issue #41 cleaning up some pycodestyle things 2020-03-12 11:35:12 -04:00
David Fisher e7ea2196fd tests for Forest Carbon Edge Effects args spec and validate function. #BITBUCKET-3912. 2019-11-11 14:53:15 -08:00
David Fisher c3b1271058 in progress validate tests for Forest Carbon Edge. #BITBUCKET-3912. 2019-11-04 16:32:18 -08:00
Joanna Lin c572e91288 add `n_workers` arg to test. #BITBUCKET-3844 2019-02-11 14:09:10 -08:00
Joanna Lin 5ba5036a73 remove if __name__ == '__main__' statement from test. #BITBUCKET-3844 2019-02-07 13:57:05 -08:00
Joanna Lin ab86e648d9 use taskgraph on tasks that generate raster datasets. #BITBUCKET-3844 2019-02-07 13:52:58 -08:00
Joanna Lin 7e203d44e4 raised exception early in the model if raster and vector don't have intersection. see #BITBUCKET-3802 2018-09-24 10:07:41 -07:00
Joanna Lin 50994a78b3 changed line for lengthy codes. see #BITBUCKET-3802 2018-09-19 11:49:42 -07:00
Joanna Lin 92b92a84f6 removed temp local path from test. see #BITBUCKET-3802 2018-09-19 11:43:36 -07:00
Joanna Lin 373c9a91b9 saved non_forest_mask in the temp folder; replaced mean_pixel_size with pixel_size. see #BITBUCKET-3802 2018-09-19 11:30:19 -07:00
Joanna Lin 9b02f7c48b replaced _uri with _path. see #BITBUCKET-3802 2018-09-17 16:45:12 -07:00
Joanna Lin 22b1b7d2f5 raise exception when the user inputs a nodata lulc raster. see #BITBUCKET-3802 2018-09-17 16:14:06 -07:00
Joanna Lin 9053b44ec9 renamed lulc_uri to lulc_raster_path. see #BITBUCKET-3802 2018-09-17 16:02:38 -07:00
Joanna Lin ddfcce4d4e replaced natcap.invest.pygeoprocessing_0_3_3.aggregate_raster_values_uri() with pygeoprocessing.zonal_statistics(), and natcap.invest.pygeoprocessing_0_3_3.vectorize_datasets() with pygeoprocessing.align_and_resize_raster_stack().
see #BITBUCKET-3802
2018-09-17 15:29:41 -07:00
Joanna Lin 7337c7598b renamed aoi_uri to aoi_vector_path. see #BITBUCKET-3802 2018-09-17 11:38:16 -07:00
Rich Sharp b80b5d8257 re #BITBUCKET-3784 adding a test to cover the case where the aoi is provided but doens't exist on disk and refactoring so the model fails early. 2018-08-28 11:11:48 -07:00
Rich Sharp a70d201514 fixes #BITBUCKET-3784 updating test data and refactoring test suite so it checks vetors, not CSVs in a certain order 2018-08-27 11:09:33 -07:00
Rich Sharp 6f7a008ecb re #BITBUCKET-3784, refactoring how result vectors are tested for equality 2018-08-27 10:56:20 -07:00
Rich Sharp 062a98663d merging upstream 2018-08-24 15:26:33 -07:00
Rich Sharp b8620d0851 re #BITBUCKET-3784 updating core regression test data 2018-08-24 15:25:51 -07:00
Joanna Lin 5328f9a84b added nodata LULC raster to forest carbon edge effect to svn repo 167. see #BITBUCKET-3780. 2018-08-23 13:25:21 -07:00
Joanna Lin 74321a3516 removed synthetic datasets for scenario proximity but keep forest carbon edge in svn 166 so the tests won't fail on Jenkins. see #BITBUCKET-3780. 2018-08-23 11:19:55 -07:00
Joanna Lin b1d9159dd4 modified makefile to fetch test data repo 165. see #BITBUCKET-3780. 2018-08-22 16:57:04 -07:00
Joanna Lin 72d12cabe4 merged upstream. see #BITBUCKET-3780. 2018-08-22 12:18:19 -07:00
Joanna Lin e1df55cc76 replaced sample datasets with synthetic datasets. see #BITBUCKET-3780. 2018-08-21 14:27:18 -07:00
Joanna Lin 299a9ed388 removed unused imports, and replaced pygeoprocessing 0.3.3 with 1.0. see #BITBUCKET-3780. 2018-08-21 13:39:25 -07:00
Rich Sharp 050a157c38 re #BITBUCKET-3719 refactoring carobn edge tests to use relative tolerance 2018-01-09 23:44:42 -06:00
Rich Sharp 3d95f6e99b re #BITBUCKET-3623 converted A BUNCH OF OTHER FILES to static pgp 0.3.3 2017-02-28 17:16:50 -08:00