antadde / N-SDM

Nested-Species Distribution Modelling
MIT License
26 stars 1 forks source link

settings.csv not able facilitate loading "software environment` modules #2

Open simonrolph opened 2 years ago

simonrolph commented 2 years ago

I have an issue when loading the various modules in nsdm.sh:

# Load required modules
module load $(awk -F ";" '$1 == "module_gcc" { print $2}' ./settings/settings.csv)
...

I am running this on JASMIN where we don't load individual modules but instead load a software environment by doing module load jasr. See: https://help.jasmin.ac.uk/article/5026-running-r-on-jasmin

The current way that the settings.csv is set up I'm unable to just load jasr rather than load all the modules individually.

My fix was to comment out all the module load lines in nsdm.sh and add module load jasr:

# Load required modules
# module load $(awk -F ";" '$1 == "module_gcc" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_r" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_proj" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_perl" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_curl" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_geos" { print $2}' ./settings/settings.csv)
# module load $(awk -F ";" '$1 == "module_gdal" { print $2}' ./settings/settings.csv)
module load jasr
antadde commented 2 years ago

Thanks for reporting this! I'll create an alternative option for loading software environments instead of individual modules