Commit Graph

55 Commits

Author SHA1 Message Date
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 73f283feaf Handle & display error on save datastack failure 2024-09-16 16:22:26 -06:00
Emily Davis cf56816a32 Update Python paramset tests 2024-09-16 14:18:19 -06:00
Emily Soth 6e4549412b Merge branch 'main' into task/1379 2023-11-03 11:19:48 -07:00
Emily Soth e5f7d13cbc get_datastack_info test: don't overwrite entire workspace #1308 2023-10-18 12:07:21 -07:00
Emily Soth 9cd6a4c0e4 update tests #1308 2023-10-16 16:43:53 -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 490b8b8851
Merge branch 'main' into task/334 2023-08-23 17:13:50 -07:00
Emily Soth 060e31b7ea fix bugs revealed by elevating warnings #334 2023-08-02 09:30:57 -07:00
Emily Soth 73fbcadf43 update all models and tests to use new version of read_csv_to_dataframe 2023-07-06 12:44:15 -07:00
Emily Soth 8c45efc7ed missed some to_lower args #1327 2023-06-20 14:28:48 -07:00
Emily Soth 2f780458c5 remove build_lookup_from_csv and consolidate into read_csv_to_dataframe #1327 2023-06-15 15:50:36 -07:00
James Douglass 5da83cd343 Using the new function everywhere I can find it. RE:#1113 2022-11-07 17:18:15 -08:00
James Douglass 07e827c841 Renaming logfile to log.txt. RE:#342 2022-01-07 17:35:21 -08:00
James Douglass f914b7979b Testing the directory contents instead of number of files.
RE:#342
2022-01-07 17:33:24 -08:00
James Douglass 1d85c86d84 Specifically excluding the workspace_dir parameter. RE:#342 2022-01-07 16:01:23 -08:00
James Douglass dbc45a13e5 Skipping all model tests.
The model data are not generally cloned in GHA, but it's still useful to
keep those tests around to make sure that the models can run in the way
we expect.  RE:#342
2021-12-15 09:17:04 -08:00
James Douglass 9ece23335f Test cleanup and slight refactor. RE:#342 2021-12-14 15:26:17 -08:00
James Douglass 338c7d669e Handling case where CSV columns not defined in ARGS_SPEC.
RE:#342
2021-12-14 15:03:27 -08:00
James Douglass 88ef5de548 Removing a bunch of deprecated tests. RE:#342 2021-12-14 12:35:15 -08:00
James Douglass f3f3c36bda Testing nonspatial files.
This new test rolls in a test for a primitive file and a whole directory
of files all into one. RE:#342
2021-12-14 12:33:26 -08:00
James Douglass d2b09bce54 Skipping filesystem paths that are empty but in args.
RE:#342
2021-12-14 07:59:23 -08:00
James Douglass 250476871c Updating a test for including vectors in archives. RE:#342 2021-12-13 16:56:53 -08:00
James Douglass 165c2d4951 Refactoring test to work on single and multipart rasters.
RE:#342
2021-12-13 16:54:51 -08:00
James Douglass 0f5cf12fa8 Adding an updated test for a multipart raster. RE:#342 2021-12-13 16:51:59 -08:00
James Douglass b308e77ef7 Adding a simple test for datastack archive. RE:#342 2021-12-13 16:48:55 -08:00
James Douglass 255bf9d506 Minor updates to datastack. RE:#342 2021-12-10 15:31:00 -08:00
James Douglass 4770a4370b Testing datastacks on 2 models. RE:#342 2021-12-09 18:00:04 -08:00
James Douglass 19e93cd6d2 Minor tweaks to extract a functional datastack archive.
RE:#342
2021-12-09 16:54:35 -08:00
Doug b4e803a517 I. #52 separate mac and windows test 2021-02-24 11:53:10 -05:00
Doug 1fd9cb7293 I. #52 fix empty string bug 2021-02-24 10:52:01 -05:00
Doug 29b251fa9a I. #52 fix test 2021-02-24 09:59:51 -05:00
Doug 570f15d9c2 I. #52 add a test 2021-02-24 09:51:46 -05: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 f71858b412 I. #143 linting tests, remove pgp.testing
Remove pgp.testing from fisheries_io.py.

Updating history

Lots of test linting
2020-05-28 12:01:32 -04:00
Doug b4067929e7 I. #143 datastack, delineate, finfish, globio test 2020-05-26 16:36:24 -04:00
Doug f1363dcb26 Issue #41 remove six and u'' 2020-03-18 09:38:08 -04:00
James Douglass 26ee2bcc15 Improving parsing for true/false strings in JSON.
RE:#BITBUCKET-3912
2019-10-29 17:07:24 -07:00
Joanna Lin 6f51307696 removed temp path. see #BITBUCKET-3782. 2018-09-06 09:48:58 -07:00
Joanna Lin 1682d902c5 modified DATA_DIR path. see #BITBUCKET-3793. 2018-08-29 13:21:11 -07:00
Joanna Lin 2879a9e326 modified data path so they're all in the same folder. see #BITBUCKET-3793. 2018-08-29 13:20:39 -07:00
Joanna Lin 843196d40a created new branch. see #BITBUCKET-3793. 2018-08-29 13:10:01 -07:00
James Douglass 6a8ae1cb2d Replacing some homebrewed type-casting with ast.literal_eval.
Discovered after encountering an issue loading a parameter set from a
logfile.  Turns out the function for extracting parameters from a
logfile wasn't converting booleans to the right type.  This is now
tested.  RE:#BITBUCKET-3702.
2017-12-14 15:12:14 -08:00
James Douglass 9910e070c4 Adding a test for mixed paths with parameter sets.
RE:#BITBUCKET-3698
2017-12-01 17:48:24 -08:00
James Douglass 59716c29d4 Adding a test for mixed filepaths and always storing linux paths in archives.
RE:#BITBUCKET-3687
2017-11-28 11:41:09 -08:00
James Douglass ab1b5a2aec Correcting docstrings and PEP8. RE:#BITBUCKET-3685 2017-11-20 11:20:01 -08:00
James Douglass 6a358a9593 Supporting IUI model logfiles.
If someone tries to load a set of parameters from a logfile, the UI
still presents the model name mismatch dialog, just with an 'UNKNOWN'
label instead of the model name.

The related logfile loading functionality is now tested.  RE:#BITBUCKET-3685
2017-11-17 22:27:05 -08:00
James Douglass d0c51380c6 Renaming datastack functions and reordering parameters for consistency.
RE:#BITBUCKET-3685
2017-11-17 20:45:22 -08:00
James Douglass daa42be943 Working towards a more consistent format for datastacks.
* Parameter files within datastack archives are now named with an
  extension consistent with other parameter sets.
* Updating the order of ParameterSet namedtuples to make more logical
  sense.
* Parameter file and datastack extensions are now defined as
  module-level variables.

RE:#BITBUCKET-3685
2017-11-17 20:25:24 -08:00
James Douglass 0eb67e03b9 Adding docstring for get_datastack_info() and a couple tests.
RE:#BITBUCKET-3685
2017-11-17 16:14:14 -08:00