Commit Graph

164 Commits

Author SHA1 Message Date
Emily Davis 63a3a91a58 Wind Energy: pass file path (instead of dict) to _compute_density_harvested_fields to prevent excessive debug logging 2025-01-24 13:33:04 -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
dcdenu4 e1d3e4a458 I. #1498 pass strings in test for testing 2024-03-29 13:05:20 -04:00
Doug aefa0ebe38 I. #1498 update history and test 2024-01-05 11:39:23 -05: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
Dave Fisher 3f44e18201
Merge pull request #1375 from emlys/task/1373
Move validation out of execute methods
2023-09-07 06:45:50 -07:00
Emily Soth f693dc4bd0 Merge branch 'main' into task/1373 2023-09-06 15:51:59 -07:00
Emily Soth 490b8b8851
Merge branch 'main' into task/334 2023-08-23 17:13:50 -07:00
Emily Soth 0e0c7b1bae fix a few bugs introduced in merge and update tests for #1373 2023-08-17 15:13:22 -07:00
Emily Soth 060e31b7ea fix bugs revealed by elevating warnings #334 2023-08-02 09:30:57 -07:00
Doug a543ca2ef2 I. #1054 update error message and test. 2023-08-01 10:40:27 -04:00
Emily Soth bffbb342f6 rename ARGS_SPEC to MODEL_SPEC everywhere 2022-09-27 17:10:37 -07:00
Doug af38235545 I. #811 update docstring, remove prints 2022-01-21 07:26:37 -05:00
Doug 9551eebba7 I. #811 add test and fix history typo 2022-01-20 10:36:14 -05:00
Doug e6a907af70 I. #811 remove unnused function. update docstrings
Add a test for valuation helper function.
2022-01-19 12:36:25 -05:00
emlys e22eb9bfbe remove trailing .0 s 2021-12-08 15:02:06 -08:00
emlys f9cf596183 update test data 2021-12-08 14:02:39 -08:00
emlys 07ecddb530 rename NPV output file 2021-12-08 11:41:23 -08:00
emlys 16eb6b6c8e update wind energy tests 2021-12-06 16:06:08 -08:00
emlys 8d2518fabc fix outstanding issues with wind energy 2021-09-22 21:20:32 -07:00
emlys 257183d510 Merge branch 'main' into pr-resolution 2021-09-22 15:24:12 -07:00
emlys 9a5eb04611 fix typo 2021-05-24 13:17:27 -06:00
emlys 36f5fd002a assorted changes 2021-04-30 12:13:39 -06:00
emlys 5320f112a5 remove duplicate validation from wind energy execute function 2021-04-28 15:00:39 -06:00
emlys ec6f708695 add test for new csv validation, fix wind energy bug 2021-04-28 14:53:52 -06:00
Doug a105ac7756 I. #13 update test and add comment 2021-02-10 08:46:12 -05:00
Doug acf0ccc723 Raise when AOI, Wind Data don't intersect 2021-02-08 11:12:16 -05:00
davemfish 3c1b467c77 removing a print statement 2021-01-08 06:50:40 -08:00
davemfish a90da263ce pandas fixed an issue with default float precision, so our regression data no longer needs to accomodate the old incorrect precision. 2021-01-06 13:56:01 -08:00
Doug 6cfcdc1a45 remove test code in wind tests 2020-10-20 08:45:04 -04: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
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
Emily b0a13b235e fixed wind energy test tolerance; added explanation of 1.5 value 2020-07-31 10:07:29 -07:00
Emily c6a4acffd7 reduced tolerance values to be nice round numbers 2020-07-30 16:16:22 -07:00
Emily a80ea73448 #188 use assert_allclose for all approximate comparisons 2020-07-30 10:59:53 -07:00
Doug 7645f84866 Adding vector equality assertion to utils
Adding assertion method to invest utils for vectors. This replaces all
similar functions that were defined in individual testing modules. Also
making pylinting updates.
2020-06-15 09:39:58 -04:00
Doug 98df8e4022 Setting integer numpy arrays to int32 type
This fixes a bug where Mac x64 was setting these to int64 and gdal has
no equivalent.
2020-06-04 16:14:34 -04:00
Doug ce42a28266 I. #143 linting, linting, linting 2020-05-29 10:07:07 -04:00
Doug 19bb3807c4 I #143 wave, wind energy refactored 2020-05-22 14:29:29 -04:00
Doug 44fbe5ce4d First testst refactored 2020-05-22 10:15:44 -04:00
davemfish 28a39edd64 easing precision in geometry coordinate comparison. Given the SRS in these tests, this eases precision to one-tenth of a millimeter. #95. 2020-04-28 12:32:55 -07:00
David Fisher edc682fae3 tests for Wind Energy validate and args spec. #BITBUCKET-3912. 2019-11-11 14:05:13 -08:00
James Douglass b4215ccf9a Updating Wind Energy for ARGS_SPEC, including a few related changes.
* Updated the results suffix key from ``suffix`` to ``results_suffix``
* Noted suffix change in history.
* Added ARGS_SPEC and updated validation to use it.
* Fixed a couple minor issues in validation that were exposed during
  ARGS_SPEC implementation.
* Removed deprecated Wind Energy validation tests.

RE:#BITBUCKET-3912
2019-09-30 12:25:00 -07:00
David Fisher dcb4d9e363 wind energy passing py36 and py27. #BITBUCKET-3895. 2019-07-01 10:24:59 -07:00
Joanna Lin e16b3f4531 wrap create_raster_from_vector_extents() within _create_aoi_raster(), so aoi_raster_path could be projected to target_sr_wkt. #BITBUCKET-3845 2019-02-27 16:41:26 -08:00
Joanna Lin 4b387d1a77 add multiple tests to test if validate() has accurate warning messages when arguments are wrong. #BITBUCKET-3845 2019-02-27 15:49:52 -08:00
Joanna Lin 850b060b42 remove test_remove_datasources() and call excecute() in test_val_gridpts_windprice twice the get the same test purpose. #BITBUCKET-3845 2019-02-27 10:22:27 -08:00
Joanna Lin cf24fab87e move aoi_vector_path validation when grid_points_path is provided from execute() to validate(). #BITBUCKET-3845 2019-02-26 17:48:31 -08:00
Joanna Lin e7b46c77fb add validate() to the beginning of execute() and remove test_validate(). #BITBUCKET-3845 2019-02-26 17:09:26 -08:00