Commit Graph

53 Commits

Author SHA1 Message Date
Claire Simpson b5113d651b Changed regression test values due to incorporating both cc_park calc and LULC alignment changes 2025-02-25 12:08:06 -07:00
Claire Simpson 0bbe7f308d Modified mask_cc_green_areas_op to retain nodata values from either input array and update resulting test values 2025-02-24 15:57:22 -07:00
Claire Simpson 3581cceb41 updated paths in cc test 2025-02-20 14:53:34 -07:00
Claire Simpson 99a7ca997d Fixed raster origin issue and updated affected test cc values 2025-02-19 16:03:21 -07:00
Claire Simpson 9c48472e26 cleanup 2025-02-19 10:40:05 -07:00
Claire Simpson 6e32b2438c Updated values in regression test based on new CC_park calc; linting 2025-02-18 18:03:13 -07:00
Claire Simpson 5a3b029755 HISTORY note and test for CC and CC_park 2025-02-14 18:52:58 -07:00
Emily Soth 84fe059a0e UCM: align raster inputs to LULC instead of ET0 2025-01-14 10:46:13 -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
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 Soth 059264ef6c more cleanup 2023-11-02 09:32:05 -07: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
Emily Soth e5955da32b bump pygeoprocessing to 2.4.2 and update tests to support it 2023-10-25 15:20:06 -07: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
emlys 0456107e72 update sdr, ucm tests 2021-06-15 17:34:44 -04:00
emlys 33d66a3d28 remove errant print statements and file 2021-05-14 14:26:20 -06:00
emlys 3ff7d2cbf8 tests passing through hra 2021-05-05 14:23:40 -06:00
emlys d9f5f8c2d6 get ucm tests working for valuation options 2020-11-05 13:02:39 -07:00
emlys 5094f57ff8 update ucm tests 2020-11-04 15:55:52 -07:00
Doug c3063d24c3 Bumpy shapely gt 1.7.0, gdal 3.1.2 and update test
Tests for wind energy and ucm needed updating. The need looks like it
stems from the bump in PROJ 7+ and the fixes / enhancements they've made
in dealing with projections.
2020-10-19 10:19:05 -04:00
Doug 8d1531610b Merge branch 'release/3.9' into task/reclassification-unification 2020-09-03 15:29:26 -04:00
emlys d944f27599 Merge branch 'master' into pr-resolution 2020-08-28 12:18:26 -07:00
emlys 2f6c915470 fixed minor bugs in tests that were revealed by validation change 2020-08-24 10:05:03 -07:00
Doug 6537b2cb64 I. #8 ucm now using utils reclass op 2020-08-19 10:12:19 -04:00
Doug ecf4637e6b I. #8 adding try/except message for ucm
Adding reclassificationmissingvalueserror try/except in a wrapper
function for reclassify_raster. Adding a test for this as well.
2020-08-14 13:17:16 -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 7dc053978f I. #8 checking lulc values in table ucm
Adding a check to the UCM model for required lulc values being present
in the biophysical table. Also adding a test for this.
2020-08-13 10:13:24 -04:00
James Douglass 7b4a5730da Merge branch 'master' into pr-243-resolution-on-test-ucm
Conflicts:
	tests/test_ucm.py
2020-07-27 13:28:11 -07:00
James Douglass 5eed115e64 Adding another places=4 for cross-compatibility. RE:#138 2020-07-23 16:29:00 -07:00
James Douglass f266e5c424 Adding a note about why adding places=4. RE:#138 2020-07-23 14:16:13 -07:00
James Douglass 29cb219a6e Limiting the number of places within which a number must be equal in one more UCM test. RE:#138 2020-07-23 14:13:46 -07:00
James Douglass 186fd520a9 PEP8 in UCM tests. RE:#138 2020-07-23 13:46:51 -07:00
James Douglass 602b2f05ca Only testing precision to 4 places for cross-compatibility on mac/windows. RE:#138 2020-07-23 13:43:43 -07:00
James Douglass 3b1670a23c Properly handling Cooling Coefficient weights possibly being blank. RE:#28 2020-07-21 16:07:11 -07:00
James Douglass 52b520579a Updating energy savings calculations.
This updates the UCM energy savings calculations to account for the
change in the consumption units to be not per building (of this class)
but to be kWh/deg C/m^2 for each building in the class.  This allows us
to account for classes to have defined heights, for example, or other
stranger qualities that could affect their energy consumption.

RE:#138
2020-07-21 14:43:59 -07:00
Doug ce42a28266 I. #143 linting, linting, linting 2020-05-29 10:07:07 -04: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
James Douglass b5a9bd4315 Adding inline comment about re-running the model. RE:#BITBUCKET-3769 2020-02-06 10:28:58 -08:00
James Douglass eb34ddf8e3 Correcting docstrings: SDR --> UCM. RE:#BITBUCKET-3769 2020-02-06 10:27:35 -08:00
James Douglass 39a770a293 Adding some validation coverage for building intensity. RE:#BITBUCKET-3769 2020-02-04 10:42:05 -08:00
James Douglass 0351652059 Updating WBGT values in tests. RE:#BITBUCKET-3769 2020-02-03 17:05:10 -08:00
James Douglass 38a4dd39ba Wrapping some GDAL checking in a try/finally. RE:#BITBUCKET-3769 2020-01-23 13:26:54 -08:00
James Douglass c1861f6d50 Adding a test for building intensity. RE:#BITBUCKET-3769 2020-01-23 12:35:46 -08:00
James Douglass aa7dc5aa49 Implementing conditional CC logic.
Not yet tested.  RE:#BITBUCKET-3769
2020-01-22 15:30:53 -08:00
James Douglass b953b19bcc Updating validation for new cc_method.
Biophysical table fields are optionally required depending on the state of
cc_method.  RE:#BITBUCKET-3769
2020-01-22 14:56:08 -08:00
James Douglass 8ce81237a8 Adding test for cost component of the model. RE:#BITBUCKET-3769 2020-01-16 17:00:09 -08:00
James Douglass ca290903c5 Various updates, mostly to documentation in UCM. RE:#BITBUCKET-3769 2020-01-16 13:34:23 -08:00