Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to create a new environment with a selected set of packages use a command like this (after sourcing the appropriate psana1/psana2 setup script).

Code Block
conda env create --name roottest root psana

If you want to get a conda environment with psana you can clone the psana environment into a local environment that you can control with a command like this (which will take some time because it has to copy several GB to the new environment):

Code Block
conda env create --name my-ana-1.3.10 --clone ana-1.3.10

...

Then activate your new environment with:

Code Block
sourceconda activate my-ana-1.3.10

Then install the conda-python package you want (potentially a specific version) using a command like:

...

A special installation area has been created for users to install conda environments to avoid using up home-directory quota space.  Use commands similar to these to create your own environments.  NOTE: the example below is for the old psana farm, in s3df the location is

Code Block
source /sdf/group/lcls/ds/

...

Code Block
source /cds/sw/ds/ana/conda2ana/sw/conda1/manage/bin/psconda.sh  # # for LCLS2LCLS1 environments. replace "conda2conda1" with "conda1conda2" for LCLS1LCLS2
# for the following 3 commands, change "my-h5-1.0.0" to the name of your environment
export CONDA_PKGS_DIRS=/sdf/cdsgroup/lcls/swds/packagetools/conda_envs/my-h5-1.0.0/.pkgs # avoids storing large package files in your home directory
conda create --prefix /sdf/cdsgroup/lcls/swds/packagetools/conda_envs/my-h5-1.0.0 --clone h5-1.0.0
chmod -R +r /sdf/group/cdslcls/swds/packagetools/conda_envs/my-h5-1.0.0 # make directory world-readable

...