Developing applications on your local machine is strongly recommended as it saves on headaches with using shared OPIs and allows for robust testing on a simulated machine before launching in production.
Installing PyDM
The basic steps can be found in the official documentation, but some quality of life improvements include:
- Setting an alias in your native system to launch the pydm conda environment
- Learning how to save environment variables in your conda environment (this will be needed for simulacrum)
- Note that you need to scroll down for Mac/linux
Installing Simulacrum
These steps should all be done in your pydm conda environment unless you don't need/intend to use PyDM
- Run
conda install --update-all --force-reinstall -y -c conda-forge bmad
- Run
git clone git@github.com:slaclab/lcls-lattice.git
- This repo can live wherever, just remember where it lives
- Set the
LCLS_LATTICE
environment variable to wherever the repo in step 2 lives - Run
git clone git@github.com:slaclab/simulacrum.git
- Run python <service directory>/<service>.py for any service you want running
- This will eat a terminal tab. I