Skip to content

Commit

Permalink
Merge pull request #23 from QCDIS/22-add-r-packages-for-waddenzee-flavor
Browse files Browse the repository at this point in the history
22 add r packages for waddenzee flavor
  • Loading branch information
gpelouze authored Apr 19, 2024
2 parents 25f6205 + 525c2a2 commit f0d62f6
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 12 deletions.
7 changes: 0 additions & 7 deletions flavors/lter-life-wadden-py/environment.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions flavors/lter-life-wadden-py/flavor_config.yaml

This file was deleted.

16 changes: 16 additions & 0 deletions flavors/lter-life-wadden/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: lter-life-wadden
channels:
- conda-forge
dependencies:
- ipykernel
- minio
- webdavclient3
- r-irkernel
- r-jsonlite
- r-optparse
- r-fme
- r-desolve
- r-plot3d
- r-sf
- r-ncdf4
- r-tidyverse
3 changes: 3 additions & 0 deletions flavors/lter-life-wadden/flavor_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flavor_name: lter-life-wadden
build_jupyter: True
free_disk_space: True
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ RUN \
git clone --depth 1 https://github.com/acolite/acolite.git && \
# Acolite doesn't run on Python 3.12 yet
sed -i 's/- python=3$/- python<=3.11/' acolite/environment.yml && \
mamba env update --name lter-life-wadden-py --file ./acolite/environment.yml && \
site_package_dir="$(/opt/conda/envs/lter-life-wadden-py/bin/python -c "import site; print(''.join(site.getsitepackages()))")" && \
mamba env update --name lter-life-wadden --file ./acolite/environment.yml && \
site_package_dir="$(/opt/conda/envs/lter-life-wadden/bin/python -c "import site; print(''.join(site.getsitepackages()))")" && \
cp ./acolite/acolite -r "$site_package_dir" && \
cp ./acolite/config -r "$site_package_dir" && \
cp ./acolite/data -r "$site_package_dir"
9 changes: 9 additions & 0 deletions flavors/lter-life-wadden/tests/test_import.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
library(optparse)
library(jsonlite)

library(FME)
library(deSolve)
library(plot3D)
library(sf)
library(ncdf4)
library(tidyverse)
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ set -e
source /venv/bin/activate
dir="${0%/*}"
find "$dir" -name "*.py" -print0 | xargs --null -I "{}" python "{}"
find "$dir" -name "*.R" -print0 | xargs --null -I "{}" Rscript "{}"

0 comments on commit f0d62f6

Please sign in to comment.