Working at the LST-IT center

From my_wiki
Revision as of 11:53, 3 November 2021 by Daniel.Morcuende (talk | contribs) (Created page with "=Usage of conda environments= Add <code>source /fefs/aswg/software/conda/etc/profile.d/conda.sh</code> to your <code>~/.bashrc</code>. The <code>base</code> is just a minicon...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage of conda environments

Add source /fefs/aswg/software/conda/etc/profile.d/conda.sh to your ~/.bashrc. The base is just a miniconda with mamba, so basically nothing else then conda / mamba / python / pip and their dependencies.

See available environments by doing conda env list

base                     /fefs/aswg/software/conda
lstchain-0.7.5           /fefs/aswg/software/conda/envs/lstchain-0.7.5

Use standard lstchain installation

lstchain-0.7.5 env can be used by doing conda activate lstchain-0.7.5


Manage your own environments

You can use this also to create your own envs, which by default will be created in $HOME/.conda/envs since you will lack write permissions to the conda installation folder (owned by lstanalyzer). You might want to change that to /fefs/aswg/workspace/$USER where users have a larger quota. You can do this by adding this to tour $HOME/.condarc:

envs_dirs:
  - /fefs/aswg/workspace/<YOUR USERNAME HERE>/.conda/envs
  - /fefs/aswg/software/conda/envs

pkgs_dirs:
  - /fefs/aswg/workspace/<YOUR USERNAME HERE>/.conda/pkgs