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 the 3.13.0 release branch into main #1263

Merged
merged 591 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
591 commits
Select commit Hold shift + click to select a range
3725de0
remove tests for the cli-gui. #755
davemfish Jan 24, 2023
e19aa61
Adding a MODEL_SPEC parameter I had forgotten.
phargogh Jan 24, 2023
2863df6
Adding UNA tag to the known model name tags.
phargogh Jan 24, 2023
bd42f6b
Merge branch 'main' of https://github.com/natcap/invest into feature/…
phargogh Jan 24, 2023
38861b1
Various fixes when running through the UI.
phargogh Jan 24, 2023
8527c9d
Fixing a syntax issue encountered in python 3.8.
phargogh Jan 24, 2023
9e8fc1b
Minor fixes to the MODEL_SPEC. RE:#722
phargogh Jan 25, 2023
087568f
Revert "remove bat file for running autotest on Windows. #74."
davemfish Jan 25, 2023
747926b
revert the temporary rule to run step on my branch.
davemfish Jan 25, 2023
6ab3aac
Merge pull request #1154 from emlys/task/chinese-translation
davemfish Jan 25, 2023
629c29c
Align LULC and population rasters to the intersection of their bboxes.
phargogh Jan 25, 2023
3bdf2be
copy over input type translations from invest PO file to workbench PO…
emlys Jan 25, 2023
83dee9d
Adding mutual masking of nodata between LULC and population rasters.
phargogh Jan 25, 2023
2ff07e4
Fixing a units issue in the args spec for pop raster.
phargogh Jan 26, 2023
e01ac75
trying out react-i18next package for translation and find missing mes…
emlys Jan 26, 2023
a3d8ffb
use react-i18next to translate all strings
emlys Jan 26, 2023
475b9fc
app loading with all strings wrapped in i18next function
emlys Jan 26, 2023
0b696ab
I. #1104 removing adr concept from PR
dcdenu4 Jan 26, 2023
1339b8c
load es and zh messages into i18next from js modules
emlys Jan 27, 2023
2f7602a
read language setting on load and make sure t is defined everywhere
emlys Jan 27, 2023
e38587a
Update src/natcap/invest/urban_nature_access.py
phargogh Jan 27, 2023
48e67f5
Update src/natcap/invest/urban_nature_access.py
phargogh Jan 27, 2023
a253a0d
update tests to use react-i18n
emlys Jan 30, 2023
c75ec65
Noting details of conditional requirement. RE:#722
phargogh Jan 30, 2023
3ed0882
Sanitizing an about string in RST, adding pop_group description. RE:#722
phargogh Jan 30, 2023
f71dd92
Clarifying AOIs as admin boundaries. RE:#722
phargogh Jan 30, 2023
c2ae69f
Using Admin Boundaries instead of AOIs. RE:#722
phargogh Jan 30, 2023
89b4e89
Fixing a filepath and bumping the UG to the in-progress PR. RE:#722
phargogh Jan 30, 2023
42b019e
i18n: directly import translations from json
emlys Jan 30, 2023
ae88428
Minor tweaks. RE:#722
phargogh Jan 31, 2023
d159911
update readme with new process
emlys Jan 31, 2023
703c67f
share i18n resources between main and renderer
emlys Jan 31, 2023
e514fba
Fixing string comparison where it should be. RE:#722
phargogh Jan 31, 2023
77fa949
Fixing another validation string comparison issue.
phargogh Jan 31, 2023
b9d7882
Adding a missing docstring entry. RE:#722
phargogh Jan 31, 2023
1d8888e
Renaming mutual mask to valid pixels mask. RE:#722
phargogh Jan 31, 2023
de4e315
Correcting a dependent task list. RE:#722
phargogh Jan 31, 2023
b3456a6
translate menu bar labels
emlys Jan 31, 2023
37f8e5a
a few missing files
emlys Jan 31, 2023
75a94c4
Being a little more careful about what needs a task join(). RE:#722
phargogh Jan 31, 2023
9a27ea3
Using utils.array_equals_nodata() instead of isclose() for consistenc…
phargogh Jan 31, 2023
cc68dd1
Fixing block reading in a simple iterblocks call. RE:#722
phargogh Jan 31, 2023
f7abc41
Fixing some critical issues in weighted sum. RE:#722
phargogh Jan 31, 2023
f0d78a5
Finishing a comment. RE:#722
phargogh Jan 31, 2023
868213d
Forcing cleanup of a few gdal objects. RE:#722
phargogh Jan 31, 2023
f7dc9ac
Merge branch 'feature/722-urban-nature-access-model-split-pop-and-rad…
phargogh Jan 31, 2023
824d272
move about and report pages into jsx and implement translation
emlys Feb 1, 2023
4fdb105
clean up
emlys Feb 1, 2023
1b4619b
tidy up exports and HOCs
emlys Feb 1, 2023
bf9ba08
convert about modal from class to functional component
emlys Feb 1, 2023
1872aef
more cleanup
emlys Feb 1, 2023
be88206
tests passing
emlys Feb 2, 2023
f612083
more clean up
emlys Feb 2, 2023
ed6fcc6
fix main test
emlys Feb 2, 2023
c91eaa6
Adding a test for the power kernel and removing unused import.
phargogh Feb 3, 2023
238b070
Adding a test for exponential decay.
phargogh Feb 3, 2023
84f9d47
Adding a test for the gaussian kernel.
phargogh Feb 3, 2023
98eae1c
Bumping the UG repo rev for the draft UNA chapter.
phargogh Feb 3, 2023
93ca9ca
added a FutureWarning that --headless flag will not be recognized. #755
davemfish Feb 3, 2023
dc3b9f7
Merge pull request #1158 from davemfish/task/755-74-headless-autotest
emlys Feb 3, 2023
b16d0e6
misc fixes from pr feedback #1161
emlys Feb 6, 2023
e7761b2
fix misspelled function
emlys Feb 6, 2023
a9f34bf
Renaming greenspace_budget to greenspace_balance.
phargogh Feb 7, 2023
4ca9940
Correcting names, bumping UG, moving a file to outputs.
phargogh Feb 7, 2023
939026d
Merge pull request #1173 from natcap/main
davemfish Feb 8, 2023
ca0bfbf
Merge pull request #1174 from natcap/main
davemfish Feb 8, 2023
518445a
Commenting out power function stuff.
phargogh Feb 8, 2023
097f9a5
Renaming greenspace_balance -> greenspace_balance_percapita.
phargogh Feb 8, 2023
92a5c5a
Implementing greenspace demand.
phargogh Feb 9, 2023
3cd5d4e
Implementing greenspace_supply_totalpop as requested.
phargogh Feb 9, 2023
db677b2
Merge pull request #1150 from phargogh/feature/722-urban-nature-acces…
dcdenu4 Feb 10, 2023
a1b7bd2
separate i18n config for main and renderer
emlys Feb 11, 2023
59558c3
Merge branch 'feature/urban-nature-access' of https://github.com/natc…
phargogh Feb 11, 2023
76b3e88
Merge branch 'main' of https://github.com/natcap/invest into feature/…
phargogh Feb 11, 2023
892e7e3
Updating the name of urban nature radius definition.
phargogh Feb 11, 2023
1e29593
Renaming attribute in LULC table, updating text.
phargogh Feb 11, 2023
8787e91
Renaming files, variables, everything to 'urban_nature'*.
phargogh Feb 11, 2023
8f53ca2
Fixing the name of the urban nature demand input in workbench.
phargogh Feb 13, 2023
b653c21
separate i18n configuration for main and renderer
emlys Feb 13, 2023
bfd9672
add new messages into zh translation files
emlys Feb 13, 2023
9e0dcc2
fix a few more wrapped strings
emlys Feb 14, 2023
76f8b76
add i18next parser config
emlys Feb 14, 2023
7d403b8
don't need import assertion for json
emlys Feb 14, 2023
d7a0e48
Merge pull request #1178 from phargogh/feature/1177-urban-nature-acce…
dcdenu4 Feb 15, 2023
090bd12
Merge branch 'feature/urban-nature-access' of https://github.com/natc…
phargogh Feb 15, 2023
64a74ec
Bumping UG rev to resolve build failure.
phargogh Feb 15, 2023
4ceffd9
Merge pull request #1187 from natcap/main
emlys Feb 17, 2023
f3a1afa
Adding sample data to the Makefile.
phargogh Feb 20, 2023
457469a
Merge pull request #1181 from phargogh/bugfix/1179-rename-greenspace-…
dcdenu4 Feb 21, 2023
2ed3142
Bumping the sample data repo rev for the merged data.
phargogh Feb 21, 2023
4657e28
Removing globio to match recent deprecation.
phargogh Feb 21, 2023
2c75fe3
remove extra space from translation message
emlys Feb 22, 2023
0547b9b
Merge pull request #1196 from emlys/bugfix/extra-space-in-translation…
phargogh Feb 22, 2023
86f79e8
latest work
emlys Feb 23, 2023
fa2ba54
clean up
emlys Feb 23, 2023
fb2f57c
remove i18n mock; only import i18n config once
emlys Feb 23, 2023
eb7ec84
fix i18n import path in menubar components
emlys Feb 24, 2023
dc2019e
Merge branch 'main' into task/resolve-pr-1197-merge-conflicts
phargogh Feb 24, 2023
930cf10
Update spelling for HISTORY.rst
dcdenu4 Feb 24, 2023
a3d3784
Fix typos
dcdenu4 Feb 24, 2023
a670bc7
Merge branch 'release/3.13.0' of https://github.com/natcap/invest int…
phargogh Feb 24, 2023
64cda6e
Merge branch 'feature/urban-nature-access' into feature/722-una-add-s…
phargogh Feb 24, 2023
b87f03d
Merge pull request #1199 from phargogh/task/resolve-pr-1197-merge-con…
phargogh Feb 24, 2023
e951866
Merge pull request #1200 from natcap/main
phargogh Feb 24, 2023
3b60fc5
Merge branch 'main' into task/1104-hq-threat-decay-method
dcdenu4 Feb 27, 2023
30ba066
I. #1104 fixing flake8 issues
dcdenu4 Feb 27, 2023
85a6d23
I. #1104 removing commented assert. Duplicate
dcdenu4 Feb 27, 2023
8d17721
I. #1104 fixing test failure. Bad variable path creation.
dcdenu4 Feb 27, 2023
c590b73
I. #1104 updating UG hash with corresponding changes
dcdenu4 Feb 27, 2023
63387c3
Bumping the UG repo rev for the globio removal.
phargogh Feb 27, 2023
7a9c5ff
Merge branch 'feature/722-una-add-sample-data' of github.com:phargogh…
phargogh Feb 27, 2023
95b3b88
use --no-copy-ignored flag; import i18n in jest.overrides.js
emlys Feb 27, 2023
c4f52c5
Merge branch 'main' into task/1104-hq-threat-decay-method
dcdenu4 Feb 28, 2023
3ae5b39
I. #1104 update UG rev.
dcdenu4 Feb 28, 2023
5b2dc84
Merge branch 'task/1104-hq-threat-decay-method' of github.com:dcdenu4…
dcdenu4 Feb 28, 2023
9bb66f9
Resolving conflict with UG revision
dcdenu4 Feb 28, 2023
7712606
Merge pull request #1206 from dcdenu4/pr-resolution
phargogh Feb 28, 2023
0d0ffd2
Merge pull request #1162 from emlys/bugfix/1161
davemfish Feb 28, 2023
e783c85
remove natcap.invest.ui package. #755
davemfish Feb 28, 2023
c6c5969
move Flask to main requirements.txt; remove references to requirement…
davemfish Feb 28, 2023
af77e7e
remove natcap.invest.ui references from setup.py. #755
davemfish Feb 28, 2023
455c992
remove ui_tests and references in Makefile and GHA workflows. #755.
davemfish Feb 28, 2023
56193d3
moved icon resources to workbench directory. #755.
davemfish Feb 28, 2023
22f92b5
updated electron-builder config to use standard InVEST icon. #755
davemfish Feb 28, 2023
d0dd500
remove windows and mac installer scripts and data. #755.
davemfish Feb 28, 2023
ab6b313
remove NSIS and DMG build steps from GHA workflows. #755
davemfish Feb 28, 2023
e1d6860
updated readme. #755
davemfish Feb 28, 2023
d1969c4
Merge branch 'release/3.13.0' into task/1104-hq-threat-decay-method
dcdenu4 Feb 28, 2023
dd6d853
Merge pull request #1195 from phargogh/feature/722-una-add-sample-data
dcdenu4 Feb 28, 2023
b5819c3
update UG repo hash to latest on release branch. #755
davemfish Feb 28, 2023
31a982b
Merge branch 'release/3.13.0' of https://github.com/natcap/invest int…
phargogh Feb 28, 2023
4793d12
Bumping UG repo rev to match release/3.13.0
phargogh Feb 28, 2023
10d261c
Fixing the path to the english source files.
phargogh Feb 28, 2023
bc27f9f
Merge pull request #1209 from phargogh/pr-resolution-conflicts-in-pr-…
davemfish Feb 28, 2023
861195b
reverting a change to GHA workflow; Windows builds still need zip and…
davemfish Feb 28, 2023
c768611
update GHA workflow build binaries step to just build pyinstaller bin…
davemfish Feb 28, 2023
1b7fe27
Actually, revert "reverting a change to GHA workflow; Windows builds …
davemfish Feb 28, 2023
af782cd
remove windows_installer dmg, and other unused targets from Makefile.…
davemfish Feb 28, 2023
19d5c78
Adding UNA sample data to the registry.
phargogh Feb 28, 2023
69b68b3
a note for HISTORY. #755
davemfish Mar 1, 2023
f8adc9d
merged upstream release branch. #755
davemfish Mar 1, 2023
3896308
Merge pull request #1211 from phargogh/bugfix/1210-una-add-sampledata…
dcdenu4 Mar 1, 2023
763d3c5
Merge branch 'release/3.13.0' into task/1104-hq-threat-decay-method
phargogh Mar 1, 2023
d33ae16
Merge pull request #1159 from dcdenu4/task/1104-hq-threat-decay-method
phargogh Mar 1, 2023
817847e
Fixing workbench interactivity and making modes more readable.
phargogh Mar 1, 2023
1fd8f4c
Merge branch 'release/3.13.0' into feature/output-spec
emlys Mar 1, 2023
f5b072f
add history note
emlys Mar 1, 2023
e84c6e3
Merge branch 'release/3.13.0' into task/UI-755-deprecate-qt
davemfish Mar 1, 2023
26e62ca
Fixing the sample datastack to match the new keys.
phargogh Mar 2, 2023
2767865
Updating the workbench config to match my updated radius mode values.
phargogh Mar 2, 2023
72f8dc6
removing some other ancillary files for Qt installers; updates to api…
davemfish Mar 2, 2023
89696cc
Merge branch 'task/UI-755-deprecate-qt' of github.com:davemfish/inves…
davemfish Mar 2, 2023
c369c6c
one more update to API docs for cli. #755.
davemfish Mar 2, 2023
1df61be
use toggle switch to represent bool inputs
emlys Mar 2, 2023
bd7d539
add history note
emlys Mar 2, 2023
ae5a4ab
Merge pull request #1216 from natcap/feature/output-spec
phargogh Mar 3, 2023
1e2dd70
Merge pull request #1215 from phargogh/bugfix/1214-una-uniform-radius…
dcdenu4 Mar 3, 2023
59642af
merged upstream release, resolved conflicts. #755
davemfish Mar 3, 2023
f574f0d
removed qt references in pyinstaller script. #755
davemfish Mar 3, 2023
5025831
resolved conflict by rebuilding yarn.lock.
davemfish Mar 3, 2023
4d73f24
Merge pull request #1232 from davemfish/pr-resolution-1231
dcdenu4 Mar 3, 2023
8cdd930
Merge pull request #1212 from davemfish/task/UI-755-deprecate-qt
dcdenu4 Mar 3, 2023
0bc055d
import images in jsx so vite can find them during builds. #1220
davemfish Mar 3, 2023
d48c643
Merge pull request #1233 from davemfish/bugfix/WB-1220-missing-pngs
emlys Mar 3, 2023
ff679a5
catch a couple more strings
emlys Mar 3, 2023
eb94a1f
update zh message catalogs
emlys Mar 3, 2023
9b755e7
show option display names in dropdown menus
emlys Mar 3, 2023
299e45f
remove debug statement
emlys Mar 3, 2023
f4cfc18
use option properties correctly in generated RST
emlys Mar 3, 2023
c01e5e2
Revert "use option properties correctly in generated RST"
emlys Mar 3, 2023
25650db
use option properties correctly in generated RST
emlys Mar 3, 2023
38a841e
add history note
emlys Mar 3, 2023
5be2392
make userguide during build step. #851
davemfish Mar 6, 2023
ec661fe
add userguide as extra resources in Workbench builds. #851.
davemfish Mar 6, 2023
546e950
Merge branch 'release/3.13.0' into task/1143-use-d8-stream-extraction
phargogh Mar 6, 2023
b3f69aa
Statically defining the admin boundaries layer name.
phargogh Mar 6, 2023
c558a1a
Merge pull request #1238 from phargogh/bugfix/1164-una-safe-layer-name
dcdenu4 Mar 6, 2023
96f6d9a
make bool toggles work with init values
emlys Mar 6, 2023
a6f604d
Merge branch 'release/3.13.0' into task/no-radio-buttons
emlys Mar 6, 2023
213756b
allow booleans in argInitValues
emlys Mar 6, 2023
3faf622
Merge branch 'task/no-radio-buttons' of https://github.com/emlys/inve…
emlys Mar 6, 2023
1b8f0aa
Bumping Makefile sample data repo rev.
phargogh Mar 7, 2023
2d89b2b
Improvements to documentation for the UNA UG chapter.
phargogh Mar 7, 2023
fc272be
Merge pull request #1234 from emlys/task/catch-more-untranslated-strings
dcdenu4 Mar 7, 2023
31cc8ca
Merge pull request #1226 from emlys/task/no-radio-buttons
davemfish Mar 7, 2023
df02753
Merge branch 'release/3.13.0' into task/1143-use-d8-stream-extraction
davemfish Mar 7, 2023
fa32167
Merge pull request #1145 from phargogh/task/1143-use-d8-stream-extrac…
davemfish Mar 7, 2023
0470e6e
Merge branch 'release/3.13.0' into bugfix/1163-1127
emlys Mar 7, 2023
56b353d
regression test for #1217
emlys Mar 7, 2023
3b2726a
Merge branch 'bugfix/1163-1127' of https://github.com/emlys/invest in…
emlys Mar 7, 2023
4f887ef
shrink invest icon to 256x256
emlys Mar 7, 2023
9577371
use separate icons for mac and windows
emlys Mar 8, 2023
8ca7544
open a local UG in an electron window, in production and dev. #851.
davemfish Mar 8, 2023
96a3a9a
forgot to add new file. #851
davemfish Mar 8, 2023
905a04b
make userguide should tolerate pre-existing symbolic link to sampleda…
davemfish Mar 8, 2023
273f848
Merge pull request #1235 from emlys/bugfix/1163-1127
davemfish Mar 8, 2023
dfbdadb
do not assign a parent window. #851.
davemfish Mar 8, 2023
ddbfc6b
for now, skipping a test on Windows. #1239.
davemfish Mar 8, 2023
65df671
Merge pull request #1241 from davemfish/task/1239-skip-test
dcdenu4 Mar 8, 2023
0109bdc
removing an unused file. #851
davemfish Mar 8, 2023
7921803
remove unused imports. #851
davemfish Mar 8, 2023
3f63182
add tests of all model tab & userguide in pptr. #851
davemfish Mar 8, 2023
41d3f0d
Merge pull request #1240 from emlys/bugfix/1236
dcdenu4 Mar 9, 2023
47816aa
Setting a lower bound on a convolution.
phargogh Mar 9, 2023
186bfa6
Always doing mutual masking when weighting the output raster.
phargogh Mar 9, 2023
e5d72e6
Testing the weighted sum function.
phargogh Mar 9, 2023
1e41528
Renaming files "decayed.." --> "distance_weighted..."
phargogh Mar 9, 2023
f77ad55
Bumping UG repo rev for renamed files to remove 'decay'.
phargogh Mar 9, 2023
193e521
Updating the sample data revision for more notes on UNA sample data.
phargogh Mar 9, 2023
714f2eb
Further updates to the metadata file for UNA.
phargogh Mar 9, 2023
2e34dfe
Update src/natcap/invest/urban_nature_access.py
phargogh Mar 10, 2023
74a425e
Merge pull request #1242 from phargogh/bugfix/1219-una-out-of-range-v…
dcdenu4 Mar 10, 2023
35ce437
Merge branch 'release/3.13.0' of https://github.com/natcap/invest int…
phargogh Mar 10, 2023
a18b3fe
Noting new model in HISTORY.
phargogh Mar 10, 2023
817183a
Fleshing out the UNA note in HISTORY.
phargogh Mar 10, 2023
7b8b2b8
updates to pptr script. #851
davemfish Mar 10, 2023
e5fca2c
cleaning up pptr script. #851
davemfish Mar 10, 2023
831ed70
remove UG http request check from tests. #851.
davemfish Mar 10, 2023
150ede1
revert a change to binary builds workflow; zip is required to build u…
davemfish Mar 10, 2023
51c36a7
remove more url checks for UG links. #851.
davemfish Mar 11, 2023
feb4747
skip the single-instance-lock test entirely if not on Windows. #851
davemfish Mar 11, 2023
68bff7a
mock the ipc call triggered by the UG link click. #851.
davemfish Mar 11, 2023
84e8360
remove some commented code. #851
davemfish Mar 13, 2023
2bc5a97
Merge remote-tracking branch 'upstream/release/3.13.0' into task/WB-8…
davemfish Mar 13, 2023
c9b89b2
add note for HISTORY. #851
davemfish Mar 13, 2023
fcb8ed4
use electron-builder nsis option to allow user-defined install locati…
davemfish Mar 13, 2023
152c042
add header image to nsis installer. #1078
davemfish Mar 13, 2023
ef93bf6
a more descriptive name for the invest license file included in the w…
davemfish Mar 13, 2023
b6e4973
do not create a desktop icon for windows users. #996
davemfish Mar 13, 2023
d04b215
hide the package.json version string from the user.
davemfish Mar 13, 2023
97cbadb
Merge pull request #1246 from davemfish/task/WB-1078-installer-config
phargogh Mar 13, 2023
a44693b
Adding UNA MODEL_SPEC for outputs.
phargogh Mar 14, 2023
2d14019
Correcting ARGS_SPEC --> MODEL_SPEC. RE:#722
phargogh Mar 14, 2023
a591151
Correcting a band type. RE:#722
phargogh Mar 14, 2023
98c8ebd
Update src/natcap/invest/urban_nature_access.py
phargogh Mar 15, 2023
18a3a64
Update src/natcap/invest/urban_nature_access.py
phargogh Mar 15, 2023
0311d86
Update src/natcap/invest/urban_nature_access.py
phargogh Mar 15, 2023
66fc8f0
Merge pull request #1243 from phargogh/feature/urban-nature-access
dcdenu4 Mar 15, 2023
a7e33dd
Removing deprecated ui file for UNA. RE:#722.
phargogh Mar 15, 2023
e9f0157
Merge branch 'feature/urban-nature-access' of https://github.com/natc…
phargogh Mar 15, 2023
07031b0
Merge pull request #1248 from phargogh/feature/urban-nature-access
dcdenu4 Mar 15, 2023
b1cf88c
remove unused import. #851.
davemfish Mar 15, 2023
2ea6e3c
Merge pull request #1247 from natcap/feature/urban-nature-access
dcdenu4 Mar 15, 2023
ece489e
Merge pull request #1244 from davemfish/task/WB-851-package-user-guide
emlys Mar 15, 2023
8ca8c31
update translation catalogs for zh
emlys Mar 16, 2023
5224657
Merge pull request #1253 from emlys/task/chinese-translations-3-16-23
dcdenu4 Mar 17, 2023
b7b443e
Updating HISTORY for the 3.13.0 release.
phargogh Mar 17, 2023
1458d07
Updating UG and test data repo revs for the release.
phargogh Mar 17, 2023
c3b8f83
Updating the python package readme.
phargogh Mar 17, 2023
ca3051d
Merge pull request #1257 from phargogh/task/1255-3.13.0-release
emlys Mar 17, 2023
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
108 changes: 22 additions & 86 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
uses: ./.github/actions/setup_env
with:
python-version: ${{ matrix.python-version }}
requirements-files: requirements.txt requirements-dev.txt requirements-gui.txt
requirements-files: requirements.txt requirements-dev.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }}

- name: Download previous conda environment.yml
Expand Down Expand Up @@ -218,39 +218,6 @@ jobs:
- name: Validate user guide links
run: make validate_userguide_filenames

run-ui-tests:
name: Run UI Tests
runs-on: windows-latest
needs: check-syntax-errors
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10"]

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

- name: Restore git-LFS test data cache
uses: actions/cache@v3
with:
path: data/invest-test-data
key: git-lfs-testdata-${{ hashfiles('Makefile') }}

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

- name: Make install
run: make install

- name: Run UI tests
timeout-minutes: 10 # tests usually take < 2 minutes, so 10 is generous.
run: make test_ui

run-workbench-tests:
name: Run Workbench Tests
runs-on: ${{ matrix.os }}
Expand All @@ -271,7 +238,7 @@ jobs:
uses: ./.github/actions/setup_env
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}
requirements-files: requirements.txt requirements-dev.txt requirements-gui.txt
requirements-files: requirements.txt requirements-dev.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }}

- name: Make install
Expand Down Expand Up @@ -312,12 +279,10 @@ jobs:
os: [macos-latest, windows-latest]
include:
- os: macos-latest
binary-make-command: mac_dmg
puppeteer-log: ~/Library/Logs/invest-workbench/
workspace-path: InVEST-failed-mac-workspace.tar
binary-extension: dmg
- os: windows-latest
binary-make-command: windows_installer
puppeteer-log: ~/AppData/Roaming/invest-workbench/logs/
workspace-path: ${{ github.workspace }}
binary-extension: exe
Expand All @@ -326,9 +291,15 @@ jobs:
with:
fetch-depth: 0 # Fetch complete history for accurate versioning

- name: Install build dependencies (macOS)
if: matrix.os == 'macos-latest'
run: brew install create-dmg
- name: Set up conda environment
uses: ./.github/actions/setup_env
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}
requirements-files: requirements.txt requirements-dev.txt requirements-docs.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }} pandoc

- name: Make install
run: make install

# Not caching chocolatey packages because the cache may not be reliable
# https://github.com/chocolatey/choco/issues/2134
Expand All @@ -341,43 +312,17 @@ jobs:
$env:PATH += ";C:\ProgramData\chocolatey\bin"
refreshenv # Choco-provided command to reload environment variables

- name: Restore cached NSIS plugins (Windows)
id: restore-nsis-cache
if: matrix.os == 'windows-latest'
uses: actions/cache@v3
with:
path: | # update this list of paths if windows-ci-binary-install.ps1 changes
C:\Program Files (x86)\NSIS\Plugins\x86-ansi\nsProcess.dll
C:\Program Files (x86)\NSIS\Include\nsProcess.nsh
C:\Program Files (x86)\NSIS\Plugins\x86-ansi\INetC.dll
C:\Program Files (x86)\NSIS\Plugins\x86-ansi\nsisunz.dll
C:\Program Files (x86)\NSIS\Plugins\x86-ansi\StdUtils.dll
C:\Program Files (x86)\NSIS\Plugins\x86-ansi\UAC.dll
C:\Program Files (x86)\NSIS\Include\NsisMultiUser.nsh
C:\Program Files (x86)\NSIS\Include\NsisMultiUserLang.nsh
C:\Program Files (x86)\NSIS\Include\StdUtils.nsh
C:\Program Files (x86)\NSIS\Include\UAC.nsh
C:\Program Files (x86)\NSIS\Include\Utils.nsh
C:\Program Files (x86)\NSIS\Include\un.Utils.nsh
key: NSIS-plugins--${{ hashFiles('ci/windows-ci-binary-install.ps1') }}

- name: Download NSIS plugins (Windows) # only if they couldn't be restored from the cache
if: matrix.os == 'windows-latest' && steps.restore-nsis-cache.outputs.cache-hit != 'true'
shell: powershell
run: ./ci/windows-ci-binary-install.ps1

- name: Set up conda environment
uses: ./.github/actions/setup_env
with:
python-version: ${{ env.LATEST_SUPPORTED_PYTHON_VERSION }}
requirements-files: requirements.txt requirements-dev.txt requirements-docs.txt requirements-gui.txt
requirements: ${{ env.CONDA_DEFAULT_DEPENDENCIES }} pandoc

- name: Make install
run: make install
- name: Build userguide
run: make userguide

- name: Build binaries
run: make CONDA=micromamba ${{ matrix.binary-make-command }}
run: make CONDA=micromamba binaries

- name: Run invest-autotest with binaries
if : |
github.event_name == 'push' &&
(contains(github.ref, 'release') || github.ref == 'refs/heads/main')
run: make invest_autotest

- name: Install Node.js
uses: actions/setup-node@v3
Expand Down Expand Up @@ -428,9 +373,8 @@ jobs:
CERT_FILE: 2025-01-16-Expiry-AppStore-App.p12
CERT_PASS: ${{ secrets.MACOS_CODESIGN_CERT_PASS }}
run: |
INSTALLER_BINARY=$(find "$(pwd)/dist" -type f -name 'InVEST_*.dmg' | head -n 1)
WORKBENCH_BINARY=$(find "$(pwd)/workbench/dist" -type f -name 'invest_*.dmg' | head -n 1)
make BIN_TO_SIGN="$INSTALLER_BINARY" WORKBENCH_BIN_TO_SIGN="$WORKBENCH_BINARY" codesign_mac
make WORKBENCH_BIN_TO_SIGN="$WORKBENCH_BINARY" codesign_mac

- name: Sign binaries (Windows)
if: github.event_name != 'pull_request' && matrix.os == 'windows-latest' # secrets not available in PR
Expand All @@ -440,21 +384,13 @@ jobs:
run: |
# figure out the path to signtool.exe (it keeps changing with SDK updates)
SIGNTOOL_PATH=$(find 'C:\\Program Files (x86)\\Windows Kits\\10' -type f -name 'signtool.exe*' | head -n 1)
INSTALLER_BINARY=$(find "$(pwd)/dist" -type f -name 'InVEST_*.exe' | head -n 1)
WORKBENCH_BINARY=$(find "$(pwd)/workbench/dist" -type f -name 'invest_*.exe' | head -n 1)
make BIN_TO_SIGN="$INSTALLER_BINARY" WORKBENCH_BIN_TO_SIGN="$WORKBENCH_BINARY" SIGNTOOL="$SIGNTOOL_PATH" codesign_windows
make WORKBENCH_BIN_TO_SIGN="$WORKBENCH_BINARY" SIGNTOOL="$SIGNTOOL_PATH" codesign_windows

- name: Deploy artifacts to GCS
if: github.event_name != 'pull_request'
run: make deploy

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

- name: Upload workbench binary artifact
if: always()
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion .readthedocs_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ dependencies:
- -r requirements.txt
- -r requirements-dev.txt
- -r requirements-docs.txt
- -r requirements-gui.txt
46 changes: 43 additions & 3 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
- Habitat Quality
- HRA
- NDR
- Visitation: Recreation and Tourism
- RouteDEM
- Scenario Generator
- Scenic Quality
- SDR
- Seasonal Water Yield
- Urban Cooling
- Urban Flood Risk
- Urban Nature Access
- Urban Stormwater Retention
- Wave Energy
- Wind Energy
- Visitation: Recreation and Tourism

Workbench fixes/enhancements:
- Workbench
Expand All @@ -34,23 +35,54 @@

.. :changelog:

Unreleased Changes
------------------
3.13.0 (2023-03-17)
-------------------
* General
* During builds of the InVEST documentation, the packages
``sphinx-rtd-theme`` and ``sphinx-reredirects`` will be pulled from
conda-forge instead of PyPI.
(`#1151 <https://github.com/natcap/invest/issues/1151>`_)
* The ``invest`` command-line-interface no longer opens a graphical
interface to InVEST. (`#755 <https://github.com/natcap/invest/issues/755>`_)
* The classic InVEST user-interface has been removed in favor of the Workbench.
* Replace the ``ARGS_SPEC`` with ``MODEL_SPEC`` which describes all model
outputs as well as inputs in a structured format
(`#596 <https://github.com/natcap/invest/issues/596>`_)
* Workbench
* Added tooltips to the model tabs so that they can be identified even when
several tabs are open (`#1071 <https://github.com/natcap/invest/issues/1088>`_)
* Options' display names will now be shown in dropdown menus
(`#1217 <https://github.com/natcap/invest/issues/1217>`_)
* Represent boolean inputs with a toggle switch rather than radio buttons.
* Includes local versions of the User Guide in English, Spanish, & Chinese.
https://github.com/natcap/invest/issues/851
* DelineateIt
* DelineateIt now uses ``pygeoprocessing.routing.extract_streams_d8`` for D8
stream thresholding. https://github.com/natcap/invest/issues/1143
* Habitat Quality
* The model now uses an euclidean distance implementation for decaying
threat rasters both linearly and exponentially. Since InVEST 3.3.0 a
convolution implementation has been used, which reflected how
the density of a threat or surrounding threat pixels could have an
even greater, cumulative impact and degradation over space. However, this
was never properly documented in the User's Guide and is not the approach
taken in the publication. The convolution implementation also produced
degradation and quality outputs that were difficult to interpret.
* There should be a noticeable runtime improvement from calculating
euclidean distances vs convolutions.
* HRA
* Fixed an issue where a cryptic exception was being thrown if the criteria
table's sections were not spelled exactly as expected. There is now a
much more readable error if a section is obviously missing. Leading and
trailing whitespace is also now removed from all string fields in the
criteria table, which should also help reduce the chance of errors.
https://github.com/natcap/invest/issues/1191
* GLOBIO
* Deprecated the GLOBIO model
(`#1131 <https://github.com/natcap/invest/issues/1131>`_)
* RouteDEM
* RouteDEM now uses ``pygeoprocessing.routing.extract_streams_d8`` for D8
stream thresholding. https://github.com/natcap/invest/issues/1143
* Scenic Quality
* Any points over nodata (and therefore excluded from the viewshed
analysis) will now correctly have their FID reported in the logging.
Expand All @@ -65,6 +97,12 @@ Unreleased Changes
* If a soil group raster contains any pixels that are not in the set of
allowed soil groups (anything other than 1, 2, 3 or 4), a human readable
exception will now be raised. https://github.com/natcap/invest/issues/1193
* Urban Nature Access
* Added the Urban Nature Access model to InVEST. The model for urban
nature access provides a measure of both the supply of urban nature
and the demand for nature by the urban population, ultimately
calculating the balance between supply and demand. See the corresponding
User's Guide chapter for documentation.
* Visitation: Recreation and Tourism
* Fixed a ``FutureWarning`` when reading in CSVs. This fix does not
otherwise affect model behavior. https://github.com/natcap/invest/issues/1202
Expand All @@ -76,6 +114,8 @@ Unreleased Changes
* Fixed a possible path traversal vulnerability when working with datastack
archives. This patches CVE-2007-4559, reported to us by Trellix.
https://github.com/natcap/invest/issues/1113
* Added Spanish and Chinese translations of user-facing text and an interface
to switch languages in the workbench UI.
* Updating descriptions for LULC about text and biophysical table for
clarity in model specs. https://github.com/natcap/invest/issues/1077
* Workbench
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ prune ci
prune exe
prune installer
prune workbench
include src/natcap/invest/internationalization/locales/*/LC_MESSAGES/messages.mo
Loading