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
dd95ce2cb8
Added more unit tests for HQ
2025-03-31 17:48:45 -06:00
Megan Nissel
2cd5b2371b
reduce scope to validate max_dist and weight only in `validate`
2025-03-21 11:02:32 -04:00
Megan Nissel
ef04bd2d6d
add check and test for missing threat weight
2025-03-17 11:41:51 -04:00
Megan Nissel
93f1f8c45f
testing for missing max_dist value
2025-03-17 11:41:51 -04:00
Emily Davis
5749658ca9
Merge branch 'release/3.15.0' of github.com:natcap/invest into feature/1252-hq-max-dist-meters
2025-02-24 17:49:33 -07:00
Emily Davis
c624490a51
Change HQ MAX_DIST param units from km to m
2025-02-24 15:27:40 -07:00
Emily Davis
7d114f6989
Update HQ tests
2025-01-06 15:07:17 -07:00
Claire Simpson
613bd1f42f
updated history, reclassify func docstring, removed unneeded hq test elements
2024-12-09 11:10:45 -07:00
Claire Simpson
90ac6ab795
test missing LULC value in sensitivity csv
2024-12-06 15:11:20 -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
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
78e1653f1d
Update tests
2024-10-15 15:20:38 -06:00
Emily Soth
d8f8458f6d
Merge branch 'main' into feature/327
2024-03-12 09:45:41 -07:00
James Douglass
4b6f93223c
HQ validation now partially covered by expressions.
...
RE:#1509
2024-02-22 15:53:55 -08:00
Emily Soth
5ca1ec3da3
update HQ model and tests for new csv path validation
2024-01-19 15:33:19 -08:00
Emily Soth
0152fba78f
work in progress: updating tests
2024-01-18 17:30:36 -08:00
Emily Soth
bec9cc1bf4
Merge branch 'main' into task/1379
2023-11-08 16:08:36 -08:00
Emily Soth
5d5c4ef7a3
Update tests/test_habitat_quality.py
...
Co-authored-by: James Douglass <jamesdouglassusa@gmail.com>
2023-11-08 13:04:55 -08:00
Emily Soth
e5955da32b
bump pygeoprocessing to 2.4.2 and update tests to support it
2023-10-25 15:20:06 -07:00
Emily Soth
39f4aca1fa
refactor parts of read_csv_to_dataframe to new func get_validated_dataframe
2023-09-25 14:29:40 -07:00
Emily Soth
69569534fc
improve validation message when bounding boxes don't intersect #502
2023-08-21 09:25:23 -07:00
Doug
8d177219fe
I. #1104 fixing test failure. Bad variable path creation.
2023-02-27 11:18:42 -05:00
Doug
85a6d23583
I. #1104 removing commented assert. Duplicate
2023-02-27 10:06:33 -05:00
Doug
f4c25c26a2
I. #1104 updating regression values based on eye test
2023-01-12 16:57:25 -05:00
Doug
693587f7c8
I. #1093 remove redundant test
2022-11-08 09:46:33 -05:00
Doug
e2eb4f4745
I. #1093 adding test and updating args spec.
...
Adding a test that passes a threat raster and access vector of different
projections.
Setting different_projections_ok to True
2022-11-04 13:44:01 -04:00
Emily Soth
26b0916624
Merge branch 'release/3.10' into task/568
2021-11-30 10:42:14 -08:00
emlys
a457dae404
HQ tests: use assertIn rather than assertTrue(x in y)
2021-11-29 12:18:50 -08:00
Doug
359df42293
Merge pull request #732 from natcap/main
...
Merge main into release/3.10
2021-11-22 16:44:39 -05:00
Doug
cf59217268
I. #720 remove comments, fix history rst
2021-11-22 10:22:05 -05:00
Doug
f3eea41f05
I. #720 add docstring and fix tests
2021-11-18 16:55:00 -05:00
emlys
7528ce9145
remove print statements, clean up tests
2021-11-11 11:03:09 -08:00
emlys
7e59939788
move model specific validation messages to top level
2021-11-08 17:19:16 -08:00
emlys
31691cdb67
Merge branch 'release/3.10' into task/568
2021-11-03 14:28:59 -07:00
Doug
21995b4264
Merge pull request #704 from natcap/main
...
Merge main into release/3.10
2021-10-27 15:08:22 -04:00
Doug
3e55bf5e5a
I. #545 fix HQ test for bad attribute key
2021-10-26 16:21:47 -04:00
emlys
76ab2a25e8
consolidate validation messages into one locations
2021-09-28 17:27:44 -07:00
emlys
9b7b59f4f7
updating some more tests
2021-06-15 17:14:13 -04:00
Emily Soth
1682117a1d
Merge branch 'main' into task/503
2021-06-10 16:50:09 -04:00
emlys
8d1fac6e2e
update test expected message
2021-05-27 12:43:28 -06:00
emlys
da4cc9851a
clean up
2021-05-14 17:42:25 -06:00
emlys
a9c18542e2
tests passing thru globio
2021-05-05 17:05:56 -06:00
Doug
d0cf996172
I. #8 Fixing test and removing whitespace
2020-09-11 10:46:42 -04:00
Doug
8d1531610b
Merge branch 'release/3.9' into task/reclassification-unification
2020-09-03 15:29:26 -04:00
emlys
b63465e5e4
fix habitat quality bug
2020-08-31 10:44:49 -07:00
Doug
e50055463d
I. #8 HQ test results update from convolve change
...
This is a long story. With the PGP 2.1 release a bug was introduced for
convolution. 2.1 was needed for this PR for
`ReclassificationMissingValuesError` addition to `reclassify_raster`.
This convolution bug was fixed in a post revision of 2.1 and to test it
I used Habitat Quality. However, HQ was using an invalid call to
`convolve_2d` ( see issue #270 ). Updating HQ caused HQ tests to be
different, hence this test result refactor.
2020-08-28 09:21:58 -04:00
Doug
d7d4d0e277
I. #8 check reclassify for HQ and test.
...
Removing a function and chunk of code from HQ that was doing its own
checking of whether sensitivity values matches lulc raster values. This
is now done through the utils function similar to other models.
Cleaning up some tests
2020-08-25 14:17:10 -04:00