Commit Graph

65 Commits

Author SHA1 Message Date
Claire Simpson 72fadf5bf9 fix pixels in pollination raster func 2025-03-11 15:35:58 -06:00
Claire Simpson 3c09a72d0c added pollination tests 2025-02-11 18:07:24 -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 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 357c310ed1 replace raster_calculator with raster_map where it simplifies things 2023-10-30 15:13:14 -07:00
James Douglass 1237ec9dcb Various improvements to pollination testing, exceptions.
RE:#1283
2023-04-24 09:42:56 -07:00
Emily Soth bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
Doug c738de90e5 I. #8 add reclass check to Pollination and test 2020-08-19 10:08:33 -04:00
Doug 6070fbe5a4 I. #8 revert up front handling commits
This commit reverts the changes that were made for handling missing
raster values in tables up front.

This reverts commit 2c84454c34.
2020-08-14 09:24:55 -04:00
Doug 9feb7e5bbd I. #8 checking missing lulc values in pollination
Checking up front if lulc values are not present in biophysical table
and adding a test
2020-08-13 10:48:15 -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 85493dbbcc I. #143 poll, rec, reporting, scenario refactor 2020-05-26 09:00:47 -04:00
davemfish d21c55d1df Avoiding use of windows path separator. Also moving the expected file list from an external repo to the test script. #95. 2020-04-24 16:41:39 -07:00
Doug 047395d6fb Issue #41 removing unicode string casting 2020-03-18 09:49:10 -04:00
Doug 46b19392d5 Issue #41 cleaning up some pycodestyle things 2020-03-12 11:35:12 -04:00
David Fisher f9ecfd08f8 fixed indentation. #BITBUCKET-3912. 2019-11-08 11:55:22 -08:00
David Fisher c846b869f0 validate test for Pollination. #BITBUCKET-3912 2019-11-08 11:32:39 -08:00
David Fisher 7c5ab77dfa pollination tests passing in py36 and py27. #BITBUCKET-3895. 2019-06-28 10:59:19 -07:00
Rich Sharp 8380e7310c re #BITBUCKET-3875 adding new test and fixing all places where a divide by integer could occur 2019-05-20 13:55:52 -07:00
Rich Sharp c07ef8a542 re #BITBUCKET-3875 updating test data repo 2019-05-20 13:49:15 -07:00
Rich Sharp 3f99efa619 re #BITBUCKET-3837 adding path/band in iterblocks call 2019-01-25 12:04:22 -08:00
Joanna Lin deee3a7938 use minimum raster pixel size if the pixel is not square. see #BITBUCKET-3818 2018-11-19 12:26:39 -08:00
Joanna Lin 8771accf2f change line. see #BITBUCKET-3787. 2018-08-28 14:28:02 -07:00
Joanna Lin 1b51711b1d modified pollination test files to svn revision 173. see #BITBUCKET-3787. 2018-08-28 14:26:56 -07:00
Joanna Lin e0c33cccd5 removed sample data path. see #BITBUCKET-3787.' 2018-08-28 10:42:45 -07:00
Joanna Lin 2c07e6d14f removed r in front of filepaths. see #BITBUCKET-3787. 2018-08-28 10:36:49 -07:00
Joanna Lin 922d12c14e removed scm import. see #BITBUCKET-3787. 2018-08-28 10:33:08 -07:00
Joanna Lin 31cdf0e3e3 removed skipdata decorator. see #BITBUCKET-3787. 2018-08-28 10:32:49 -07:00
Joanna Lin cf4b9504fb added new functionality to test the file list. see #BITBUCKET-3787. 2018-08-28 10:28:40 -07:00
Joanna Lin aafa837871 simplified raster resolution. see #BITBUCKET-3787. 2018-08-27 15:13:51 -07:00
Joanna Lin dc4b9cbe7a testing test_pollination_missing_farm_header(). see #BITBUCKET-3787. 2018-08-27 12:37:26 -07:00
Joanna Lin 6b1a79a464 modified data path. see #BITBUCKET-3787. 2018-08-27 12:14:46 -07:00
Rich Sharp e04c18f79b re #BITBUCKET-3741 passing None to sep so pandas determines the dialect 2018-05-23 18:45:39 -07:00
Rich Sharp 00a5a2953b merging in latest from develop 2018-05-22 17:16:29 -07:00
Rich Sharp 4e9e2a8bcf re #BITBUCKET-3741 setting an explicit number of decimal points to check for in tests and naming some tasks that were crashing. unfortunately those tasks now pass so I don't know what was going on there. 2018-05-16 10:52:31 -07:00
James Douglass 75668ebcaa Removing redeclaration of _N_WORKERS in pollination tests. RE:#BITBUCKET-3714 2018-05-16 10:38:32 -07:00
James Douglass 399f1d32c4 Specifying that sum of numbers should be a float32. RE:#BITBUCKET-3714 2018-04-30 13:53:10 -07:00
James Douglass 7fa2329fc1 Correcting _N_WORKERS definition for latest taskgraph.
RE:#BITBUCKET-3714
2018-04-30 13:08:05 -07:00
James Douglass 083281bc47 Updating a couple of test that were failing on jenkins. 2017-10-31 15:03:07 -07:00
James Douglass 0f8d2c9d64 Merging develop into this branch.
Manually merged requirements.txt and pollination.py.  Pollination tests
pass after the manual merge.  RE:#BITBUCKET-3610
2017-10-16 13:39:15 -07:00
Rich Sharp 97123fe540 re #BITBUCKET-3655 changing farm result ot farm indicies per request 2017-09-19 12:31:40 -07:00
Rich Sharp 07782efa57 re #BITBUCKET-3655 adding additional coverage, and finalizing dependancy versions 2017-09-13 12:03:31 -07:00
Rich Sharp 12680055d1 re #BITBUCKET-3655 change to code base and tests to increase coverage 2017-09-13 11:50:44 -07:00
Rich Sharp c6cdf17ac3 re #BITBUCKET-3655 seems safer to not use multiprocessing yet for distribution to end users 2017-09-13 11:40:23 -07:00
Rich Sharp cdfd456fb4 re #BITBUCKET-3655 updating tests because of changes to the model 2017-09-13 11:21:53 -07:00
Rich Sharp 5f3835a919 merging in latest from develop 2017-08-21 10:31:51 -07:00
Rich Sharp c002ea66b5 re #BITBUCKET-3652 adding test coverage for new 'farms optional' feature 2017-06-27 11:05:04 -07:00
James Douglass 7118626ead Changing the import order in the pollination tests.
Importing OGR before shapely is required on mac for obscure build
reasons that I don't fully understand but have encountered before.
RE:#BITBUCKET-3610
2017-06-22 14:55:33 -07:00
Rich Sharp 3c5ba63686 re #BITBUCKET-3622 the term p_avg_yield suggests that it be the actual part of the yield that is due to pollinators, not the average yield of the potentital total pollinator only yield. updated the code and test case to reflect this 2017-06-20 15:40:13 -07:00