Commit baa4df76 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

Merge branch 'master' of gitlab.in2p3.fr:ipsl/lmd/intro/routingpp

parents 1d7534e7 9a23e128
......@@ -2,13 +2,23 @@
#
# Set the right Python 3 Anaconda environment
#
source ~/anaconda3/bin/activate
conda activate Rviewer
if [ -f ~/anaconda3/bin/activate ] ; then
if [ ! -d ~/anaconda3/envs/Rviewer ] ; then
echo "Installing Anaconda packages for Rviewer"
conda create -y -n Rviewer mpi4py numba astropy netcdf4 matplotlib shapely scipy cartopy
fi
echo "Loading Anaconda packages"
source ~/anaconda3/bin/activate
conda activate Rviewer
fi
#
# Run on YYY procs
#
#cd ${PBS_O_WORKDIR}
#
pwd
python ./lib/main.py
if [ -e /usr/bin/python3 ] ; then
python3 ./lib/main.py
else
python ./lib/main.py
fi
#!/bin/bash
#
#########################################
#
# Script to build and maintain en environment to run
# the python code in this directory. We verify that
# all needed packages are available.
# This is based on the anaconda python system : https://www.anaconda.com/distribution/
#
# Usage : source Environment
#
#########################################
#
# Functions
#
conda create -y -n Rviewer mpi4py numba astropy netcdf4 matplotlib shapely scipy cartopy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment