Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1553 commits
Select commit Hold shift + click to select a range
bf3b456
typo
dlebauer Oct 15, 2025
4455803
migrating content from original demos to uncertainty.qmd and run_peca…
dlebauer Oct 15, 2025
b57bd58
New function to validate events.json files; moved example events.json…
dlebauer Oct 15, 2025
cfd616a
add jsonlite suggests to data.land
dlebauer Oct 16, 2025
4ac6250
Bug fix.
Oct 16, 2025
7211cc3
use system.file for test fixtures
dlebauer Oct 16, 2025
50c2324
Revert change.
Oct 16, 2025
993e98b
Revert change.
Oct 16, 2025
fb104b2
Apply suggestions from code review
infotroph Oct 16, 2025
3d7ec43
Update base/db/R/convert_input.R
infotroph Oct 16, 2025
99a0ec9
Merge pull request #3338 from Sweetdevil144/gsoc/convert-input
infotroph Oct 16, 2025
4d483c4
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Oct 16, 2025
31b8046
fix spacing
AritraDey-Dev Oct 16, 2025
78e4702
Add debias code.
Oct 16, 2025
1d456c0
Roxygen
infotroph Oct 16, 2025
28387b0
manpage too
infotroph Oct 16, 2025
cc52beb
wording and whitespace
infotroph Oct 17, 2025
9ccf904
use settings hash as ensemble id if not provided
infotroph Oct 17, 2025
91cc792
filter to pfts present at this site
infotroph Oct 17, 2025
c56c125
pass site id when naming rundirs
infotroph Oct 17, 2025
d6d06f3
Move the previous debias script to the inst folder.
Oct 18, 2025
460e0ee
remove previous debias functions.
Oct 18, 2025
6025d83
Add the main SDA debias workflow.
Oct 18, 2025
85c59fe
Add the new debias workflow to the multi-site version.
Oct 18, 2025
ec38802
Add the new bias correction workflow to the sda_local script.
Oct 18, 2025
f1d10a1
Add the new SDA debiasing workflow to the SDA job submission function.
Oct 18, 2025
1423f40
feat(db): Re-enable PFT cultivar query test
AritraDey-Dev Oct 18, 2025
77bda48
Move out of the if control.
Oct 19, 2025
9c3fd8e
Bug fix.
Oct 19, 2025
e6ef100
Bug fix
Oct 19, 2025
087f18a
Remove the condition for the wrapping where we have more than 20 char…
Oct 19, 2025
9a88f61
Merge pull request #3651 from AritraDey-Dev/fix/reenable-db-test
infotroph Oct 19, 2025
5a04563
Update the runner script.
Oct 19, 2025
e30cbc8
test: note expected output length and specific variable checks
AritraDey-Dev Oct 20, 2025
e352576
fix: api container failed to start due to issue in ma.R file
AritraDey-Dev Oct 20, 2025
510bdb2
Merge pull request #3653 from AritraDey-Dev/fix/api-docker-container
infotroph Oct 20, 2025
7ba598e
remove arg.
Oct 20, 2025
19db026
Update script.
Oct 20, 2025
2f14acc
Revert "Move out of the if control."
Oct 20, 2025
caefddf
Resolve conflicts.
Oct 20, 2025
6da0cd6
Revert back.
Oct 20, 2025
ef6d42d
changelog
infotroph Oct 20, 2025
159284a
Update CHANGELOG.md
infotroph Oct 20, 2025
338db76
return NA if no validator
dlebauer Oct 20, 2025
79c17d8
Update models/sipnet/DESCRIPTION
dlebauer Oct 20, 2025
b84ef76
Update docker/depends/pecan_package_dependencies.csv
dlebauer Oct 20, 2025
f7761a8
- require testthat >= 3.1.0 to support new mocking features in tests …
dlebauer Oct 20, 2025
8e3bd1a
Update CHANGELOG and NEWS
dlebauer Oct 20, 2025
579942b
Update testthat version requirement and documentation for validate_ev…
dlebauer Oct 20, 2025
b70da2a
Merge branch 'develop' into write_events_sipnet
dlebauer Oct 20, 2025
0f31536
Update str_ns declaration
Sweetdevil144 Jul 3, 2024
f261c9c
Update site$lon
Sweetdevil144 Jul 3, 2024
ac9fc35
Update models/ed/tests/testthat/test-read_ET_files.R
AritraDey-Dev Oct 21, 2025
3d01e45
Merge pull request #3652 from AritraDey-Dev/tests/update-output-expec…
infotroph Oct 21, 2025
35b16cb
do not assume id is numeric when assigning str_ns
infotroph Oct 21, 2025
cb2379a
Revert to using the new debias workflow.
Oct 21, 2025
668c4b1
Update document.
Oct 21, 2025
e543c23
Update document.
Oct 21, 2025
a44399d
Update the runner script.
Oct 21, 2025
4701b41
Update the bias correction function.
Oct 21, 2025
2754b91
Update the usage of the bias correction workflow.
Oct 21, 2025
459c945
Merge branch 'PecanProject:develop' into SDA_data
DongchenZ Oct 21, 2025
0e08b79
Update observation paths.
Oct 21, 2025
af5c081
Update namespace.
Oct 21, 2025
300dfae
Merge branch 'SDA_data' of https://github.com/DongchenZ/pecan into SD…
Oct 21, 2025
c8a8206
Modify the test to match the change in the logger.message function.
Oct 21, 2025
441f732
Change the default value of wrap in the logger message function.
Oct 21, 2025
9099aa0
Revert back.
Oct 21, 2025
00357e7
data.frame does not allow starting with null cols
infotroph Oct 21, 2025
8d99e8f
move NEWS into unreleased section
infotroph Oct 6, 2025
09fa53c
Merge pull request #8 from dlebauer/quarto-ensemble-sensivity
AritraDey-Dev Oct 21, 2025
4682f82
migrate pecan outputs block from demo 1 to demo 2
AritraDey-Dev Oct 21, 2025
0a9957f
add changes in demo 2
AritraDey-Dev Oct 21, 2025
4c31603
Update runner script.
Oct 21, 2025
5bac520
Modify configuration.
Oct 21, 2025
4ac0f84
Merge pull request #3656 from infotroph/siteID-refactor-rebase
infotroph Oct 22, 2025
bf096e2
tests for GEFS functions
infotroph Oct 24, 2025
08928f6
whitespace
infotroph Oct 24, 2025
ac30fdd
simplify formatting logic, same result
infotroph Oct 24, 2025
756b952
move download_grid definition out to top level
infotroph Oct 24, 2025
65ea645
simplify more
infotroph Oct 24, 2025
f77462f
returns null
infotroph Oct 24, 2025
a0f8762
Merge pull request #3650 from infotroph/stics-fix
infotroph Oct 24, 2025
2cbfac3
Merge pull request #3349 from infotroph/GEFS-fix
mdietze Oct 24, 2025
0f36678
date must be less than 4 days in past
infotroph Oct 26, 2025
3be20b9
and the other ones too
infotroph Oct 26, 2025
c9b172a
Merge pull request #3657 from infotroph/gefs-test-fix
infotroph Oct 26, 2025
13678ab
Merge pull request #3623 from dlebauer/write_events_sipnet
infotroph Oct 26, 2025
d7ddfa1
dbsync tweaks
infotroph Aug 26, 2024
8d69e2b
dbsync build assumes cwd
infotroph Oct 27, 2025
0ef1e0f
Merge pull request #3658 from infotroph/dbsync-fixes
mdietze Oct 28, 2025
55e9706
Add the prefix argument to customize the desired output folder.
Oct 28, 2025
c06ce29
Update configurations.
Oct 28, 2025
6bdca4e
Update the SDA runner script.
Oct 28, 2025
986930b
Merge branch 'PecanProject:develop' into SDA_data
DongchenZ Oct 28, 2025
6dc8e65
Merge branch 'SDA_data' of https://github.com/DongchenZ/pecan into SD…
Oct 28, 2025
5553fcb
Merge branch 'develop' into ensure-version-bump
infotroph Oct 31, 2025
b4e0965
dbsync has now changed too
infotroph Oct 31, 2025
0dacf59
Merge pull request #3631 from infotroph/ensure-version-bump
infotroph Oct 31, 2025
dfdf724
fixes for checks failing in R 4.5
infotroph Oct 31, 2025
804c932
wording improvements from code review
infotroph Nov 3, 2025
8f3b3ec
Merge pull request #3659 from infotroph/units-emptystr-change
infotroph Nov 3, 2025
614f874
Merge branch 'develop' into progressReport1
infotroph Nov 3, 2025
0dbeffa
Merge branch 'develop' into mattykim-import
infotroph Nov 3, 2025
f8c0286
Merge pull request #3614 from sarahkanee/progressReport1
infotroph Nov 3, 2025
eb65432
Merge pull request #3615 from sarahkanee/mattykim-import
infotroph Nov 3, 2025
103183b
Update base/all/DESCRIPTION
AritraDey-Dev Nov 4, 2025
54d84fc
Update base/db/DESCRIPTION
AritraDey-Dev Nov 4, 2025
8af03bb
Update base/logger/DESCRIPTION
AritraDey-Dev Nov 4, 2025
5a03f8b
Update base/qaqc/DESCRIPTION
AritraDey-Dev Nov 4, 2025
eda70bf
Update base/remote/DESCRIPTION
AritraDey-Dev Nov 4, 2025
3acfdcd
Update base/settings/DESCRIPTION
AritraDey-Dev Nov 4, 2025
bdb19e8
Update base/utils/DESCRIPTION
AritraDey-Dev Nov 4, 2025
2272749
Update base/visualization/DESCRIPTION
AritraDey-Dev Nov 4, 2025
7b497a2
Update base/workflow/DESCRIPTION
AritraDey-Dev Nov 4, 2025
f633317
Update models/basgra/DESCRIPTION
AritraDey-Dev Nov 4, 2025
d969a00
Update modules/uncertainty/DESCRIPTION
AritraDey-Dev Nov 4, 2025
c8fe0c1
Update modules/rtm/DESCRIPTION
AritraDey-Dev Nov 4, 2025
681b922
Update modules/priors/DESCRIPTION
AritraDey-Dev Nov 4, 2025
f29f84e
Update modules/photosynthesis/DESCRIPTION
AritraDey-Dev Nov 4, 2025
9748173
Update modules/meta.analysis/DESCRIPTION
AritraDey-Dev Nov 4, 2025
81321e6
Update modules/emulator/DESCRIPTION
AritraDey-Dev Nov 4, 2025
1501c55
Update modules/data.remote/DESCRIPTION
AritraDey-Dev Nov 4, 2025
84ee8ac
Update modules/data.mining/DESCRIPTION
AritraDey-Dev Nov 4, 2025
47393a8
Update modules/data.land/DESCRIPTION
AritraDey-Dev Nov 4, 2025
43f0920
Update modules/data.atmosphere/DESCRIPTION
AritraDey-Dev Nov 4, 2025
ef813c2
Update modules/benchmark/DESCRIPTION
AritraDey-Dev Nov 4, 2025
f65c036
Update modules/assim.sequential/DESCRIPTION
AritraDey-Dev Nov 4, 2025
1e7e0d3
Update modules/assim.batch/DESCRIPTION
AritraDey-Dev Nov 4, 2025
f149cef
Update modules/allometry/DESCRIPTION
AritraDey-Dev Nov 4, 2025
277742a
Update models/maat/DESCRIPTION
AritraDey-Dev Nov 4, 2025
60880ba
apply chnages in description in model packages
AritraDey-Dev Nov 4, 2025
58b0c11
Apply suggestion from @dlebauer
dlebauer Nov 4, 2025
bc9edba
Roxygen
infotroph Nov 4, 2025
1901bbe
Merge pull request #3654 from infotroph/sa-multisite-hack
dlebauer Nov 4, 2025
fe4ecef
Apply suggestions from code review
infotroph Nov 6, 2025
0a88a28
typo
infotroph Nov 6, 2025
f0aa21c
typo again 🤦
infotroph Nov 6, 2025
0f607fe
doc, ::, whitespace
infotroph Nov 9, 2025
123c628
- Remove description of trait data and meta-analysis from uncertainty…
dlebauer Nov 11, 2025
0e54cb2
add self as co-author
dlebauer Nov 11, 2025
bff6203
Merge pull request #3507 from AritraDey-Dev/keyword-for-packages
infotroph Nov 11, 2025
4193a99
Merge pull request #10 from dlebauer/uncertainty_demo_update
AritraDey-Dev Nov 15, 2025
4ca1e5a
Merge branch 'develop' into docker-use-arm-45
infotroph Nov 17, 2025
bd03fdc
Merge pull request #3655 from infotroph/docker-use-arm-45
infotroph Nov 18, 2025
b6a06c7
fix pft outdir path
AritraDey-Dev Nov 20, 2025
cf80986
Update CHANGELOG.md
AritraDey-Dev Nov 20, 2025
7ac3aa5
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Nov 20, 2025
e3b2834
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Nov 20, 2025
2d6c85a
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Nov 20, 2025
fbf778b
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Nov 20, 2025
22f5069
Update documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertain…
AritraDey-Dev Nov 20, 2025
97c15b9
fix: output directory structure
AritraDey-Dev Nov 20, 2025
373d772
Update .github/workflows/render-quarto.yml
AritraDey-Dev Nov 20, 2025
e27fb68
Bug fixes for the indexing error.
Nov 20, 2025
e4d293e
Fix the issue when X is a data frame.
Nov 20, 2025
c834c4b
Add the adjustment to the analysis block function.
Nov 20, 2025
e1ae739
Add the adjustment to the function.
Nov 20, 2025
cd98a38
Add the residual lag to the SDA ML debiasing workflow.
Nov 20, 2025
7f8aa58
Use pre-defined soil depth for the soil physics calculation.
Nov 20, 2025
e4bbbf2
Resolve conflicts.
Nov 20, 2025
0d368a9
Add comments for the reason of returning the list object.
Nov 20, 2025
1695ffd
Fix the logic where we already generated analysis from the analysis b…
Nov 20, 2025
6cc1b93
Fix unit error in leafCSpWt calculation: Percent-to-fraction conversi…
infotroph Nov 20, 2025
e3e0b29
Merge pull request #3664 from infotroph/sipnet-leaf-units-again
infotroph Nov 20, 2025
e975c90
Remove the ensemble.samples argument.
Nov 20, 2025
993661a
Update documentation.
Nov 20, 2025
bf3a1c9
relicense PEcAn.uncertainty as BSD3 with agreement of all contributors
infotroph Nov 20, 2025
7a9d929
Revert the previous comments and add the parameter generation if we d…
Nov 21, 2025
16ddd04
Merge branch 'PecanProject:develop' into SDA_data
DongchenZ Nov 21, 2025
53fdc63
Merge branch 'develop' of https://github.com/PecanProject/pecan into …
Nov 21, 2025
9d947dd
Merge branch 'SDA_data' of https://github.com/DongchenZ/pecan into SD…
Nov 21, 2025
2ce2284
move DART to contrib/
infotroph Nov 21, 2025
9301603
remove other refs, wording tweak
infotroph Nov 21, 2025
b939ae9
remove flag with no effect after R 4.2
infotroph Nov 21, 2025
9fa7ace
Update create_amerifluxLBL_drivers_for_maat.Rmd
mdietze Nov 21, 2025
3e4fe96
Merge pull request #3669 from PecanProject/mdietze-patch-1
infotroph Nov 21, 2025
85c3d68
Merge branch 'develop' into drop-check-flag
infotroph Nov 21, 2025
1202a9e
Merge branch 'develop' into move-dart
infotroph Nov 21, 2025
10442ad
Merge branch 'develop' into relicense-uncertainty
mdietze Nov 21, 2025
2b8a1d9
Merge pull request #3667 from infotroph/drop-check-flag
mdietze Nov 21, 2025
5c07f6c
Merge pull request #3666 from infotroph/move-dart
mdietze Nov 21, 2025
aff087f
Merge branch 'develop' into SDA_data
mdietze Nov 21, 2025
f31ab1f
Merge pull request #3634 from DongchenZ/SDA_data
mdietze Nov 21, 2025
70fe8fb
Merge branch 'develop' into relicense-uncertainty
infotroph Nov 21, 2025
f0de8a9
Merge pull request #3665 from infotroph/relicense-uncertainty
dlebauer Nov 21, 2025
7556f42
Merge pull request #3601 from harshagr70/render_get.trait.data
dlebauer Nov 21, 2025
52e8db3
Update CHANGELOG.md
AritraDey-Dev Nov 22, 2025
628f626
allow multi variable outputs for ensemble analysis
AritraDey-Dev Nov 22, 2025
45553d2
change naming for outputs
AritraDey-Dev Nov 22, 2025
db121bb
fix: add missing newlines to DESCRIPTION files to resolve warnings
AritraDey-Dev Nov 22, 2025
7947e19
Merge pull request #3670 from AritraDey-Dev/fix/warnings-for-description
infotroph Nov 22, 2025
0b88d3a
Fix Makefile clean rule by removing wrong ../book/ directory
AritraDey-Dev Nov 23, 2025
231b6ae
test(db): fix fancy_scientific test by comparing deparsed expressions
AritraDey-Dev Nov 23, 2025
96ceaca
remove deploy rule from Makefile
AritraDey-Dev Nov 23, 2025
e765379
Merge pull request #3671 from AritraDey-Dev/improve-make-clean
infotroph Nov 23, 2025
3724ee9
Merge pull request #3672 from AritraDey-Dev/fix/db-tests
infotroph Nov 24, 2025
103aaaa
update pr.dens tests for testthat 3.3.0
infotroph Nov 24, 2025
579b9d9
Merge pull request #3570 from AritraDey-Dev/quarto-ensemble-sensivity
dlebauer Nov 25, 2025
02359d0
Merge branch 'develop' into ci/uncertainty-notebook
AritraDey-Dev Nov 25, 2025
410d493
style: fix R code formatting in uncertainty.qmd
AritraDey-Dev Nov 25, 2025
8d11586
Merge pull request #3675 from infotroph/remove-is_equal
infotroph Nov 25, 2025
a25fedf
Merge pull request #3638 from AritraDey-Dev/ci/uncertainty-notebook
infotroph Nov 25, 2025
df29868
Update phenology parameters when there are NAs for specific site-years
Nov 26, 2025
e698578
Merge pull request #3680 from Qianyuxuan/phenology_update
infotroph Nov 26, 2025
71a217d
build(docs): misc cleanups & add serve rule to book_Makefile
AritraDey-Dev Nov 28, 2025
50800e3
ensure_version_bump: default to tag most recent by date, not by commi…
infotroph Nov 27, 2025
90fd898
remove serve rule from Makefile
AritraDey-Dev Nov 29, 2025
27d97c9
Merge pull request #3685 from AritraDey-Dev/cleanup-in-makefile
infotroph Nov 30, 2025
65d68f5
Merge pull request #3686 from infotroph/fix-ensure-version-bump
infotroph Dec 1, 2025
6bbb46e
version bumps and NEWS tweaks for model packages
infotroph Dec 6, 2025
46edc67
testthat
infotroph Dec 6, 2025
84faae1
Merge pull request #3704 from infotroph/model-pkg-version-bump
dlebauer Dec 7, 2025
d6df3cd
bump versions for modules and base
infotroph Dec 11, 2025
b6d7c63
missed one
infotroph Dec 11, 2025
1498dee
update CHANGELOG.md
divine7022 Dec 11, 2025
e4e26d6
update roxy
divine7022 Dec 11, 2025
4dc4cd9
update roxy
divine7022 Dec 11, 2025
52e79ba
update run.write.configs.Rd
divine7022 Dec 11, 2025
6ef45da
runModule.run.write.configs.Rd
divine7022 Dec 11, 2025
035a6c9
update roxy
divine7022 Dec 11, 2025
2b252df
update write.ensemble.configs.Rd
divine7022 Dec 11, 2025
6a9161c
add input_design documentation to book
divine7022 Dec 11, 2025
c5c76e8
made message clear
divine7022 Dec 11, 2025
bba6126
add input_design row validation
divine7022 Dec 11, 2025
2d5cf79
add input_design row validation to runModule.run.write.configs
divine7022 Dec 11, 2025
3cba978
update roxy
divine7022 Dec 11, 2025
6aa8237
update roxy
divine7022 Dec 11, 2025
4297f36
update the documenation
divine7022 Dec 11, 2025
20b84cf
pecan.all version follows pecan version
infotroph Dec 11, 2025
2b2c601
drop reduendent info
divine7022 Dec 11, 2025
7d153af
Merge pull request #3715 from infotroph/v110-version-bump
infotroph Dec 12, 2025
73958b5
fix release date in csv
infotroph Dec 15, 2025
6ee5086
version in web/common.php
infotroph Dec 15, 2025
4dc275d
Apply suggestions from code review
infotroph Dec 15, 2025
de5bf23
Merge pull request #3716 from divine7022/docs-joint-input-design
infotroph Dec 15, 2025
e4578e5
date fix
infotroph Dec 16, 2025
9f1af72
Apply suggestions from code review
infotroph Dec 17, 2025
4f32510
date fix
infotroph Dec 18, 2025
2e2c59f
date fix
infotroph Dec 19, 2025
7f6634a
Adding Notebook-based tutorials section in README
S1DDHEY Dec 23, 2025
34e5639
fixed broken links and grammar in README.md
S1DDHEY Dec 23, 2025
a74e833
Merge pull request #3730 from S1DDHEY/fix/README.md-v1.10.0
mdietze Dec 23, 2025
ba1f403
date
infotroph Dec 23, 2025
ff3e999
date
infotroph Dec 24, 2025
3b1089b
date
infotroph Dec 25, 2025
a0fbcd5
date
infotroph Dec 26, 2025
26ee244
date
infotroph Dec 29, 2025
e7b1a1f
date
infotroph Dec 31, 2025
b6890e6
date
infotroph Jan 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 3 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Add project labels to PRs
# Invocation is done by .github/workflows/prlabeler.yml

# changes in the documentation
'Documentation':
- changed-files:
- any-glob-to-any-file: 'book_source/**'
Expand All @@ -12,44 +11,36 @@
- any-glob-to-any-file: 'DEV-INTRO.md'
- any-glob-to-any-file: 'README.md'

# Add 'Dockerfile' label to any changes in the docker directory
'Dockerfile':
- changed-files:
- any-glob-to-any-file: 'docker/**'


# Add 'Website' label to any changes in the web directory
'Website':
'Web Frontend':
- changed-files:
- any-glob-to-any-file: 'web/**'

# Add 'Base' label to any changes in the base directory
'Base':
- changed-files:
- any-glob-to-any-file: 'base/**'

# Add 'Models' label to any changes in the models directory
'Models':
- changed-files:
- any-glob-to-any-file: 'models/**'

# Add 'Modules' label to any changes in the modules directory
'Modules':
- changed-files:
- any-glob-to-any-file: 'modules/**'

# Add 'GitHub Actions' label to any changes in the .github/workflows directory
'GitHub Actions':
- changed-files:
- any-glob-to-any-file: '.github/workflows/**'

# Add 'Scripts' label to any changes in the scripts directory

# TODO: scripts folder is due for a reorganization by theme;
# update these tags when that is done
'Scripts':
- changed-files:
- any-glob-to-any-file: 'scripts/**'

# Add 'Tests' label to any changes in the tests directory
'Tests':
- all:
- changed-files:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
_R_CHECK_LENGTH_1_CONDITION_: true
_R_CHECK_LENGTH_1_LOGIC2_: true
# Avoid compilation check warnings that come from the system Makevars
# See https://stat.ethz.ch/pipermail/r-package-devel/2019q2/003898.html
Expand Down Expand Up @@ -67,3 +66,11 @@ jobs:

- name: check for out-of-date files
uses: infotroph/tree-is-clean@v1

- name: check package versions
run: |
tag=$(\
curl -s https://api.github.com/repos/pecanproject/pecan/releases/latest \
| sed -n 's!.*"tag_name": "\(.*\)".*!\1!p')
git fetch --tags --depth=1
./scripts/ensure_version_bump.sh "$tag"
6 changes: 3 additions & 3 deletions .github/workflows/ci-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
fail-fast: false
matrix:
R:
- "4.1"
- "4.3"
- "4.5"
- "devel"
uses: ./.github/workflows/test.yml
with:
Expand All @@ -26,8 +26,8 @@ jobs:
fail-fast: false
matrix:
R:
- "4.1"
- "4.3"
- "4.5"
- "devel"
uses: ./.github/workflows/check.yml
with:
Expand All @@ -40,8 +40,8 @@ jobs:
fail-fast: false
matrix:
R:
- "4.1"
- "4.3"
- "4.5"
- "devel"
uses: ./.github/workflows/sipnet.yml
with:
Expand Down
45 changes: 24 additions & 21 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ on:
type: choice
default: "$DEFAULT_R_VERSION"
options:
- 4.1
- 4.2
- 4.3
- 4.4
- 4.5
- devel
schedule:
# 1:30 AM UTC, different R version each day
- cron: '30 1 * * 1' # Rdevel
- cron: '30 1 * * 2' # R4.4
- cron: '30 1 * * 2' # R4.2
- cron: '30 1 * * 3' # R4.3
- cron: '30 1 * * 4' # R4.2
- cron: '30 1 * * 5' # R4.1
- cron: '30 1 * * 4' # R4.4
- cron: '30 1 * * 5' # R4.5

jobs:
# ----------------------------------------------------------------------
Expand All @@ -49,23 +49,33 @@ jobs:
run: echo "R_VERSION=devel" >> "$GITHUB_OUTPUT"
- id: tue
if: github.event.schedule == '30 1 * * 2'
run: echo "R_VERSION=4.4" >> "$GITHUB_OUTPUT"
run: echo "R_VERSION=4.2" >> "$GITHUB_OUTPUT"
- id: wed
if: github.event.schedule == '30 1 * * 3'
run: echo "R_VERSION=4.3" >> "$GITHUB_OUTPUT"
- id: thu
if: github.event.schedule == '30 1 * * 4'
run: echo "R_VERSION=4.2" >> "$GITHUB_OUTPUT"
run: echo "R_VERSION=4.4" >> "$GITHUB_OUTPUT"
- id: fri
if: github.event.schedule == '30 1 * * 5'
run: echo "R_VERSION=4.1" >> "$GITHUB_OUTPUT"
run: echo "R_VERSION=4.5" >> "$GITHUB_OUTPUT"
- id: default
if: github.event_name != 'schedule'
run: echo "R_VERSION=${{ github.event.inputs.r_version || env.DEFAULT_R_VERSION }}" >> "$GITHUB_OUTPUT"
- id: platform
# upstream rocker/tidyverse image is only on ARM for R 4.5.* (so far)
shell: bash
run: |
if [[ "${{ join(steps.*.outputs.R_VERSION, '') }}" == "4.5" ]]; then
echo "PLATFORMS=linux/amd64,linux/arm64" >> "$GITHUB_OUTPUT"
else
echo "PLATFORMS=linux/amd64" >> "$GITHUB_OUTPUT"
fi
outputs:
# Note: "steps.*" seems to mean "all step ids", not "all steps"
# If seeing weird results here, check that all steps above have an id set.
R_VERSION: ${{ join(steps.*.outputs.R_VERSION, '') }}
PLATFORMS: ${{ join(steps.platform.outputs.PLATFORMS, '') }}

# ----------------------------------------------------------------------
# depends image has all the dependencies installed
Expand All @@ -80,7 +90,7 @@ jobs:
build-context: docker/depends
dockerfile: docker/depends/Dockerfile
r-version: ${{ needs.rversion.outputs.R_VERSION }}
platforms: "linux/amd64"
platforms: ${{ needs.rversion.outputs.PLATFORMS }}
secrets: inherit

# ----------------------------------------------------------------------
Expand All @@ -95,7 +105,7 @@ jobs:
dockerfile: docker/base/Dockerfile
r-version: ${{ needs.rversion.outputs.R_VERSION }}
parent-image: "depends"
platforms: "linux/amd64"
platforms: ${{ needs.rversion.outputs.PLATFORMS }}
secrets: inherit

# ----------------------------------------------------------------------
Expand All @@ -110,6 +120,7 @@ jobs:
dockerfile: docker/models/Dockerfile
r-version: ${{ needs.rversion.outputs.R_VERSION }}
parent-image: "base"
platforms: ${{ needs.rversion.outputs.PLATFORMS }}
secrets: inherit

# ----------------------------------------------------------------------
Expand All @@ -131,37 +142,31 @@ jobs:
- name: basgra
CONTEXT: models/basgra
DOCKERFILE: models/basgra/Dockerfile
PLATFORM: "linux/amd64"
MODEL: basgra
VERSION: BASGRA_N_v1
- name: biocro
CONTEXT: models/biocro
DOCKERFILE: models/biocro/Dockerfile
PLATFORM: "linux/amd64"
MODEL: biocro
VERSION: "0.95"
# - name: ed2_2.2.0
# CONTEXT: models/ed
# DOCKERFILE: models/ed/Dockerfile
# PLATFORM: "linux/amd64"
# MODEL: ed2
# VERSION: "2.2.0"
- name: ed2_git
CONTEXT: models/ed
DOCKERFILE: models/ed/Dockerfile
PLATFORM: "linux/amd64"
MODEL: ed2
VERSION: "git"
- name: maespa
CONTEXT: models/maespa
DOCKERFILE: models/maespa/Dockerfile
PLATFORM: "linux/amd64"
MODEL: maespa
VERSION: "git"
- name: sipnet
CONTEXT: models/sipnet
DOCKERFILE: models/sipnet/Dockerfile
PLATFORM: "linux/amd64"
MODEL: sipnet
VERSION: "git"
uses: ./.github/workflows/docker-build-image.yml
Expand All @@ -172,7 +177,7 @@ jobs:
r-version: ${{ needs.rversion.outputs.R_VERSION }}
parent-image: "models"
model-version: ${{ matrix.VERSION }}
platforms: ${{ matrix.PLATFORM }}
platforms: ${{ needs.rversion.outputs.PLATFORMS }}
secrets: inherit

# ----------------------------------------------------------------------
Expand All @@ -191,22 +196,20 @@ jobs:
- name: docs
CONTEXT: .
DOCKERFILE: docker/docs/Dockerfile
PLATFORM: "linux/amd64"
- name: executor
CONTEXT: docker/executor
DOCKERFILE: docker/executor/Dockerfile
PLATFORM: "linux/amd64"
- name: api
CONTEXT: apps/api
DOCKERFILE: apps/api/Dockerfile
PLATFORM: "linux/amd64"
uses: ./.github/workflows/docker-build-image.yml
with:
image-name: ${{ matrix.name }}
build-context: ${{ matrix.CONTEXT }}
dockerfile: ${{ matrix.DOCKERFILE }}
r-version: ${{ needs.rversion.outputs.R_VERSION }}
platforms: ${{ matrix.PLATFORM }}
parent-image: "base"
platforms: ${{ needs.rversion.outputs.PLATFORMS }}
secrets: inherit

# ----------------------------------------------------------------------
Expand All @@ -229,7 +232,7 @@ jobs:
DOCKERFILE: docker/web/Dockerfile
PLATFORM: "linux/amd64,linux/arm64"
- name: shiny-dbsync
CONTEXT: .
CONTEXT: shiny/dbsync
DOCKERFILE: shiny/dbsync/Dockerfile
PLATFORM: "linux/amd64"
- name: data
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
PECAN_GIT_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}

container:
image: pecan/depends:develop
image: pecan/base:develop

steps:
# Checkout source code
- uses: actions/checkout@v4

# Install pkgdown
# Install dependencies
- name: Install dependencies
run: Rscript -e 'install.packages("pkgdown")'

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/render-quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Render Demo Notebooks

on:
push:
pull_request:
workflow_dispatch:

jobs:
render-notebook:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build PEcAn base Docker image
run: |
docker build -t pecan-base-ci:latest -f docker/base/Dockerfile .

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: '1.8.17'

- name: Check R code style with styler
run: |
docker run --rm -v ${{ github.workspace }}:/work pecan-base-ci:latest bash -c "Rscript -e '
if (!requireNamespace(\"styler\", quietly = TRUE)) install.packages(\"styler\");
files_to_check <- c(
\"/work/documentation/tutorials/Demo_1_Basic_Run/run_pecan.qmd\",
\"/work/documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.qmd\"
);
unstyled <- styler::style_file(files_to_check);
if (is.data.frame(unstyled) && \"changed\" %in% names(unstyled) && any(unstyled\$changed == TRUE)) {
print(unstyled[unstyled\$changed, ]);
stop(\"One or more .qmd files are not styled. Please run styler::style_file() locally and commit the changes.\");
} else {
cat(\"All checked .qmd files are styled.\\n\");
}
'"

- name: Render Demo 1 notebook to HTML
run: |
docker run --rm -v ${{ github.workspace }}:/work pecan-base-ci:latest bash -c "
quarto render /work/documentation/tutorials/Demo_1_Basic_Run/run_pecan.qmd --to html
"
- name: Render Demo 2 notebook to HTML
run: |
docker run --rm -v ${{ github.workspace }}:/work pecan-base-ci:latest bash -c "
quarto render /work/documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.qmd --to html
"
7 changes: 2 additions & 5 deletions .github/workflows/sipnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,12 @@ jobs:
curl -L -o sipnet-linux "https://github.com/PecanProject/sipnet/releases/download/v1.3.0/sipnet-linux-v1.3.0"
chmod +x sipnet-linux

- name: Download climate file from GitHub
run: |
curl -L -o niwot.clim "https://raw.githubusercontent.com/PecanProject/sipnet/refs/heads/master/tests/smoke/niwot.clim"


# compile PEcAn code
- name: build
run: make -j1

# run SIPNET test
- name: copy met file into working directory
run: Rscript -e 'file.copy(system.file("niwot.clim", package = "PEcAn.SIPNET"), "niwot.clim")'
- name: integration test
run: ./tests/integration.sh ghaction
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,11 @@ contrib/modellauncher/modellauncher

# don't track project level .Rprofile
.Rprofile


# Ignore any folder named demo_outdir (Quarto notebook outputs)
**/demo_outdir/
dbfiles/
**/temperate.coniferous/
*.sensitivity.analysis.*.pdf
*.variance.decomposition.*.pdf
Loading
Loading