Shared Instrument Scripts
The general instrument scripts are in this repository. These scripts include:
The ‘old’ scans library; as of October 2025, this is used by SANS instruments and reflectometers, but is being gradually replaced by Bluesky-based scans
A shared SANS scripting framework. Contains definitions of
do_sansanddo_transShared utilities for Muon beamlines, for example including:
Background plot configuration (using Background Script IOC and Matplotlib)
Zero-field system calibration routines
Deployment
During IBEX deployment, an optional step has been added to the deploy script (see ticket for details) to pull the latest master branch of the scripts repository and attempt an automatic merge with the local branch. This step will immediately fail if the local branch is not named after the machine (e.g. NDXxxx) it is being run on. Following a successful check of the branch name, an automatic merge is attempted and should this fail, a set of instructions is presented to the user to perform a manual merge. No further action is taken by this deployment task.
At the time of writing, there is no automated task for this ‘pull and merge’ of the instrument scripts (i.e. is it not present in the CI system), it is only performed as an optional step during IBEX deployment.