This notebook demonstrates how the LabView Beamline Control System API can be used to implement a "Single Motor Scan" as an ophyd
device. Furthermore, this "Single Motor Scan" device can be initiated by the bluesky
Run Engine as a fly
plan with data avaliable in a bluesky run document.
Open BCS-API_06_BlueskyFlying_M201Roll_BcszSync_nb.ipynb
or BCS-API_06_BlueskyFlying_M201Roll_BcszSync_nb.html
for details.
This notebook demonstrates how the LabView Beamline Control System API can be used to implement a "Single Motor Flying Scan" as an ophyd
device. Furthermore, this "Single Motor Flying Scan" device can be initiated by the bluesky
Run Engine as a fly
plan with data avaliable in a bluesky run document.
Open BCS-API_07_BlueskyFlying_FlyingBeamlineEnergy_BcszSync_nb.ipynb
or BCS-API_07_BlueskyFlying_FlyingBeamlineEnergy_BcszSync_nb.html
for details.
- Install conda
- Configure conda environment
- Install git
- Configure git repository
...in a new/empty folder - Pull: Download repository to local folder
- Push: Upload committed changes to server
Run the following commands on the command line; press 'Y'(es) when requested
conda create --name bluesky python=3.8
conda activate bluesky
conda install future
conda install -c conda-forge jupyterlab
conda install intake
conda install -c conda-forge caproto ophyd nodejs
conda update -c conda-forge pip setuptools numpy
conda install git scikit-image
Then install the following bluesky requirements,
per bluesky-tutorial
instructions
# Download tutorial notebooks, requirements, utilities
git clone https://github.com/bluesky/tutorials
cd tutorials
# Install required packages
python -m pip install -r binder/requirements.txt
python -m pip install -e ./bluesky-tutorial-utils # MUST use -e here
# Install extension that supports '%matplotlib widget'.
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-matplotlib
If you get errors regarding "cannot import name 'Blosc' from 'numcodecs'",
you might need to (re)install zarr
conda install git zarr
Installation guide
Download git for windowsInstallation guide
Git is probably already installed on your computer. Try typing the following command in a Terminal window.git --version
The following commands will:
- initialize a local git repository,
- create a branch of that repository that is dedicated to your local folder contents,
- add all files/subfolders to the repository,
- upload a copy of your files to a remote repository
cd <LOCAL-PROJECT-FOLDER>
git init
git config user.name "<YOUR-NAME>"
git config user.email <YOUR-EMAIL>
git remote add origin https://<GITHUB-USER-NAME>@github.com/als-computing/bcs-api.git
git checkout <EXISTING-BRANCH-NAME>
Example:
cd "/C/experiments/Beamline Commissioning/BCS-API/"
git init
git config user.name "Ernest O. Lawrence"
git config user.email [email protected]
git remote add origin https://[email protected]/als-computing/bcs-api.git
git checkout feature0002/configure-devices
cd <LOCAL-PROJECT-FOLDER>
git pull
Example:
cd "/C/experiments/Beamline Commissioning/BCS-API/"
git pull
git checkout -b <BRANCH-NAME>
# Edit and save files
git add .
git commit -m "<COMMIT-MESSAGE>"
git push -u origin <BRANCH-NAME>
Example:
git checkout -b feature0003/backlash-control
# Edit and save files
git add .
git commit -m "Added implicit backlash control to motors"
git push -u feature0003/backlash-control