scripts and documentation on bootstrapping a SO software environment in SO:UK.
This is the recommended method if you are developing on your machine. For simons1, soukdev1, Blackett, SDSC, or NERSC, see relevant sections in SO wiki or talk to respective people in loading maintained SO software environments.
-
install conda/mamba first
-
install SO environment: before you begin, you may want to edit
examples/so.ymlmanually if you want to choose a different version oftoastorsotodlibfor example.-
create new environment:
-
using conda:
# you may need to activate the base environment first if you haven't done so. conda activate # or . activate # then conda env create -f examples/so.yml conda activate so-310 python -m ipykernel install --user --name so-310 --display-name so-310
-
using mamba:
# you may need to activate the base environment first if you haven't done so. conda activate # or . activate # then mamba env create -f examples/so.yml conda activate so-310 python -m ipykernel install --user --name so-310 --display-name so-310
-
-
update existing environment:
-
using conda:
conda env update --name so-310 --file examples/so.yml --prune -
using mamba:
mamba env update --name so-310 --file examples/so.yml --prune
-
-
-
(optional) install & development: here we use
sotodlibas an example:# go to some directory that you want to put the git repo first git clone git@github.com:simonsobs/sotodlib.git # change branch or tag if you need # pip install -e .
-
running TOAST test to ensure your installation works:
python -c 'import toast.tests; toast.tests.run()'