Small helper package for SHADOW4 beamlines.
It converts SHADOW4 beamlines into a simple layout dictionary and provides Matplotlib plotting utilities for single or overlaid beamline configurations.
pip install barc4shadowFor local development:
pip install -e .from barc4shadow import s4_beamline_to_layout, plot_beamline
layout = s4_beamline_to_layout(beamline)
plot_beamline(layout)Python 3.10 or newer, with numpy, matplotlib, and shadow4.