Skip to content
giadarol edited this page Oct 7, 2019 · 3 revisions

How to setup the environment (on linux)

  • Create a workspace folder:
mkdir /afs/cern.ch/work/e/ecldcode/heat_load_workspace
cd /afs/cern.ch/work/e/ecldcode/heat_load_workspace
  • If you don't have a recent python installation, please install miniconda:
 wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh
 bash Miniconda2-latest-Linux-x86_64.sh

Install in /afs/cern.ch/work/e/ecldcode/heat_load_workspace/miniconda2. It is not necessary to make this python installation, your default. You can answer NO when asked.

  • Activate environment
source /afs/cern.ch/work/e/ecldcode/heat_load_workspace/miniconda2/bin/activate
  • Install dependencies
 pip install numpy scipy h5py matplotlib ipython pandas
  • Make a tools folder
mkdir /afs/cern.ch/work/e/ecldcode/heat_load_workspace/tools
cd /afs/cern.ch/work/e/ecldcode/heat_load_workspace/tools
  • Download heat load tools:
  git clone https://github.com/PyCOMPLETE/GasFlowHLCalculator
  git clone https://github.com/PyCOMPLETE/LHCMeasurementTools
  git clone https://github.com/PyCOMPLETE/LHCCryoHeatLoadCalibration
  • Make a setup_environment.sh file with the following content (to quickly setup the environment at the beginning of each session):
source /afs/cern.ch/work/e/ecldcode/heat_load_workspace/miniconda2/bin/activate
export PYTHONPATH=/afs/cern.ch/work/e/ecldcode/heat_load_workspace/tools/
  • Create a heat load data storage folders
 mkdir /afs/cern.ch/work/e/ecldcode/heat_load_workspace/heat_load_storage
 mkdir /afs/cern.ch/work/e/ecldcode/heat_load_workspace/heat_load_storage/cryo_heat_load_data
 mkdir /afs/cern.ch/work/e/ecldcode/heat_load_workspace/heat_load_storage/recalculated_qbs/recalculated_qbs
  • Change the path in the data download script (edit 000_get_data_for_hl_recalc.py):
default_pkl_filename = \
   '/afs/cern.ch/work/e/ecldcode/heat_load_workspace/heat_load_storage/fills_and_bmodes.pkl'
h5_storage = H5_storage(
   h5_dir = '/afs/cern.ch/work/e/ecldcode/heat_load_workspace/heat_load_storage')

Clone this wiki locally