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 Soth
0a9c9c629e
remove redundant validation and tests #1374
2023-10-17 17:02:18 -07:00
Emily Soth
bffbb342f6
rename ARGS_SPEC to MODEL_SPEC everywhere
2022-09-27 17:10:37 -07:00
emlys
e53315bf81
clean up
2021-12-06 12:51:08 -08:00
emlys
30fb66ee31
update wave energy tests and sample data with new arg name
2021-12-06 12:45:34 -08:00
emlys
5c4ca2b051
fix scenic quality and validation tests
2021-12-06 12:18:22 -08:00
emlys
7939adde50
more clean up
2021-11-03 16:39:36 -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
a260634dab
use sets for options where appropriate, fix tests
2021-06-28 14:08:11 -04:00
emlys
33d66a3d28
remove errant print statements and file
2021-05-14 14:26:20 -06:00
emlys
b39951924c
all tests passing except CV
2021-05-14 13:48:20 -06:00
emlys
3ff7d2cbf8
tests passing through hra
2021-05-05 14:23:40 -06:00
emlys
80de899ebc
fix wave energy and tests
2021-04-28 16:49:02 -06:00
Doug
1afb83e788
I. #476 make assert vector more robust
2021-03-02 15:22:46 -05:00
Doug
a6d83e619d
I. #476 skip tests for geos/proj updates
2021-02-09 11:59:09 -05:00
Emily
959d53c803
resolved merge conflicts
2020-07-31 15:28:06 -07:00
Emily
a80ea73448
#188 use assert_allclose for all approximate comparisons
2020-07-30 10:59:53 -07: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
85493dbbcc
I. #143 poll, rec, reporting, scenario refactor
2020-05-26 09:00:47 -04:00
Doug
19bb3807c4
I #143 wave, wind energy refactored
2020-05-22 14:29:29 -04:00
Doug
db3f879d93
Update issue #27 swap out coordinate tranform
...
Using utils coordinate transform function.
2020-02-21 15:27:49 -05:00
David Fisher
114cba480d
merged develop, updated HISTORY. #BITBUCKET-3932.
2019-12-20 12:37:48 -08:00
David Fisher
7056699c49
replaced the Wave Energy raster percentile algorithm with the pygeoprocessing one. #BITBUCKET-3932.
2019-12-19 06:37:39 -08:00
James Douglass
9a3b580007
Correcting failing tests.
...
Tests were mostly failing from updated error messages. There were
a few more interesting issues related to updates to recent updates
to ARGS_SPEC for at least one model (SDR). RE:#BITBUCKET-3912
2019-12-17 10:33:59 -08:00
David Fisher
fef9d4486c
tests for Wave Energy validate function. #BITBUCKET-3912.
2019-11-11 11:51:49 -08:00
James Douglass
e1b0d09c87
Various updates to Wave Energy related to ARGS_SPEC.
...
* Added ARGS_SPEC and reimplemented validation with it.
* Corrected an issue with the default suffix spec in validation.py
* Updated Wave Energy tests involving validation according to
the new error messages
* Converted the Wave Energy suffix key to "results_suffix"
(consistent with other InVEST models).
* Removed an accidental duplicate input for the second results
suffix in the Wave Energy UI
* Noting changes in HISTORY.
RE:#BITBUCKET-3912
2019-09-30 11:05:44 -07:00
David Fisher
d878e3fcf9
wave energy tests passing py36 and py27. #BITBUCKET-3895.
2019-06-28 15:48:54 -07:00
David Fisher
28bf2528bb
skipping an NDR test until we decide on resolution to #BITBUCKET-3899. #BITBUCKET-3898.
2019-06-27 16:45:00 -07:00
David Fisher
0cb2f627a3
mask_raster replaces warp_raster calls that were only being used for the deprecated CUTLINE option. #BITBUCKET-3898.
2019-06-27 15:27:40 -07:00
Joanna Lin
2c606cabb5
add test_validate_bad_aoi_format() to test script. #BITBUCKET-3846
2019-02-28 12:01:15 -08:00
Joanna Lin
eb16700fba
add test_incorrect_analysis_area_path_value() and test_validate_keys_missing_values(). #BITBUCKET-3846
2019-02-28 11:34:06 -08:00
Joanna Lin
9b95c0a1b9
reformat test script. #BITBUCKET-3846
2019-02-28 10:54:44 -08:00
Joanna Lin
49c19aed33
get _assert_point_vectors_equal() back because pygeoprocessing.testing.assert_vectors_equal() raises error on 'LandPts_prj.shp' even though the geometries are the same as test data. #BITBUCKET-3846
2019-02-21 15:17:25 -08:00
Joanna Lin
404085f59a
instead of passing osr spatial reference object to taskgraph, pass it in wkt format. #BITBUCKET-3846
2019-02-21 14:42:02 -08:00
Joanna Lin
e26f8e0f5f
join on line 356 because we need target pixel size for creating new rasters. #BITBUCKET-3846
2019-02-21 12:27:10 -08:00
Joanna Lin
47cc9c6286
replace _assert_point_vectors_equal() with pygeoprocessing.testing.assert_vectors_equal() in test. #BITBUCKET-3846
2019-02-12 13:05:45 -08:00
Joanna Lin
7e1f5e111c
reformat docstrings. #BITBUCKET-3846
2019-02-12 13:00:55 -08:00
Joanna Lin
df02bf551d
add `n_workers` to args docstring and tests. #BITBUCKET-3846
2019-02-11 14:25:25 -08:00
Joanna Lin
2d085d0a58
move wave_energy.py to natcap.invest, change import path in tests, and update UI key args. see #BITBUCKET-3806
2018-11-09 15:06:26 -08:00
Joanna Lin
c74837ce4c
use string indexing in create_value_ranges and move the function to the one place where it's needed. delete test_create_value_range. see #BITBUCKET-3806
2018-11-07 13:42:05 -08:00
Joanna Lin
6c9776c79e
remove pdb import. see #BITBUCKET-3806
2018-11-02 09:52:22 -07:00
Joanna Lin
fb05a6500d
fix npv too little pixels & projected differently from other output raster issues. see #BITBUCKET-3806
2018-11-01 16:59:01 -07:00
Joanna Lin
ca06039121
rename test function name. see #BITBUCKET-3806
2018-10-31 15:22:20 -07:00
Joanna Lin
29f1047a38
add valid pixel mask to counts array. see #BITBUCKET-3806
2018-10-30 17:22:18 -07:00
Joanna Lin
69a8be04ea
resolve the start_value issue for negative NPV rasters. also rename ' - ' to ' to ' to avoid range calculation in output csv files. see #BITBUCKET-3806
2018-10-30 15:50:38 -07:00
Joanna Lin
9aaeb11674
use rtree to find vectors intersected with raster block in _index_raster_value_to_point_vector(). see #BITBUCKET-3806
2018-10-30 13:39:51 -07:00
Joanna Lin
99076f5765
underscore before internal function names. see #BITBUCKET-3806
2018-10-26 15:16:07 -07:00
Joanna Lin
c6c6f7bbe0
rename shape to vector and dataset to raster. see #BITBUCKET-3806
2018-10-26 10:51:26 -07:00