Skip to content

Commit e24b994

Browse files
authored
Merge branch 'develop' into develop
2 parents a7b4a86 + d43f6c7 commit e24b994

File tree

122 files changed

+1242
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1242
-248
lines changed

.github/workflows/docker-stack-sipnet.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
docker compose up --wait -d postgres
5252
docker run --rm --network pecan_pecan pecan/db:ci
5353
docker run --rm --network pecan_pecan --volume pecan_pecan:/data --env FQDN=docker pecan/data:develop
54+
docker run --rm --network pecan_pecan --volume pecan_pecan:/data pecan/data:develop chown -R "$(id -u):$(id -g)" /data
5455
docker image rm pecan/db:ci pecan/data:develop
5556
5657
- name: Run required containers

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,24 @@ section for the next release.
55

66
For more information about this file see also [Keep a Changelog](http://keepachangelog.com/) .
77

8-
## [Unreleased]
8+
## [1.9.0] - 2025-05-25
99

1010
### Added
1111

1212
- Documentation of `make` options including addition of `make help`
13+
- Removed reference to PEcAn VM from documentation #3478
1314
- Add make option to document a single package with `make documentation pathto/package`
1415
- `settings$host$qsub` and `settings$host$modellauncher$qsub.extra` will now expand `@NJOBS@` to the number of models in the run, allowing e.g. `--array=1-@NJOBS@`. Note that qsub still by default submits every model as a separate job, so for now this is mostly useful for custom modellauncher scripts
15-
1616
- Added automated pkgdown documentation for all PEcAn packages (@divine7022, #3482):
1717
- Compiled pages are live at https://pecanproject.github.io/package-documentation and inside Docker at `pecan.localhost/pkgdocs/`, and these are automatically updated each time a PR to the source packages is merged.
1818
- You can compile all pkgdown pages locally at any time with `make pkgdocs`.
1919

2020
### Fixed
21+
- api to correctly use x_var from request in plotResults #3528
22+
- rstudio username is now set using DEFAULT_USER
23+
- ed2 did not compile with newer rocker images
24+
- api did not compile with newer rocker images
25+
- maespa did not compile with new fortran compiler
2126
- updated github action to build docker images
2227
- PEcAn.SIPNET now accepts relative paths in its input XML (#3418). Previously all files referenced in the autogenerated `job.sh` needed to be specified as absolute paths.
2328
- R version 4.4 installs Python 3.12 which wants to leverage os managed packages instead, install python3-pika using apt.
@@ -38,7 +43,7 @@ For more information about this file see also [Keep a Changelog](http://keepacha
3843
### Removed
3944

4045
- Remove Browndog support for conversions (#3348, @Sweetdevil144).
41-
- Packages PEcAn.PRELES is no longer built or tested by default, because of ongoing build failures in the `RPreles` package it depends on.
46+
- Package `PEcAn.PRELES` is no longer built or tested by default, because of ongoing build failures in the `RPreles` package it depends on.
4247
Install it manually as needed, and be aware it is not being routinely checked by CI (so if you're checking it, please file bugs and submit fixes!).
4348

4449
## [1.8.0] - 2024-07-12

DEV-INTRO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Linux & Mac
169169

170170
```bash
171171
# Change ownership of /data directory in pecan volume to the current user
172-
docker run -ti --rm --network pecan_pecan --volume pecan_pecan:/data pecan/data:develop chown -R "$(id -u).$(id -g)" /data
172+
docker run -ti --rm --network pecan_pecan --volume pecan_pecan:/data pecan/data:develop chown -R "$(id -u):$(id -g)" /data
173173

174174
docker run -ti --user="$(id -u)" --rm --network pecan_pecan --volume pecan_pecan:/data --env FQDN=docker pecan/data:develop
175175
```

apps/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EXPOSE 8000
1717
RUN apt-get update \
1818
&& apt-get install libsodium-dev -y \
1919
&& rm -rf /var/lib/apt/lists/* \
20-
&& Rscript -e "devtools::install_version('promises', '1.1.0')" \
20+
&& Rscript -e "devtools::install_version('promises')" \
2121
&& Rscript -e "devtools::install_version('webutils', '1.1')" \
2222
&& Rscript -e "install.packages('pool')" \
2323
&& Rscript -e "devtools::install_github('rstudio/swagger')" \

apps/api/R/runs.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ getRunOutputFile <- function(req, run_id, filename, res){
237237
#' @author Tezan Sahu
238238
#* @get /<run_id>/graph/<year>/<y_var>
239239
#* @serializer contentType list(type='image/png')
240+
plotResults <- function(req, run_id, year, y_var, width = 800, height = 600, res) {
241+
x_var <- ifelse(!is.null(req$args$xvar), req$args$xvar, "time")
240242

241-
plotResults <- function(req, run_id, year, y_var, x_var="time", width=800, height=600, res) {
242243
# Get workflow_id for the run
243244
Run <- tbl(global_db_pool, "runs") %>%
244245
filter(id == !!run_id)
@@ -273,7 +274,7 @@ plotResults <- function(req, run_id, year, y_var, x_var="time", width=800, heigh
273274

274275
# Plot & return
275276
filename <- paste0(Sys.getenv("DATA_DIR", "/data/"), "workflows/temp", stringi::stri_rand_strings(1, 10), ".png")
276-
PEcAn.visualization::plot_netcdf(datafile, y_var, x_var, as.integer(width), as.integer(height), year=year, filename=filename)
277+
PEcAn.visualization::plot_netcdf(datafile, y_var, x_var, as.integer(width), as.integer(height), filename=filename, year=year)
277278
img_bin <- readBin(filename,'raw',n = file.info(filename)$size)
278279
file.remove(filename)
279280
return(img_bin)

base/all/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: PEcAn.all
22
Type: Package
33
Title: PEcAn Functions Used for Ecological Forecasts and Reanalysis
4-
Version: 1.8.0.9000
4+
Version: 1.9.0
55
Authors@R: c(person("Mike", "Dietze", role = c("aut"),
66
email = "dietze@bu.edu"),
77
person("David", "LeBauer", role = c("aut", "cre"),

base/all/NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PEcAn.all 1.8.0.9000
1+
# PEcAn.all 1.9.0
22

33
## License change
44
* PEcAn.all is now distributed under the BSD three-clause license instead of the NCSA Open Source license.

base/all/data/pecan_releases.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@
3232
"v1.7.1",2019-09-20,1.7.1
3333
"v1.7.2",2021-10-08,1.7.2
3434
"v1.8.0",2024-07-12,1.8.0
35+
"v1.9.0",2025-05-25,1.9.0

0 commit comments

Comments
 (0)