- First, follow steps 1 through 7: Github and Git Setup
- Next, run the following commands in a terminal (linux or mac terminal should work):
-(note: lines starting with '//' are comments with explanation and don't need to be ran)
// ssh into the s3df machines
ssh -Yt <slac-linux-username>@s3dflogin.slac.stanford.edu
ssh psana
// do setup for s3df environment
source /sdf/group/lcls/ds/ana/sw/conda2/manage/bin/psconda.sh
// download the code
mkdir repos && cd repos
git clone [email protected]:slaclab/beamtime-calibration-suite.git
cd beamtime-calibration-suite
// do more environment setup for suite-scripts
source setup.sh
// setup for running an example script
cd suite_scripts
mkdir setup_test_output
// run an example script
OUTPUT_ROOT=. python EventScanParallelSlice.py -r 102 --maxNevents 500 -p /setup_test_output
//let the script run to completion...
// now check the example ran correctly
ls setup_test_output
//if things are working correctly, you should see these non-empty files:
eventNumbers_c0_r102_rixx1005922.npy EventScanParallel_c0_r102__n666.h5
means_c0_r102_rixx1005922.npy
If you are new to git/github, start with Learning Git
An overview of the development process is found here
Info on testing can be found here
For commit messages, we can try to follow the PyDM guidelines: https://slaclab.github.io/pydm/development/development.html#commit-guidelines