Commit Graph

3017 Commits

Author SHA1 Message Date
James Douglass ec88d787e4
Merge pull request #1690 from emlys/task/1570
enable gdal.UseExceptions in entrypoints and tests
2024-11-21 16:36:26 -08:00
Emily Soth 579b0aa324 cleanup 2024-11-19 13:51:58 -08: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
davemfish b623e28e02 no need to open the dataset before translating it. #1686 2024-11-15 16:05:01 -05:00
davemfish dd5e569669 use VectorTranslate instead of CopyDataSource for convenience and reliability; nature access. #1686 2024-11-15 15:38:45 -05:00
davemfish d28d0682a9 use VectorTranslate instead of CopyDataSource for convenience and reliability. #1686 2024-11-15 13:15:12 -05:00
davemfish b5a681b4e2 reverting a change for debugging. #1657 2024-10-22 09:30:21 -04:00
davemfish 2b956f9f68 fixed a shapely 2.0 incompatibility; modified a test to cover it. #1657 2024-10-22 09:29:45 -04:00
davemfish e1698aba6e move a test to be near other related tests. #1657 2024-10-22 08:50:23 -04:00
Doug 0b35f58da9
Merge pull request #1649 from emilyanndavis/enhancement/721-hq-rarity-csv
HQ: generate rarity output in CSV format (in addition to raster)
2024-10-21 09:05:26 -04:00
Emily Davis c56523b909 Update HQ rarity CSV test 2024-10-18 10:35:15 -06:00
Emily Davis e809edd414 Update column name, comments, docstring 2024-10-18 09:14:14 -06:00
Emily Davis 209d0b6a78 Merge branch 'main' of github.com:natcap/invest into enhancement/721-hq-rarity-csv 2024-10-16 12:24:06 -06:00
James Douglass 63fb8883da Using assert_allclose for better numerical comparisons.
RE:#1641
2024-10-15 17:31:58 -07:00
James Douglass 98904f3dd4 Updating UCM tests for numerical outputs.
The numpy2 update was producing slightly different numerical outputs,
but also we weren't asserting that they were numerically close, just
that they had the same number of digits after the decimal ... which
wasn't working well because most of these values were large.

RE:#1641
2024-10-15 17:15:31 -07:00
Emily Davis 78e1653f1d Update tests 2024-10-15 15:20:38 -06:00
James Douglass 184f5c619b Merge branch 'main' of https://github.com/natcap/invest into bugfix/1645-gdal-exceptions-in-validation
Conflicts:
	requirements.txt
2024-10-15 12:34:32 -07:00
James Douglass ce88ef16dc Correcting a test filepath in SWY. RE:#1645 2024-10-11 12:07:59 -07:00
Emily Davis ed8f2b32c0 Merge branch 'main' of github.com:natcap/invest into bugfix/1608-cross-drive-relpath-error-handling 2024-10-10 15:57:38 -06:00
Emily Soth aea2b7c04d
Merge pull request #1626 from emilyanndavis/bugfix/1600-ufrm-preserve-source-aoi-fields
UFRM: preserve source AOI fields in output vector
2024-10-09 14:23:48 -07:00
Emily Davis 3ec1485d28 Update UFRM to use CreateCopy when generating summary vector 2024-09-30 16:52:58 -06:00
James Douglass e6eb1a037a Adding a test for when the LULC has no nodata value. RE:#1293 2024-09-19 16:06:24 -07:00
Emily Davis 73f283feaf Handle & display error on save datastack failure 2024-09-16 16:22:26 -06:00
Emily Davis cf56816a32 Update Python paramset tests 2024-09-16 14:18:19 -06:00
Emily Davis 178e39eada Handle & display error on save paramset failure 2024-09-13 17:52:52 -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 Davis 210b5058d4 Correcting bare excepts, and other PEP8 cleanup 2024-09-04 18:09:01 -06:00
Emily Davis 6ab5e43204 Skip directory permissions unit tests on Windows; update HISTORY 2024-08-28 14:06:38 -06:00
Emily Davis 2c7e4f8087 Updates directory permissions validation to use an EAFP approach 2024-08-26 16:43:18 -06:00
Emily Soth 24c3bda010 #1534: stricter validation for CBC analysis year 2024-05-02 16:10:07 -07:00
Emily Soth 8309411e49 modify invalid test geometry for ndr
The old geometry had its self intersection on the pixel centerpoint,
which should work, but didn't on M1 mac runners (see https://github.com/natcap/invest/issues/1562).
This modifies the geometry so that the pixel centerpoint is fully
within the geometry, which I'm hoping is more stable.
2024-05-01 12:07:34 -07:00
James Douglass 400c04d9e0 Correcting a test method name.
RE:#1425
2024-04-09 13:57:33 -07:00
Emily Soth b5d85760fa
Merge branch 'main' into task/916 2024-04-01 16:21:24 -07:00
Emily Soth fa213e54ba fix bug in validation test revealed by gdal>=3.6.0 2024-04-01 15:25:17 -07:00
Dave Fisher 8139d2b605
Merge pull request #1499 from dcdenu4/bugfix/1498-wind-energy-cast-numbers
Bugfix/1498 wind energy cast numbers
2024-04-01 14:37:04 -07:00
Doug f35819a239
Merge branch 'main' into bugfix/1498-wind-energy-cast-numbers 2024-03-29 13:07:17 -04:00
dcdenu4 e1d3e4a458 I. #1498 pass strings in test for testing 2024-03-29 13:05:20 -04:00
Emily Soth 2b0eafcea5 expand recursive validation tests 2024-03-12 11:52:29 -07:00
Emily Soth d8f8458f6d Merge branch 'main' into feature/327 2024-03-12 09:45:41 -07:00
Emily Soth 724e9b40da
Merge pull request #1511 from phargogh/bugfix/1509-una-validation-missing-uniform-search-radius
Proposal (and bugfix) to implement value-based conditional requirement
2024-03-11 14:44:03 -07:00
James Douglass 4b6f93223c HQ validation now partially covered by expressions.
RE:#1509
2024-02-22 15:53:55 -08:00
James Douglass 831fd99474 Small test fix from slight return value change.
RE:#1509
2024-02-22 15:37:32 -08:00
James Douglass 880e31fbd4 Adding directory axis. RE:#1509 2024-02-21 15:46:39 -08:00
James Douglass 1deee3e55d Simplifying validate(). RE:#1509 2024-02-21 14:58:54 -08:00
davemfish 69fabb1500 add tests to cover nan nodata in bathymetry. #1528 2024-02-20 13:54:43 -05:00
James Douglass b02b49c264 Adding a test for CSV row conditional validation. RE:#1509 2024-02-14 10:08:44 -08:00
James Douglass 5e6e35bd44 Correcting WKT syntax. RE:#1509 2024-02-14 10:08:23 -08:00
James Douglass 0b9111f09b Adding a test for csv column conditional validity.
RE:#1509
2024-02-14 10:04:43 -08:00
James Douglass 4135eec27c Adding a test for vector field validity.
RE:#1509
2024-02-14 09:54:36 -08:00
James Douglass b5a98a465d Merge branch 'bugfix/1509-una-validation-missing-uniform-search-radius' of github.com:phargogh/invest into bugfix/1509-una-validation-missing-uniform-search-radius 2024-02-13 18:12:45 -08:00