Commit Graph

53 Commits

Author SHA1 Message Date
Emily Soth d6bd7457e1 uncomment tests 2025-05-05 21:43:16 -07:00
Emily Soth 739eb21b59 work around module reload issue: wrapper function for validation messages 2025-04-29 12:28:50 -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 Davis 3ec1485d28 Update UFRM to use CreateCopy when generating summary vector 2024-09-30 16:52:58 -06:00
Emily Davis 6b9d56c105 Copies existing fields in UFRM source aoi vector to target vector 2024-09-10 17:53:28 -06:00
Emily Soth f693dc4bd0 Merge branch 'main' into task/1373 2023-09-06 15:51:59 -07:00
Doug 4da701584d I. #1346 add validation test. 2023-08-21 09:40:40 -04:00
Emily Soth 0e0c7b1bae fix a few bugs introduced in merge and update tests for #1373 2023-08-17 15:13:22 -07:00
Dave Fisher 5a0fdc6aa6
Update tests/test_ufrm.py
Co-authored-by: Doug <dcdenu4@gmail.com>
2023-06-27 11:57:49 -04:00
davemfish 735ebcfc99 added test and bugfix. #1123 2023-06-27 09:57:57 -04:00
James Douglass b387c82d6e Improving validation for UFRM CN columns.
RE:#1027
2022-07-14 13:52:04 -07:00
emlys 31691cdb67 Merge branch 'release/3.10' into task/568 2021-11-03 14:28:59 -07:00
Dave Fisher e5249212a0
Merge pull request #700 from natcap/main
Merge main into release/3.10
2021-10-26 15:47:55 -04:00
davemfish 3bcfaecdd5 fixing bug in tests and making assertions more explicit. #686. 2021-10-25 14:52:49 -04:00
davemfish 2d9e3edefa added tests and error-checking to guard against lulc values missing from the biophysical table. #686. 2021-10-25 12:35:01 -04:00
emlys 14bb469b16 add test for translated validation message 2021-10-01 16:00:36 -07:00
emlys 76ab2a25e8 consolidate validation messages into one locations 2021-09-28 17:27:44 -07:00
James Douglass 358f9ffedd
Merge pull request #592 from natcap/main
Merge main into release/3.10
2021-07-21 14:29:07 -07:00
James Douglass fe23425d1f Correcting a few runtime issues with the tests.
RE:#590
2021-07-21 11:24:59 -07:00
James Douglass 9e4aee801c Adding a test to reproduce the indexing issue.
RE:#590
2021-07-21 11:15:00 -07:00
emlys 3ff7d2cbf8 tests passing through hra 2021-05-05 14:23:40 -06:00
Doug bddba41a8c I. #397 fix field names in test 2020-11-30 10:52:04 -05:00
Richard Sharp 5e3c598b17
Merge pull request #311 from natcap/main
Merge main into release/3.9
2020-09-14 13:41:45 -07:00
Rich Sharp f9234748a8 fixes #308, updating history and modifying expected output in test 2020-09-11 11:54:33 -07:00
James Douglass f0b5dd3cef
Merge pull request #225 from natcap/master
AUTO: merge master into release/3.9
2020-07-14 10:57:22 -07:00
James Douglass a3486cc56c Always aggregating flood volumes per watershed and adding to the output vector. RE:#218 2020-07-13 17:59:30 -07:00
James Douglass 85ee5371b7 Calculating service.built in a more deliberate way. RE:natcap/invest#218 2020-07-10 18:25:07 -07:00
James Douglass 83215f7f38 Renaming output fields to match UG chapter. RE:#218 2020-07-10 16:13:30 -07:00
James Douglass 05bae453fc Adding flood volume to the output vector. RE:#218 2020-07-10 15:44:24 -07:00
James Douglass c51f0796fe Merge branch 'release/3.9' into pr-resolution
Conflicts:
	src/natcap/invest/urban_flood_risk_mitigation.py
	tests/test_ufrm.py
2020-06-29 10:36:30 -07:00
James Douglass 0568c366f3 Better case handling for 'type' field.
Also added validation in the beginning of the model run for good
measure. RE:#168
2020-06-22 16:17:15 -07:00
James Douglass 91bbc64d4d Adding missing vector attribute.
Also improving tests over the sample vector to check the value for each
field.  Having these checks would have helped prevent the missing vector
attribute from occurring in the first place. RE:#168
2020-06-22 16:02:10 -07:00
James Douglass 4e76e9e111 Improving UFRM tests to include the new fields. RE:#168 2020-06-18 18:35:13 -07:00
Doug ce42a28266 I. #143 linting, linting, linting 2020-05-29 10:07:07 -04:00
Doug c386b18698 Merge branch 'master' into bugfix/gdal3-support 2020-05-05 09:23:58 -04:00
Doug 69b9cd012e Issue #41 large attempt at removing all u casting 2020-03-18 10:26:57 -04: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
Doug 09698bd6c7 Merge branch 'master' into bugfix/gdal3-support 2020-02-28 08:44:36 -05:00
Doug c1aa923350 Update issue #27 replacing next() with layer call.
GDAL 3 doesn't support built in next() iterator on layers anymore,
so now calling layer.GetNextFeature() instead.
2020-02-21 15:26:50 -05:00
davemfish 9a3aee2088 catch an error related to bad data in order to suggest the fix. also a test case. #23. 2020-02-18 16:36:23 -08:00
James Douglass 27cb704efb Using correct inspect.getfullspec() on a function.
RE:#BITBUCKET-3912
2019-11-22 15:43:06 -08:00
James Douglass baf04c5d62 Closing opened files. RE:#BITBUCKET-3912
Warnings were being printed in the tests.
2019-11-22 15:32:56 -08:00
James Douglass 79f42fe0bb Updating UFRM validation tests. RE:#BITBUCKET-3912 2019-10-04 15:39:58 -07:00
James Douglass 84b664fa0e Updating tests to check the number of missing keys in a KeyError from validate.
RE:#BITBUCKET-3908
2019-08-22 16:00:52 -07:00
Rich Sharp 58b01236e0 re #BITBUCKET-3775 coarsening the resolution of the test case for 64 vs 32 bit... we can't be sure they'll be that close, there is a significant benefit from summing w/ 64 bits 2019-06-18 14:20:22 -05:00
Rich Sharp 3d1876cf84 re #BITBUCKET-3775 refactoring to handle fixing an issue in precision and ensuring coverage in new validation control 2019-06-11 10:06:53 -07:00
Rich Sharp fe577c46f0 re #BITBUCKET-3775 adding n_workers and also relative to __file__ 2019-06-10 22:45:43 -07:00
Rich Sharp 7e06ac1f31 re #BITBUCKET-3775 making paths relative to __file__ 2019-06-10 22:29:53 -07:00
Rich Sharp 06d56f0642 re #BITBUCKET-3775 removing old regression directories 2019-06-10 22:24:11 -07:00