Bluesky Instrument (BITS) package
for APS beamline 3-ID-C. Built on the
apsbits framework.
Where to start:
- New to Bluesky? Read Tutorial: Your first session.
- Coming from SPEC? Read SPEC → Bluesky cross-walk.
- Coming from EPICS? Read EPICS → ophyd.
- Already familiar? Jump to the cheat sheet or quick reference.
On a workstation with the conda environment already configured:
conda activate 3idc-bits
ipythonfrom id3c.startup import *
RE(sim_print_plan())A small Tkinter GUI helps build a plan command and start a session. Run it
from the repository root (needs only the standard-library tkinter):
python gui/3idc_tk.pyBuild a command. Tick a plan file in the left panel (it scans
src/id3c/user/; setup_june_26.py is checked by default), choose a plan,
fill in the parameters, then click Build / Update and Copy the
generated two-line import + RE(...) command to paste into IPython.
Launch Bluesky. Before clicking ▶ Launch Bluesky, set the Work
dir field in the top bar to the folder where the session should start (this
is where data and logs are written; it is created if it does not exist). The
button then opens a terminal in that folder and runs start_3idc_bluesky.sh,
which activates the 3idc-bits conda environment and starts IPython with the
instrument loaded (from id3c.startup import *).
Repository conventions live in
AGENTS.md at the root. Developer-facing guidance
(pre-commit setup, opt-out, style) is in
docs/source/contributing.md.
https://github.com/BCDA-APS/3idc-bits/issues
For first-time installation, see the developer setup section in CONTRIBUTING.