Commit Graph

77 Commits

Author SHA1 Message Date
Claire Simpson 903c16e37f Move data helper functions to new module; update/fix docstrings #1603 2025-04-11 14:59:45 -06: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 eca9a6f371 Fixing values in tests after merging 3.15 (mostly related to ha change) #1603 2025-04-07 17:28:24 -06:00
Claire Simpson 0d152f9409 Resolve merge conflicts 2025-04-07 15:31:53 -06:00
Claire Simpson 7818d0ebe1 fixed formatting 2025-02-12 12:48:50 -07:00
Emily Davis 76494c6e8e Pass aggregate_results_table_path to aggregate_regression_results_to_polygons instead of redefining it in the function 2025-02-12 10:02:27 -07:00
Claire Simpson db2bbd3281 add crop production percentile unit tests 2025-02-11 13:08:34 -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 952ef9f109 fixed workspace 2025-02-06 13:08:52 -07:00
Claire Simpson 7e0eb0d0df reorganization, linting, cleanup 2025-02-06 12:38:05 -07:00
Claire Simpson 242ed8c5b9 fixed formatting 2025-02-05 17:39:06 -07:00
Claire Simpson 570ecbf2a5 add unit tests to crop production (regression) 2025-02-05 17:38:11 -07:00
Emily Davis 2ea369d271 Update Crop Production (Regression) to produce per-hectare values in raster outputs 2024-12-18 16:26:39 -07:00
Emily Davis 0136454cdd Update Crop Production (Percentile) to produce per-hectare values in raster outputs 2024-12-17 17:29:49 -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 5665f25dab check_exact=False when comparing floats against integer dataframes 2024-01-22 12:33:27 -08:00
Emily Soth 1bc30f744a update test data for crop production headers 2023-07-18 13:41:49 -07:00
Emily Soth 73fbcadf43 update all models and tests to use new version of read_csv_to_dataframe 2023-07-06 12:44:15 -07:00
Emily Soth bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
emlys 4b471424c6 undo extra changes 2021-08-25 15:39:41 -07:00
emlys 26228bc0df update crop production to handle yield nodata 2021-08-25 15:07:08 -07:00
Doug a8a4508432 I. #8 reclassify check for crop_prod_perc
Adding a test as well
2020-08-24 14:55:30 -04:00
Doug fa05f5e75a I. #8 checking reclassify for crop_prod_reg.
Adding test as well
2020-08-24 14:45:51 -04:00
Doug eedc7610a5 I. #143 fix keyword 'projection' 2020-05-29 16:00:40 -04: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 9323e2f0d8 remove new line eof 2020-03-16 13:22:34 -04:00
Doug 46b19392d5 Issue #41 cleaning up some pycodestyle things 2020-03-12 11:35:12 -04:00
David Fisher 18e1e79773 tests for crop production validate functions. #BITBUCKET-3912. 2019-11-04 14:41:51 -08:00
David Fisher 19fa82bac6 both crop productions passing in py27 and py36. #BITBUCKET-3895 2019-06-20 16:03:15 -07:00
David Fisher 7153734a41 checking for not None nodata value before using the value. #BITBUCKET-3851. 2019-02-19 13:51:59 -08:00
David Fisher 732613cb68 added crop production test that fails when landcover input raster has no assigned nodata value. #BITBUCKET-3851. 2019-02-19 12:52:49 -08:00
Joanna Lin f21e6f13af remove all unused test data and update svn repo revision. #BITBUCKET-3847 2019-02-12 15:58:48 -08:00
David Fisher 15211b5e67 add a test to compare result_table.csv to an expected result table for the regression model. #BITBUCKET-3815. 2018-11-16 16:02:51 -08:00
David Fisher e385d1bb77 writing docstrings and adding a test to compare a results table to an expected results csv. #BITBUCKET-3815. 2018-11-15 15:57:55 -08:00
David Fisher f607ad5241 comparing float equality with numpy.isclose, and other small changes. #BITBUCKET-3815. 2018-11-13 15:40:53 -08:00
David Fisher 72cc3b1072 quick bugfix - taskgraph token dir should go inside the workspace. #BITBUCKET-3815. 2018-11-13 09:13:20 -08:00
David Fisher b3aad28953 tasks for all the raster operations preceeding the report generation section. #BITBUCKET-3815. 2018-11-09 15:32:03 -08:00
Joanna Lin 67e4b50522 in addition, removed skipdata decorators and scm imports for most tests. see #BITBUCKET-3790. 2018-08-29 13:40:13 -07:00
Joanna Lin 21e3e8e352 moved file location to invest-test-data. see #BITBUCKET-3785. 2018-08-27 10:39:38 -07:00
Joanna Lin cf932f48fa reduced land cover types to 3. see #BITBUCKET-3785. 2018-08-27 10:37:15 -07:00
Rich Sharp c945845191 re #BITBUCKET-3757 changing 'nearest/cubic_spline' to 'near/cubicspline' and updating expected test result data 2018-07-20 12:31:12 -07:00
Rich Sharp 76e0a84a93 fixes #BITBUCKET-3737 using pandas to have better expected numerical roundoff rather than pygeoprocessing's tests. test passes again. 2018-06-20 10:03:45 -07:00
Rich Sharp bdefe52dfa fixes #BITBUCKET-3673 I'm not sure what the old validataion did, but the error it was checking was if a crop name was valid. we can't really know until we know we have a valid model path, so I don't know if that's a good UI validator or not. something to consider later. but for now it's reasonable to have that functionality in the execute function so I did that. for some reason there was an extraneous loop at the entry point of execute that looked like it used to do this functionality but currently did nothing but uselessly loop. i patched and hijacked for this purpose. 2017-11-01 10:31:13 -07:00
James Douglass ac5d100eb8 Updating tests for CP regression to use validation.
RE:#BITBUCKET-3610  RE:#BITBUCKET-3597
2017-06-27 15:58:20 -07:00
Rich Sharp cb99c08ed4 re #BITBUCKET-3626 replacing manual table check with pygeoprocessing.testing.assert_csv_equal 2017-06-21 23:32:23 -07:00
Rich Sharp a7a600d0ec re #BITBUCKET-3626 adding regression test for regression crop production model 2017-05-16 13:53:40 -07:00
Rich Sharp 6540d59e8f re #BITBUCKET-3626 building up interpolated regression parameters 2017-05-09 15:54:23 -07:00
Rich Sharp 4d21d7db0d re #BITBUCKET-3626 starting regression model for crop production 2017-05-05 08:56:25 -07:00
Rich Sharp aeb844f776 Re #BITBUCKET-3626 adding regression model and intro test that doesn't work 2017-04-28 15:57:32 -07:00
Rich Sharp 1f70f5d89b re #BITBUCKET-3626 removing regression function because I don't know what it'l be yet and removing the corresponding test in suite. 2017-04-06 11:20:34 -07:00