Skip to main content

barc4shadow

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.

Install

pip install barc4shadow

For local development:

pip install -e .

Usage

from barc4shadow import s4_beamline_to_layout, throw, plot_beamline

layout = s4_beamline_to_layout(beamline)
optical_path = throw(layout)
plot_beamline(layout)

Requirements

Python 3.10 or newer, with numpy, matplotlib, and shadow4.


PyPI License: CeCILL-2.1 DOI

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barc4shadow-2026.7.22.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barc4shadow-2026.7.22-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file barc4shadow-2026.7.22.tar.gz.

File metadata

  • Download URL: barc4shadow-2026.7.22.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for barc4shadow-2026.7.22.tar.gz
Algorithm Hash digest
SHA256 46c685374e78d5398332f4f46b55fd28e9aca007737c026c121452f2251b9c87
MD5 3fabc4da97ae79fc5cfc17c3bbc23313
BLAKE2b-256 878f90feeb28769a925f14ff8d0f9860670ee7fa85ecccb0c341b97e267bef5f

See more details on using hashes here.

File details

Details for the file barc4shadow-2026.7.22-py3-none-any.whl.

File metadata

File hashes

Hashes for barc4shadow-2026.7.22-py3-none-any.whl
Algorithm Hash digest
SHA256 1c028e9447207a2581658d9de0d1a52343ee4dbf84b32caefbae472211cf0361
MD5 bc50a2bfb2a9d24f858c0f349b1f0316
BLAKE2b-256 58fe7e9158b7a6637e2491530d5349a4194d1aaba31eea7fc08c603086babdae

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.7.22 This release

2 files

2026.7.16

2 files

2026.7.9

2 files

2026.6.17

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page