Commit Graph

70 Commits

Author SHA1 Message Date
Emily Soth bf1726ec88 restore compiled modules to the plugins branch 2025-05-08 14:38:09 -07:00
dcdenu4 0e5261305f Skip compiled model tests 2025-02-05 09:52:24 -05: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 Soth 0e0c7b1bae fix a few bugs introduced in merge and update tests for #1373 2023-08-17 15:13:22 -07:00
James Douglass 59cb5645ba Using the geometry name rather than geometry type.
RE:#1351
2023-07-24 15:04:39 -07:00
James Douglass e3a06d8c71 SQ fieldnames are now more tolerant of spaces and case.
RE:#1276
2023-04-07 10:57:23 -07:00
James Douglass b9dbcbbb97 Adding an assertion when the geometry type is not a point.
RE:#1245
2023-03-20 16:45:04 -07:00
James Douglass f8ef1518a3 Minor fix to logging to correct FID. 2023-02-17 22:47:56 -08:00
emlys 5c4ca2b051 fix scenic quality and validation tests 2021-12-06 12:18:22 -08:00
emlys 76ab2a25e8 consolidate validation messages into one locations 2021-09-28 17:27:44 -07:00
emlys 3ff7d2cbf8 tests passing through hra 2021-05-05 14:23:40 -06: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 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 c6bf746606 Fixing a numpy type bug and specify decimal tol 2020-06-15 13:36:07 -04: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 79fed192db A lot of test linting and keyword update to SQ
Replacing 'projection' with 'projection_wkt' in SQ for PGP updates
2020-05-29 08:34:17 -04:00
Doug 4ed0f06ce0 I. #143 scenic_quality, seaonal_water, utils 2020-05-22 15:37:47 -04:00
Doug 46b19392d5 Issue #41 cleaning up some pycodestyle things 2020-03-12 11:35:12 -04:00
David Fisher 114cba480d merged develop, updated HISTORY. #BITBUCKET-3932. 2019-12-20 12:37:48 -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 3ae616f4af replacing gtiff_creation_options with the new tuple options in scenic_quality. #BITBUCKET-3932. 2019-12-16 08:18:36 -08:00
James Douglass ed8edd9910 Updating tests for SQ to match ARGS_SPEC validation.
RE:#BITBUCKET-3912
2019-10-29 16:18:12 -07:00
James Douglass 9d27288070 Correcting SQ tests for ARGS_SPEC. RE:#BITBUCKET-3912 2019-10-08 15:01:15 -07:00
James Douglass a8c8ec9b87 Various updates for python3 and GDAL 2.4+ compatibility.
* Fixed an integer division issue (related to slice indexing)
* Fixed issues with pixel sizes and exceptions that were revealed when using an
* updated version of GDAL when testing against python3.
* Using ``zip`` instead of ``itertools.izip``.

RE:#BITBUCKET-3895
2019-07-08 14:19:16 -07:00
James Douglass 00c0d74743 Removing bonus newline. RE:#BITBUCKET-3834 2019-04-02 16:17:34 -07:00
James Douglass a89f00c2b6 Testing the last remaining uncovered exception in SQ.
RE:#BITBUCKET-3834
2019-03-28 11:04:59 -07:00
James Douglass 49baadb565 Defaulting SQ model to synchronous execution and testing for coverage.
RE:#BITBUCKET-3834
2019-03-28 10:56:32 -07:00
James Douglass 418b17c70d Updating validation and related tests for making valuation optional.
RE:#BITBUCKET-3834
2019-03-28 10:53:37 -07:00
James Douglass 15b4ace661 Adding a test for when doing SQ without valuation.
RE:#BITBUCKET-3834
2019-03-28 10:39:53 -07:00
James Douglass f6995880e6 Touching up SQ tests based on changes to the model.
RE:#BITBUCKET-3834
2019-03-27 15:59:09 -07:00
James Douglass d0843960dc Adding a test for fix to visual quality algorithm.
RE:#BITBUCKET-3834
2019-03-27 15:50:22 -07:00
James Douglass dd2460d609 SQ now uses masked, clipped DEM for values under viewpoints.
Fixes #BITBUCKET-3805
2018-09-25 11:04:14 -07:00
James Douglass b3cf219aca Prefixing viewshed test docstrings with SQ. RE:#BITBUCKET-3491 2018-08-06 16:59:26 -07:00
James Douglass 4c641c7608 Refactoring the count-and-weight function as a raster_calculator call.
I also made the SQ tests run in serial mode because it's easier to debug
issues that arise.  RE:#BITBUCKET-3491
2018-08-03 13:07:00 -07:00
James Douglass 0da44cfa19 Updating valid_pixels comparison to only be visible pixels.
Also, updating logarithmic valuation to assign a value for the viewpoint
pixels now that log(0) is actually log(1) (thanks to log(x+1).

RE:#BITBUCKET-3491
2018-08-03 10:53:52 -07:00
James Douglass b3ec9cbffd Converting valuation function log(x) to log(x+1). RE:#BITBUCKET-3491 2018-08-03 10:15:39 -07:00
James Douglass 69ccffeed7 Adding docstrings to two static methods in Scenic Quality tests.
RE:#BITBUCKET-3491
2018-07-30 16:03:28 -07:00
James Douglass 2013dccea0 Removing print statement from tests. RE:#BITBUCKET-3491 2018-07-30 15:51:46 -07:00
James Douglass a988f62be5 Inverting rasters to match how they look on disk. RE:#BITBUCKET-3491 2018-07-30 14:05:27 -07:00
James Douglass c415927ffc Refactoring viewpoints to a static test method.
RE:#BITBUCKET-3491
2018-07-30 13:31:59 -07:00
James Douglass b4f537c997 Refactoring WKT, aoi creation. RE:#BITBUCKET-3491 2018-07-30 13:22:48 -07:00
James Douglass 1cabce7c29 Specifying raster type to gdal.OpenEx. RE:#BITBUCKET-3491 2018-07-27 13:37:47 -07:00
James Douglass 1f5070477b Typos, light linting. RE:#BITBUCKET-3491 2018-07-27 10:37:32 -07:00
James Douglass ef7ec715d1 Adding an exception when all viewpoints are invalid.
Adding a test for this, plus some other coverage.

RE:#BITBUCKET-3491
2018-07-11 16:16:26 -07:00
James Douglass 6a435b557f Slight improvements to coverage. RE:#BITBUCKET-3491 2018-07-11 15:39:38 -07:00
James Douglass 3c0abcbb36 Adding a test for detecting an invalid valuation function.
RE:#BITBUCKET-3491
2018-07-10 12:28:18 -07:00
James Douglass 6ea443b1e3 Lintint, pep8, pep257 of tests.
RE:#BITBUCKET-3491
2018-07-10 12:22:10 -07:00