https://github.com/chill90/BoloCalc
Raw File
Tip revision: cc5a6fef8aeee149cbb52d924c2b3f68d145d208 authored by Charlie Hill on 20 July 2018, 19:28:47 UTC
Added functionality for Python 3; fixed bug in calculation of optical power due to dictionary ordering in Python 2
Tip revision: cc5a6fe
init.sh
#Install wget
WGETLOC=$(which wget)
if [ -z "$WGETLOC" ]
then
    echo
    echo "ERROR: wget needs to be installed to download auxiliary files"
    echo
    exit 1
else
    echo "wget located at ${WGETLOC}"
fi

#Download atm files
if [ -d "src/atmFiles/" ]
then
    echo
    echo "NOTE: src/atmFiles/ already exists. Do 'rm -r src/atmFiles/' to remove before re-downloading"
else
    wget http://pbfs.physics.berkeley.edu/BoloCalc/ATM/atm.zip
    unzip atm.zip -d src/
    rm atm.zip
fi

#Download example experiment
if [ -d "Experiments/ExampleExperiment/" ]
then
    echo
    echo "NOTE: Experiments/ExampleExperiment/ already exists. Do 'rm -r Experiments/ExampleExperiment/' to remove before re-downloading"
else
    wget http://pbfs.physics.berkeley.edu/BoloCalc/EX/ex.zip
    unzip ex.zip -d Experiments/
    rm ex.zip
fi

echo
back to top