Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into feature/routing-refactor #1670

Merged
merged 150 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
e9f1e6c
Allows 'Open Workspace' to open workspace whenever possible, even if …
emilyanndavis Aug 21, 2024
c182f29
Adds/updates tests
emilyanndavis Aug 22, 2024
c505209
Adds "error opening workspace" modal & updates tests
emilyanndavis Aug 23, 2024
d824e97
Removes unneeded log messages & updates HISTORY
emilyanndavis Aug 23, 2024
2c7e4f8
Updates directory permissions validation to use an EAFP approach
emilyanndavis Aug 26, 2024
f03191f
Closes temp file to ensure auto cleanup; reverts chdir operation to p…
emilyanndavis Aug 27, 2024
789ca5f
Rewrites write permission check to avoid using tempfile module
emilyanndavis Aug 27, 2024
6ab5e43
Skip directory permissions unit tests on Windows; update HISTORY
emilyanndavis Aug 28, 2024
3276d21
Simplifies 'open workspace' behavior, omitting selection of logfile
emilyanndavis Aug 29, 2024
210b505
Correcting bare excepts, and other PEP8 cleanup
emilyanndavis Sep 5, 2024
4b39db1
Merge pull request #1620 from emilyanndavis/bugfix/1599-prevent-reado…
davemfish Sep 5, 2024
0f7dbcf
Merge branch 'main' of github.com:natcap/invest into bugfix/1598-impr…
emilyanndavis Sep 5, 2024
ee148ad
Fixing rst formatting
emilyanndavis Sep 5, 2024
0846c72
Removes openWorkspaceDir helper function
emilyanndavis Sep 5, 2024
c056170
Merge pull request #1618 from emilyanndavis/bugfix/1598-improved-erro…
davemfish Sep 5, 2024
99eefed
Uncommenting the pyinstaller version cap RE:#1622
phargogh Sep 10, 2024
9eb8c88
Forgot to comment out a comment. RE:#1622
phargogh Sep 10, 2024
6bd3d0e
Adding a missing hidden import on mac osx. RE:#1622
phargogh Sep 10, 2024
7a00f65
Add twine check and add README_PYTHON.rst to doc8 linting
emilyanndavis Sep 10, 2024
948806c
Adding another hidden import. RE:#1622
phargogh Sep 10, 2024
cef709f
Merge pull request #1624 from phargogh/bugfix/1622-autotest-failing-o…
davemfish Sep 10, 2024
49ec5c4
Moves twine install to setup_env step
emilyanndavis Sep 10, 2024
2eee3c3
Merge pull request #1625 from emilyanndavis/1582-gh-action-check-long…
phargogh Sep 10, 2024
6b9d56c
Copies existing fields in UFRM source aoi vector to target vector
emilyanndavis Sep 10, 2024
2797c4c
Update HISTORY.rst
emilyanndavis Sep 11, 2024
1bbbfb2
Moving multiprocessing.freeze_support() to __main__.py. RE:#1622
phargogh Sep 11, 2024
ad36f89
Commenting out the pyinstaller constraint to re-trigger the multiproc…
phargogh Sep 11, 2024
63d233f
Forcing autotest to run. RE:#1622
phargogh Sep 11, 2024
fe870c7
Restoring conditional for autotest. RE:#1622
phargogh Sep 12, 2024
dd7940d
Updating to v2 of gcloud auth, per a warning in the GHA logs. RE:#1622
phargogh Sep 12, 2024
6dd4bab
Updating to v2 of setup-gcloud, per a warning in the GHA logs. RE:#1622
phargogh Sep 12, 2024
5d4d79f
Updating to checkout@v4, per GHA warning. RE:#1622
phargogh Sep 12, 2024
a76a9bb
Updating to setup-python@v5, per GHA warning. RE:#1622
phargogh Sep 12, 2024
d6476cc
Updating to upload-artifact@v4, per GHA warning. RE:#1622
phargogh Sep 12, 2024
d2cdbfb
Merge branch 'main' into bugfix/1622-autotest-failing-on-main
phargogh Sep 12, 2024
f52619e
Reset relativePaths to false each time modal opens, to sync w/ checkb…
emilyanndavis Sep 12, 2024
db9f4ce
Update HISTORY.rst
emilyanndavis Sep 12, 2024
1f499a0
Renaming the sdist artifact for OS/python combination. RE:#1622
phargogh Sep 12, 2024
78e7425
Merge branch 'bugfix/1622-autotest-failing-on-main' of github.com:pha…
phargogh Sep 12, 2024
3c1221e
Merge pull request #1628 from emilyanndavis/bugfix/1609-workbench-sav…
davemfish Sep 12, 2024
af8ce8b
Merge pull request #1627 from phargogh/bugfix/1622-autotest-failing-o…
davemfish Sep 12, 2024
178e39e
Handle & display error on save paramset failure
emilyanndavis Sep 13, 2024
cf56816
Update Python paramset tests
emilyanndavis Sep 16, 2024
73f283f
Handle & display error on save datastack failure
emilyanndavis Sep 16, 2024
35ee58f
Update React tests to cover save alerts
emilyanndavis Sep 17, 2024
ec5f90e
Update HISTORY
emilyanndavis Sep 17, 2024
f8f8890
Increase timeout for archiveDatastack alert test
emilyanndavis Sep 17, 2024
3294e6a
Implementing a function to guarantee that the LULC has a nodata value.
phargogh Sep 19, 2024
eca7a62
Guaranteeing that the nodata value is out of range. RE:#1293
phargogh Sep 19, 2024
b6339e6
Noting change in HISTORY. RE:#1293
phargogh Sep 19, 2024
e6eb1a0
Adding a test for when the LULC has no nodata value. RE:#1293
phargogh Sep 19, 2024
3ec1485
Update UFRM to use CreateCopy when generating summary vector
emilyanndavis Sep 30, 2024
51660ad
Merge branch 'main' of github.com:natcap/invest into bugfix/1600-ufrm…
emilyanndavis Sep 30, 2024
94f7f00
Cleaning up a conditional. RE:#1293
phargogh Oct 1, 2024
436ec8e
Use reprojected access vector in rasterization task
emilyanndavis Oct 4, 2024
e7ea91b
update SDR variable names and correct typo in docstring #1629
emlys Oct 7, 2024
759cb83
Update HISTORY
emilyanndavis Oct 7, 2024
bfff17b
Remove unneeded error pass-through and unneeded else blocks
emilyanndavis Oct 7, 2024
1d592d0
Change duration of save alerts to 4s, and update documentation for se…
emilyanndavis Oct 7, 2024
3f0cd82
Remove extra whitespace & update comment
emilyanndavis Oct 7, 2024
16737e9
Merge pull request #1637 from emilyanndavis/bugfix/1615-hq-reprojecte…
dcdenu4 Oct 8, 2024
5458781
Use ESRI SHP driver for reprojections to avoid off-by-one scenario wh…
emilyanndavis Oct 8, 2024
91e10fb
Merge pull request #1638 from emlys/task/1629
dcdenu4 Oct 8, 2024
b131848
Merge branch 'main' of github.com:natcap/invest into bugfix/1600-ufrm…
emilyanndavis Oct 8, 2024
2ab42a9
Update conf.py to fix RTD build
emilyanndavis Oct 8, 2024
0f45a5c
Remove call to deprecated get_html_theme_path
emilyanndavis Oct 8, 2024
28b9c3d
Remove recently added code to see if we truly need it
emilyanndavis Oct 8, 2024
453355a
Merge branch 'main' of https://github.com/natcap/invest
phargogh Oct 8, 2024
0ff560b
Removing numpy version cap that prevented numpy 2 installation. RE:#1641
phargogh Oct 8, 2024
5e7df94
Adding note to HISTORY. RE#1641
phargogh Oct 8, 2024
33bf031
Merge pull request #1640 from emilyanndavis/1639-read-the-docs-build-…
phargogh Oct 8, 2024
87e8ba7
Merge branch 'main' of github.com:natcap/invest into bugfix/1608-cros…
emilyanndavis Oct 8, 2024
3a4a4c7
Merge pull request #1631 from phargogh/bugfix/1293-allow-lulc-to-not-…
phargogh Oct 8, 2024
a96fb1b
Merge branch 'main' into task/1641-update-for-numpy-2
phargogh Oct 8, 2024
e1a7021
Merge branch 'main' of https://github.com/natcap/invest into task/164…
phargogh Oct 8, 2024
5117e79
Merge branch 'task/1641-update-for-numpy-2' of github.com:phargogh/in…
phargogh Oct 8, 2024
d8071cd
Merge branch 'main' of https://github.com/natcap/invest
phargogh Oct 8, 2024
aea2b7c
Merge pull request #1626 from emilyanndavis/bugfix/1600-ufrm-preserve…
emlys Oct 9, 2024
1b56a55
Merge branch 'main' of https://github.com/natcap/invest
phargogh Oct 10, 2024
ed8f2b3
Merge branch 'main' of github.com:natcap/invest into bugfix/1608-cros…
emilyanndavis Oct 10, 2024
670cb7d
Trying to lfs-checkout to the right revision. RE:#1641
phargogh Oct 10, 2024
56eb76d
Printing the subwatersheds vector for debugging. RE:#1641
phargogh Oct 10, 2024
595db95
Attempting to read the binary file before printing. RE:#1641
phargogh Oct 10, 2024
3c12306
Restoring autovalidate script to its prior state. RE:#1641
phargogh Oct 10, 2024
5d42450
Capping GDAL to less than 3.9 to see if that fixes the weird opening …
phargogh Oct 10, 2024
873e780
Merge branch 'main' of https://github.com/natcap/invest into task/164…
phargogh Oct 10, 2024
e550127
Capping the gdal version as an experiment. RE:#1641
phargogh Oct 10, 2024
632d9ba
Double-checking paths are as we expect them
phargogh Oct 10, 2024
82d81ab
Using logging to record debug info. RE:#1641
phargogh Oct 11, 2024
a9199a6
Updating exception handling for rasters in validation. RE:#1645
phargogh Oct 11, 2024
f3137f6
Adding a context manager for GDAL configuration options.
phargogh Oct 11, 2024
1d9d6de
Adding some debugging in SWY. RE:#1645
phargogh Oct 11, 2024
ce88ef1
Correcting a test filepath in SWY. RE:#1645
phargogh Oct 11, 2024
2246ecd
Noting the change to FCEE in HISTORY. RE:#1645
phargogh Oct 11, 2024
b978f36
Fixing RST syntax. RE:#1645
phargogh Oct 11, 2024
f82f01d
Restrict pygeoprocessing to see if this the issue.
dcdenu4 Oct 11, 2024
232ca0e
Merge pull request #1630 from emilyanndavis/bugfix/1608-cross-drive-r…
dcdenu4 Oct 14, 2024
844efbd
Output HQ rarity values to CSV (in addition to raster)
emilyanndavis Oct 14, 2024
3f79234
Merge pull request #1647 from dcdenu4/bugfix/GHA-failing-windows-38-3…
phargogh Oct 15, 2024
20f179c
Bumping pygeoprocessing requirement to at least 2.4.6 RE:#1645
phargogh Oct 15, 2024
184f5c6
Merge branch 'main' of https://github.com/natcap/invest into bugfix/1…
phargogh Oct 15, 2024
751c751
Sort CSV output by LULC code
emilyanndavis Oct 15, 2024
ec61361
Remove unused lines
emilyanndavis Oct 15, 2024
8c1dbaa
Add docstring & update HISTORY
emilyanndavis Oct 15, 2024
cda9da8
Merge pull request #1646 from phargogh/bugfix/1645-gdal-exceptions-in…
davemfish Oct 15, 2024
8ee5f80
Merge branch 'main' of https://github.com/natcap/invest into task/164…
phargogh Oct 15, 2024
c28041c
Handling numpy 2 build requirements in pyproject.toml. RE:#1641
phargogh Oct 15, 2024
e7c7c1a
Correcting a toml syntax issue. RE:#1641
phargogh Oct 15, 2024
78e1653
Update tests
emilyanndavis Oct 15, 2024
dc63302
Bumping the UG repo rev for RST syntax.
phargogh Oct 15, 2024
e711300
Adding a numpy>2 constraint for testing our builds. RE:#1641
phargogh Oct 15, 2024
f229373
Removing the GDAL upper bound for numpy2 compatibility. RE:#1641
phargogh Oct 15, 2024
9fdb381
Removing a no-longer-needed GDAL constraint. RE:#1641
phargogh Oct 15, 2024
b49dea2
Removing numpy>2 constraint so that environments will resolve on pyth…
phargogh Oct 15, 2024
206c8f0
Converting numpy.in1d to numpy.isin for numpy2 compatibility. RE:#1641
phargogh Oct 15, 2024
a43131a
Updating UFRM for numpy2 compatibility.
phargogh Oct 16, 2024
98904f3
Updating UCM tests for numerical outputs.
phargogh Oct 16, 2024
8f13be5
Fixing an exception related to numpy types.
phargogh Oct 16, 2024
41fcb64
Converting numpy types to python types for numpy2.
phargogh Oct 16, 2024
b250662
Converting types for numpy2 migration.
phargogh Oct 16, 2024
ab90c46
Updating FCEE for numpy2 compatibility.
phargogh Oct 16, 2024
63fb888
Using assert_allclose for better numerical comparisons.
phargogh Oct 16, 2024
292c3e2
Cleaning up misc. code from debugging. RE:#1641
phargogh Oct 16, 2024
89d236b
Removing code left over from debugging.
phargogh Oct 16, 2024
75107e7
Clarifying intent in pyproject.toml
phargogh Oct 16, 2024
c163f48
Update HQ model spec
emilyanndavis Oct 16, 2024
30db861
Update HQ model spec with units
emilyanndavis Oct 16, 2024
209d0b6
Merge branch 'main' of github.com:natcap/invest into enhancement/721-…
emilyanndavis Oct 16, 2024
ca46378
Update HQ model spec with more units
emilyanndavis Oct 16, 2024
62c808b
Merge pull request #1642 from phargogh/task/1641-update-for-numpy-2
dcdenu4 Oct 16, 2024
926c1ae
Update ug revision to match what's on main
emilyanndavis Oct 16, 2024
e809edd
Update column name, comments, docstring
emilyanndavis Oct 18, 2024
93eddac
Use csv.writer to generate CSV output
emilyanndavis Oct 18, 2024
c56523b
Update HQ rarity CSV test
emilyanndavis Oct 18, 2024
0b35f58
Merge pull request #1649 from emilyanndavis/enhancement/721-hq-rarity…
dcdenu4 Oct 21, 2024
e1698ab
move a test to be near other related tests. #1657
davemfish Oct 22, 2024
2b956f9
fixed a shapely 2.0 incompatibility; modified a test to cover it. #1657
davemfish Oct 22, 2024
b5a681b
reverting a change for debugging. #1657
davemfish Oct 22, 2024
9973dad
Merge pull request #1658 from davemfish/bugfix/CV-1657-multilinestring
emilyanndavis Oct 22, 2024
7846c2b
Updating Scripting page of the API docs.
phargogh Oct 23, 2024
bcf88fc
Update doc/api-docs/scripting.rst
phargogh Oct 23, 2024
0287cb7
Improving section title per @emlys 's suggestion.
phargogh Oct 23, 2024
c6ba4cc
Update sample data revision hash
emilyanndavis Oct 23, 2024
4441d59
Update validation.py to avoid SyntaxError
emilyanndavis Oct 24, 2024
4a4d6b7
Merge pull request #1661 from phargogh/bugfix/1660-update-scripting-a…
emlys Oct 24, 2024
db395d3
Update with Python raw string notation
emilyanndavis Oct 24, 2024
f7c5393
Merge pull request #1664 from emilyanndavis/bugfix/1663-validation-py…
phargogh Oct 24, 2024
996ccd8
Merge branch 'main' of github.com:natcap/invest into task/1146-update…
emilyanndavis Oct 24, 2024
e6bcf8a
Merge pull request #1667 from emilyanndavis/task/1146-update-sample-d…
dcdenu4 Oct 28, 2024
d7d5210
Merge branch 'main' into merge-main
emlys Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 35 additions & 32 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
name: Check for syntax errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}

Expand All @@ -46,13 +46,13 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

check-history-rst-syntax:
name: Check HISTORY RST syntax
check-rst-syntax:
name: Check RST syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Set up python
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Lint with doc8
run: |
# Skip line-too-long errors (D001)
python -m doc8 --ignore D001 HISTORY.rst
python -m doc8 --ignore D001 HISTORY.rst README_PYTHON.rst

run-model-tests:
name: Run model tests
Expand All @@ -75,7 +75,7 @@ jobs:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

Expand Down Expand Up @@ -127,27 +127,27 @@ jobs:
run: make test

- name: Upload wheel artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Wheel for ${{ matrix.os }} ${{ matrix.python-version }}
path: dist

- name: Upload conda env artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: Conda Env for ${{ matrix.os }} ${{ matrix.python-version }}
path: conda-env.txt

- name: Authenticate GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/auth@v0
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACC_KEY }}

- name: Set up GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2

- name: Deploy artifacts to GCS
if: github.event_name != 'pull_request'
Expand All @@ -162,15 +162,15 @@ jobs:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
os: [windows-latest, macos-13]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

- uses: ./.github/actions/setup_env
with:
python-version: ${{ matrix.python-version }}
requirements-files: requirements.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }}
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }} twine

- name: Build source distribution
run: |
Expand All @@ -193,9 +193,12 @@ jobs:
# natcap.invest from source and that it imports.
python -c "from natcap.invest import *"

- uses: actions/upload-artifact@v3
- name: Check long description with twine
run: twine check $(find dist -name "natcap[._-]invest*")

- uses: actions/upload-artifact@v4
with:
name: Source distribution
name: Source distribution ${{ matrix.os }} ${{ matrix.python-version }}
path: dist

# Secrets not available in PR so don't use GCP.
Expand All @@ -204,13 +207,13 @@ jobs:
# different extensions)
- name: Authenticate GCP
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
uses: google-github-actions/auth@v0
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACC_KEY }}

- name: Set up GCP
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2

- name: Deploy artifacts to GCS
if: github.event_name != 'pull_request' && matrix.os == 'macos-13' && matrix.python-version == env.LATEST_SUPPORTED_PYTHON_VERSION
Expand All @@ -221,7 +224,7 @@ jobs:
runs-on: windows-latest
needs: check-syntax-errors
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

Expand Down Expand Up @@ -252,7 +255,7 @@ jobs:

steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

Expand Down Expand Up @@ -309,7 +312,7 @@ jobs:
workspace-path: ${{ github.workspace }}
binary-extension: exe
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

Expand Down Expand Up @@ -366,13 +369,13 @@ jobs:

- name: Authenticate GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/auth@v0
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACC_KEY }}

- name: Set up GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2

- name: Build Workbench (PRs)
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -441,20 +444,20 @@ jobs:

- name: Upload workbench binary artifact
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Workbench-${{ runner.os }}-binary
path: workbench/dist/*.${{ matrix.binary-extension }}

- name: Upload user's guide artifact (Windows)
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: InVEST-user-guide
path: dist/InVEST_*_userguide.zip

- name: Upload workbench logging from puppeteer
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ runner.os }}_puppeteer_log.zip'
Expand All @@ -473,7 +476,7 @@ jobs:

- name: Upload workspace on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: InVEST-failed-${{ runner.os }}-workspace
path: ${{ matrix.workspace-path}}
Expand All @@ -483,11 +486,11 @@ jobs:
needs: check-syntax-errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}

Expand All @@ -498,20 +501,20 @@ jobs:
- run: make sampledata sampledata_single

- name: Upload sample data artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: InVEST-sample-data
path: dist/*.zip

- name: Authenticate GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/auth@v0
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_SERVICE_ACC_KEY }}

- name: Set up GCP
if: github.event_name != 'pull_request'
uses: google-github-actions/setup-gcloud@v0
uses: google-github-actions/setup-gcloud@v2

- name: Deploy artifacts to GCS
if: github.event_name != 'pull_request'
Expand Down
43 changes: 42 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,49 @@

Unreleased Changes
------------------
* General
* InVEST has been updated to build against numpy 2.
https://github.com/natcap/invest/issues/1641
* Updating validation to handle a change in exceptions raised by GDAL in
``pygeoprocessing.get_raster_info`` and
``pygeoprocessing.get_vector_info``.
https://github.com/natcap/invest/issues/1645
* The scripting page of the InVEST API documentation has been updated to
reflect changes in how InVEST is installed on modern systems, and also to
include images of the InVEST workbench instead of just broken links.
https://github.com/natcap/invest/issues/1660
* Workbench
* Several small updates to the model input form UI to improve usability and visual consistency (https://github.com/natcap/invest/issues/912)
* Several small updates to the model input form UI to improve usability
and visual consistency (https://github.com/natcap/invest/issues/912).
* Fixed a bug that caused the application to crash when attempting to
open a workspace without a valid logfile
(https://github.com/natcap/invest/issues/1598).
* Fixed a bug that was allowing readonly workspace directories on Windows
(https://github.com/natcap/invest/issues/1599).
* Fixed a bug that, in certain scenarios, caused a datastack to be saved
with relative paths when the Relative Paths checkbox was left unchecked
(https://github.com/natcap/invest/issues/1609).
* Improved error handling when a datastack cannot be saved with relative
paths across drives (https://github.com/natcap/invest/issues/1608).
* Coastal Vulnerability
* Fixed a regression where an AOI with multiple features could raise a
TypeError after intersecting with the landmass polygon.
https://github.com/natcap/invest/issues/1657
* Forest Carbon Edge Effects
* Updating vector reprojection to allow partial reprojection. Related to
https://github.com/natcap/invest/issues/1645
* Habitat Quality
* Access raster is now generated from the reprojected access vector
(https://github.com/natcap/invest/issues/1615).
* Rarity values are now output in CSV format (as well as in raster format)
(https://github.com/natcap/invest/issues/721).
* Urban Flood Risk
* Fields present on the input AOI vector are now retained in the output.
(https://github.com/natcap/invest/issues/1600)
* Urban Nature Access
* The model now works as expected when the user provides an LULC raster
that does not have a nodata value defined.
https://github.com/natcap/invest/issues/1293

3.14.2 (2024-05-29)
-------------------
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
DATA_DIR := data
GIT_SAMPLE_DATA_REPO := https://bitbucket.org/natcap/invest-sample-data.git
GIT_SAMPLE_DATA_REPO_PATH := $(DATA_DIR)/invest-sample-data
GIT_SAMPLE_DATA_REPO_REV := ab8c74a62a93fd0019de2bca064abc0a5a07afab
GIT_SAMPLE_DATA_REPO_REV := 0f8b41557753dad3670ba8220f41650b51435a93

GIT_TEST_DATA_REPO := https://bitbucket.org/natcap/invest-test-data.git
GIT_TEST_DATA_REPO_PATH := $(DATA_DIR)/invest-test-data
GIT_TEST_DATA_REPO_REV := 324abde73e1d770ad75921466ecafd1ec6297752

GIT_UG_REPO := https://github.com/natcap/invest.users-guide
GIT_UG_REPO_PATH := doc/users-guide
GIT_UG_REPO_REV := 0404bc5d4d43085cdc58f50f8fc29944b10cefb1
GIT_UG_REPO_REV := f203ec069f9f03560c9a85b268e67ebb6b994953

ENV = "./env"
ifeq ($(OS),Windows_NT)
Expand Down
6 changes: 4 additions & 2 deletions constraints_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
# occur with regular use of invest. https://github.com/OSGeo/gdal/issues/8497
GDAL!=3.6.*,!=3.7.*

# https://github.com/natcap/pygeoprocessing/issues/387
GDAL<3.8.5
# Pyinstaller 6.10 breaks our windows builds. Until we can figure out the
# root cause, let's cap the versions to those that work.
# https://github.com/natcap/invest/issues/1622
#pyinstaller<6.10
14 changes: 6 additions & 8 deletions doc/api-docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@
# -- Options for HTML output ----------------------------------------------

import sphinx_rtd_theme

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'sphinx_rtd_theme'

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = "_static/invest-logo.png"
Expand Down Expand Up @@ -130,16 +128,16 @@
# dir menu entry, description, category)
texinfo_documents = [
('index', 'InVEST', 'InVEST Documentation',
'The Natural Capital Project', 'InVEST',
'The Natural Capital Project', 'InVEST',
'Integrated Valuation of Ecosystem Services and Tradeoffs',
'Scientific Software'),
]


# -- Prepare for sphinx build ---------------------------------------------

# Use sphinx apidoc tool to generate documentation for invest. Generated rst
# files go into the api/ directory. Note that some apidoc options may not work
# Use sphinx apidoc tool to generate documentation for invest. Generated rst
# files go into the api/ directory. Note that some apidoc options may not work
# the same because we aren't using their values in the custom templates
apidoc.main([
'--force', # overwrite any files from previous run
Expand All @@ -164,7 +162,7 @@

All InVEST models share a consistent python API:

- Every InVEST model has a corresponding module or subpackage in the
- Every InVEST model has a corresponding module or subpackage in the
``natcap.invest`` package
- The model modules contain a function called ``execute``
- The ``execute`` function takes a single argument (``args``), a dictionary
Expand All @@ -189,7 +187,7 @@
natcap.invest.carbon.execute(args)

For examples of scripting a model run, or multiple successive model runs,
see :ref:`CreatingSamplePythonScripts`.
see :ref:`CreatingPythonScripts`.


.. contents:: Available Models and Tools:
Expand Down
Loading
Loading