Skip to content

Commit

Permalink
Additional tests and testdata change
Browse files Browse the repository at this point in the history
- SRTM test data is packed (in rds)
- Added several tests
  • Loading branch information
Insang Song committed Nov 17, 2023
1 parent 5402b1b commit e30fb81
Show file tree
Hide file tree
Showing 7 changed files with 271 additions and 113 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# filesystem remnants
.DS_Store

# Large datasets for test
/tools/largedata/

# Slurm logs
**/*.out
**/*.error

# Apptainer image file
/containers/**/*.sif
13 changes: 13 additions & 0 deletions containers/apptainer_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

#SBATCH --job-name=init-rocker
#SBATCH --error=init-rocker.error
#SBATCH [email protected]
#SBATCH --mail-type=END,FAIL
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --partition=highmem

## apptainer
apptainer build /ddn/gs1/home/songi2/images/rocker_base_computation.sif /ddn/gs1/home/songi2/projects/Scalable_GIS/containers/apptainer_rocker

12 changes: 12 additions & 0 deletions containers/calc_highthroughput.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

#SBATCH --job-name=calc_
#SBATCH --error=init-rocker.error
#SBATCH [email protected]
#SBATCH --mail-type=END,FAIL
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --partition=highmem

## apptainer
apptainer exec --writable-tmpfs --mount='type=bind,source=/opt,destination=/ddn/gs1/home/songi2/projects/PrestoGP_Pesticides/input' /ddn/gs1/home/songi2/images/rocker_base_computation.sif Rscript /ddn/gs1/home/songi2/projects/PrestoGP_Pesticides/Calc_WBD.r
2 changes: 2 additions & 0 deletions containers/r_scripts/install_add_package.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pkgs = c("igraph", "bigDM", "terra", "mapsf", "tmap", "rlang", "data.table", "tidytable", "dtplyr")
install.packages(pkgs = pkgs)
Loading

0 comments on commit e30fb81

Please sign in to comment.