Content
LCLS1
Development
cd mytestrel
rm .sit_conda_env
source /cds/sw/ds/ana/conda1/manage/bin/psconda.sh
source /cds/sw/ds/ana/conda1/manage/bin/setup_testrel
### defaults to py2, optionally add a "-py3" flag for py3
source /cds/sw/ds/ana/conda1/manage/bin/psconda.sh -py3
source /cds/sw/ds/ana/conda1/manage/bin/setup_testrel
source /cds/sw/ds/ana/conda1/manage/bin/conda_activate ana-4.0.37-py3
git clone git@github.com:lcls-psana/Detector.git
scons
clean_lcls1_env # from ~/bin/clean_lcls1_env
Production
source /cds/sw/ds/ana/conda1/manage/bin/psconda.sh -py3
defaults to py2, optionally add a "-py3" flag for py3
Change test release
List available release by command
conde env list
Then set desired release ana-4.0.## with script/command
conda_activate ana-4.0.##
LCLS2
Development
cd mytestrel
source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh
git clone git@github.com:slac-lcls/lcls2.git
cd lcls2
. setup_env.sh
./clean_lcls2.sh
./build_all.sh
Test build production
./clean_lcls2.sh
./build_all.sh -p install
but keep in mind that any changes to the python will require that command to be issued again ("non-develop" mode).
Then test commands etc. and return back to development
./clean_lcls2.sh
./build_all.sh
Change test release
List available release by command
conde env list
Then set desired release ps-4.5.## with commands
conda deactivate
conda activate ps-4.5.##
Production
source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh
Test release for users of UED
source /reg/g/pcds/dist/pds/ued/scripts/setup_env.sh
Clone packages from git
git clone git@github.com:slac-lcls/lcls2.git
git clone git@github.com:lcls-psana/Detector.git
git clone git@github.com:lcls-psana/PSCalib.git
git clone git@github.com:lcls-psana/CalibManager.git
git clone git@github.com:lcls-psana/pyimgalgos.git
git clone git@github.com:lcls-psana/.git
Build ami2
git clone https://github.com/slac-lcls/lcls2.git
git clone https://github.com/slac-lcls/ami.git
cd lcls2
source setup_env.sh
./build_all.sh
cd ../ami
./build_all.sh
ami-local -b 1 -f interval=1 psana://exp=tmoc00118,run=222,dir=/cds/data/psdm/prj/public01/xtc
ami Simple Introductory Examples