Commit Graph

61 Commits

Author SHA1 Message Date
Claire Simpson 0d152f9409 Resolve merge conflicts 2025-04-07 15:31:53 -06:00
Claire Simpson 01e4a5f4c1 fixed docstring 2025-03-11 16:25:49 -06:00
Claire Simpson b943e65767 clean up carbon raster helper function 2025-03-11 15:12:52 -06:00
Claire Simpson f2bbe7f6cc Fixed report desc in tests 2025-03-11 13:48:05 -06:00
Claire Simpson 59634ff357 update tests 2025-03-11 13:06:35 -06:00
Claire Simpson 6cd5ea0469 Fixed report columns in test 2025-03-10 14:12:30 -06:00
Claire Simpson e6cd35f1cd Changed output filenames from tot_c, delta to c_storage, c_change 2025-03-10 13:58:19 -06:00
Claire Simpson 67c38b4d59 Raise error on invalid LULC years and test this 2025-03-07 10:39:46 -07:00
Claire Simpson 92acaa279b remove redd from tests and update files to bas and alt 2025-03-06 15:17:38 -07:00
Emily Davis 3a13f1012b Merge latest from release branch; update Crop Production & Carbon tests 2025-02-10 18:05:47 -07:00
Claire Simpson 7e0eb0d0df reorganization, linting, cleanup 2025-02-06 12:38:05 -07:00
Emily Davis efca58ba69 Remove unit-choice UI option from Carbon model
This reverts commit 3fc47c720f.
2025-02-04 14:40:43 -07:00
Claire Simpson 20cf2c4925 Added unittests for carbon 2025-01-29 15:17:38 -07:00
Emily Davis 3fc47c720f Carbon: allow user to choose raster output units 2025-01-28 18:02:38 -07:00
Emily Davis edfac6727f Update calculations to ensure accurate raster totals in HTML report 2024-11-27 16:52:31 -07:00
Emily Davis 1b9b16851e Update carbon tests to expect per-hectare values 2024-11-25 16:03:46 -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 bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
davemfish e7a006c6f5 removed a carbon test for numerical precision. #796. 2022-02-03 15:56:03 -05:00
davemfish ca158d78d4 added trailing 0 to regression data. #796. 2022-02-03 10:28:26 -05:00
davemfish ad58a4d8f1 accomodate older versions of numpy.random.default_rng. #796. 2022-02-01 17:12:57 -05:00
davemfish e528373411 updated regression data following a numpy bugfix in a RNG. #796. 2022-02-01 14:15:55 -05:00
James Douglass ded9ac6cdb Updating precision notes and assertion. 2021-05-18 08:59:56 -05:00
James Douglass a0d8c4f483 Converting numpy.sum to run as a numpy.float64. 2021-05-17 23:17:58 -05:00
davemfish f40e29bfac updated the validation tests. #541. 2021-04-30 17:17:42 -04:00
emlys 43a5f61685 update carbon test 2021-02-12 17:25:48 -07:00
Doug 213a93ef27 I. #8 update error message for carbon reclass test 2020-08-25 16:33:16 -04:00
Emily 959d53c803 resolved merge conflicts 2020-07-31 15:28:06 -07:00
Emily a80ea73448 #188 use assert_allclose for all approximate comparisons 2020-07-30 10:59:53 -07:00
Doug f71858b412 I. #143 linting tests, remove pgp.testing
Remove pgp.testing from fisheries_io.py.

Updating history

Lots of test linting
2020-05-28 12:01:32 -04:00
Doug 047395d6fb Issue #41 removing unicode string casting 2020-03-18 09:49:10 -04:00
David Fisher 71bf4814d1 tests for globio validate function. #BITBUCKET-3912. 2019-11-05 15:31:41 -08:00
David Fisher 747af5e48e added tests for CV validate function. #BITBUCKET-3912. 2019-11-04 10:58:43 -08:00
David Fisher 89e8b8637b carbon do_redd and do_valuation are dependent on calc_sequestration. #BITBUCKET-3912. 2019-11-03 12:50:02 -08:00
David Fisher d525ac09b3 in progress Carbon validation tests. #BITBUCKET-3912. 2019-11-01 13:14:11 -07:00
David Fisher 4452f427b5 carbon and utils passing in 27 and 36. #BITBUCKET-3895. 2019-06-20 11:11:31 -07:00
David Fisher 50c7adc259 added warning messages if input lulc rasters have undefined nodata. #BITBUCKET-3851. 2019-02-21 16:26:57 -08:00
David Fisher d74414aebc added test for when input rasters have undefined nodata. also replacing pgp.testing calls with plain gdal. #BITBUCKET-3851. 2019-02-21 16:13:08 -08:00
James Douglass 63c131ae93 Replicating user-reported error.
Tests now run in a path with a smiley emoji in it.  #BITBUCKET-3836
2019-01-23 10:31:15 -08:00
Rich Sharp 651ceb2b93 fixes #BITBUCKET-3833 guarding against ratio == 1, adding test, and updating history 2019-01-14 11:11:57 -08:00
davemfish 2ea8d70315 adding n_workers: -1 arg to tests to avoid a taskgraph RuntimeError and allow the expected ValueError to return instead. 2018-10-04 11:51:39 -07:00
Joanna Lin 81d527a2db Renamed raster_path to base_raster_path and lulc_array to base_array in make_simple_raster. see #BITBUCKET-3758. 2018-07-27 11:59:16 -07:00
Joanna Lin fe473bd44b Update docstrings in make_simple_raster and assert_raster_equal_value. see #BITBUCKET-3758. 2018-07-27 11:30:29 -07:00
Joanna Lin fb76b2b7b8 Changed 'w' to 'wb' for writing the csv file on line 69. See #BITBUCKET-3758. 2018-07-26 11:39:11 -07:00
Joanna Lin 978e92a148 Commented how npv values such as -0.3422078 were obtained. See #BITBUCKET-3758. 2018-07-26 11:31:49 -07:00
Joanna Lin 4351e334f9 Modified function so it’s able to compare the value with any size of raster,
and renamed the function to assert_raster_equal_value. See #BITBUCKET-3758.
2018-07-26 10:43:20 -07:00
Joanna Lin 875366ee5a Modified the make_lulc_rasters function to make_simple_raster so that it only makes one raster at a time.
Replaced args with the file path to reduce side effects of potentially modifying args.
Adjusted code styles based on SublimeLinter. See #BITBUCKET-3758.
2018-07-24 16:07:12 -07:00
Joanna Lin 6db9d3966f Added a new function to create simplified carbon pools csv, and also deleted the sample data arguments. See #BITBUCKET-3758. 2018-07-23 15:30:49 -07:00
Joanna Lin b59ff489c7 Modified the docstrings. See #BITBUCKET-3758. 2018-07-23 15:19:06 -07:00
Joanna Lin e0092306b6 Deleted unwanted arguments in the test functions, and added doc strings to the helper functions. See #BITBUCKET-3758. 2018-07-23 15:15:20 -07:00