Commit Graph

119 Commits

Author SHA1 Message Date
Emily Soth 214a617e0d Merge branch 'feature/plugins' into feature/1891 2025-05-12 15:50:31 -07:00
Emily Soth 9665164bd5 Merge branch 'feature/plugins' of https://github.com/natcap/invest into feature/plugins 2025-05-12 13:36:46 -07:00
Emily Soth 5e9e739705 Merge branch 'main' into feature/plugins 2025-05-12 13:36:19 -07:00
Emily Soth bf1726ec88 restore compiled modules to the plugins branch 2025-05-08 14:38:09 -07:00
Emily Soth 73b42aecc5 work in progress: updating tests 2025-04-28 12:07:59 -07:00
Claire Simpson 324139a8d7 Test that nodata values are handled correctly in QF calculation (#1592) 2025-04-18 11:54:21 -06:00
Emily Soth ef62d68a67 Merge branch 'main' into feature/plugins 2025-04-04 13:29:28 -07:00
Emily Soth 7909dfe27f abstract out flow dir arg spec to spec_utils and rename it 2025-03-26 10:33:07 -07:00
Emily Soth 7c2cc371dc update expected values in SWY tests
after merging test updates into the routing refactor branch, some
values were off by an amount on the order of 1e-7. Safe to assume
this is due to changes in floating point imprecision.
2025-03-04 09:31:58 -08:00
Emily Soth e1c3e45930 fix swy test failures resulting from merge 2025-03-03 18:39:17 -08:00
Emily Soth eb0d317533 Merge branch 'main' into feature/routing-refactor 2025-03-02 16:55:11 -08:00
Emily Soth 08795c94ee Merge branch 'main' into feature/plugins 2025-02-19 10:31:10 -08:00
dcdenu4 0e5261305f Skip compiled model tests 2025-02-05 09:52:24 -05:00
Claire Simpson b8d52088b7 Add assertions to test_local_recharge_undefined_nodata; improve assertions for 3 tests 2025-01-27 11:26:15 -07:00
Claire Simpson 95928972b4 revert unintended minor changes 2025-01-22 13:36:32 -07:00
Claire Simpson d68cfc6449 Added test for CN raster; fixed baseflow test; added assertion to test_local_recharge_undefined_nodata 2025-01-22 12:07:24 -07:00
Claire Simpson 842020cc95 Added tests for route_baseflow_sum and calculate_local_recharge 2025-01-21 15:22:35 -07:00
Emily Soth 94d697e2ae add expected values for D8 mode tests 2025-01-07 17:11:38 -08:00
Emily Soth 8769f9d851 Merge branch 'feature/routing-refactor' into feature/d8-routing 2024-12-16 14:32:39 -08:00
Claire Simpson 1774b53b87 Encapsulated creation of zero-padded monthly rasters into new function; clarified comments 2024-11-27 11:41:19 -07:00
Claire Simpson 5435adf76d Updated test for zero-padded monthly files to work with updated _get_monthly_file_lists; added test for non-zero padded precip files 2024-11-26 15:39:39 -07:00
Claire Simpson ff25b892f2 fixed line len lint error 2024-11-25 15:29:11 -07:00
Claire Simpson de7ea8caa0 fixed import statement in test_zeropadded_monthly_filenames 2024-11-25 11:59:37 -07:00
Claire Simpson fcd2b2bdef added unit test for input et and precip filenames with zero-padded months 2024-11-22 16:20:19 -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
James Douglass ce88ef16dc Correcting a test filepath in SWY. RE:#1645 2024-10-11 12:07:59 -07:00
Emily Soth 2c430c31b2 SWY D8 test 2024-09-23 16:00:46 -07:00
Emily Soth b71559f3ce SWY tests passing in MFD mode 2024-09-20 14:18:52 -07:00
Emily Soth 0f24212f0a clean up 2023-11-01 13:45:15 -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 cc2933c7c6
Merge branch 'main' into feature/1328 2023-08-02 13:25:49 -07:00
Emily Soth 399f7b0bed fix test docstring; qf_im nodata masking #1105 2023-07-19 10:48:53 -07:00
Emily Soth a293dd9f3f Revert "revert swy test change"
This reverts commit 5276b5253b.
2023-07-19 09:52:11 -07:00
Emily Soth 5276b5253b revert swy test change 2023-07-19 09:38:21 -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 b7388c17b9 set very small expected values to 0 in tests 2023-06-22 17:00:16 -07:00
Emily Soth 9f154c3e22 Merge branch 'main' into bugfix/1105 2023-06-22 16:56:12 -07:00
Emily Soth 6f219d9e9b clean up refactor, handle case where QF is negative, and add tests #1318 2023-06-22 16:51:12 -07:00
Emily Soth 59aa1fddc1 Merge branch 'main' into bugfix/1105 2023-06-02 10:59:56 -07:00
Emily Soth c61b57ded9 fix natcap/invest#1105: mask qf sum using nodata from all months 2023-06-02 10:42:26 -07:00
Emily Soth 1fd8f4c78e Merge branch 'release/3.13.0' into feature/output-spec 2023-03-01 11:13:58 -08:00
James Douglass b28db3067d Explicitly testing the ndoata value exclusion. RE:#1193 2023-02-20 12:24:39 -08:00
James Douglass 9e6ae63690 Validating soil groups at runtime.
A human-readable exception is now raised if an invalid soil group is
found.

RE:#1193
2023-02-20 12:22:54 -08:00
Emily Soth 1ed6df6dfa organize quickflow code by three cases 2022-11-14 16:13:53 -08:00
Emily Soth bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
James Douglass 971f361682 Adding a precipitation raster output.
RE:#922
2022-03-29 16:33:24 -07:00
emlys 2a0365acd3 fix and test for SWY monthly alpha validation bug 2021-10-12 10:35:31 -07:00
Doug 16d1d41b9e Merge branch 'release/3.9' into task/shapely-version-bump 2020-10-20 08:41:50 -04:00
Doug 0564138056 Fix tests that were leaving behind test outputs
A couple testing modules were not cleaning up some generated outputs
2020-10-19 10:20:38 -04:00
Doug f6ebdf3fbd I. #331 update test comment 2020-10-16 07:21:28 -04:00