Skip to main content

Lightfall

PyPI version Python versions CI Docs License: BSD-3-Clause

A modern, unified control system for synchrotron lightsource facilities that provides facility-wide consistency with beamline-specific customization.

Overview

Lightfall is designed for the Advanced Light Source (ALS) facility, providing:

  • Unified Interface: Consistent look-and-feel across beamlines with skinnable themes
  • API-First Architecture: Modular, extensible design enabling automation and integration
  • LLM/AI Integration: Claude-powered chatbot for natural language control and assistance
  • FAIR-Compliant Data Management: Integration with Tiled for data cataloging and access
  • Secure Remote Operations: Full remote operation capability with fine-grained access control

Features

User Interface

  • Progressive disclosure: user panels with expert panels behind authorization
  • Scripting panel with Jupyter-lab style interface
  • LLM panel for controlling panels via natural language
  • GUI Builder for drag-and-drop interface creation
  • Persistent user preferences saved across sessions

Device Management

  • Centralized device catalog with lifecycle tracking
  • Real-time monitoring via EPICS Channel Access
  • Version-controlled device configurations
  • Rich high-level controls integrated into workflows

Data Acquisition

  • Bluesky-based acquisition engine
  • Flexible signal/stream selection with real-time visualization
  • Interactive, pausable, restartable acquisition
  • Automatic data persistence to Tiled catalog

Data Browser

  • Browse and search data stored in Tiled server
  • Filter by date range, plan type, exit status
  • Pagination for large datasets
  • Click/double-click signals for integration with analysis tools

Installation

pip install lightfall

Development Installation

# Clone the repository
git clone https://github.com/als-controls/lightfall.git
cd lightfall

# Create and activate virtual environment
python -m venv .venv
.venv\Scripts\activate  # Windows
# or
source .venv/bin/activate  # Unix

# Install in development mode with dev dependencies
pip install -e ".[dev]"

Running the Application

lightfall

Configuration

Lightfall uses a layered configuration system:

  1. System defaults - Built-in defaults
  2. Site configuration - Facility-wide settings
  3. User preferences - Personal customizations

Configuration files are stored in:

  • Windows: %APPDATA%\lightfall\
  • Linux/Mac: ~/.config/lightfall/

Architecture

Lightfall is built on:

  • PySide6 - Qt for Python GUI framework
  • Bluesky - Data acquisition framework
  • Ophyd - Device abstraction layer
  • Tiled - Data catalog and access
  • EPICS - Control system communication

Plugin System

Lightfall supports plugins for:

  • Panels - Custom UI panels
  • Settings - Preference pages
  • Status Bar - Status indicators
  • Engines - Acquisition backends
  • Plans - Scan procedures

Development

Running Tests

pytest

Code Quality

# Linting
ruff check src tests

# Type checking
mypy src

Project Structure

lightfall/
├── src/lightfall/
│   ├── acquire/        # Data acquisition engine (Bluesky RunEngine, plans)
│   ├── auth/           # Authentication & authorization
│   ├── claude/         # Embedded Claude agent integration
│   ├── config/         # Configuration management
│   ├── core/           # Core application classes
│   ├── devices/        # Device catalog & backends
│   ├── epics/          # EPICS (caproto) widgets & helpers
│   ├── exporter/       # Data exporter CLI
│   ├── ipc/            # Inter-process communication (NATS)
│   ├── logbook/        # Logbook client
│   ├── pipelines/      # Pipeline client
│   ├── plugins/        # Plugin system
│   ├── services/       # Application services (Tiled, CA tunnel, etc.)
│   ├── settings/       # User-portable settings client
│   ├── ui/             # User interface
│   │   ├── panels/     # Panel implementations
│   │   ├── widgets/    # Reusable widgets
│   │   ├── preferences/  # Settings UI
│   │   └── theme/      # Theming system
│   ├── utils/          # Utilities
│   └── visualization/  # Plotting & live visualization
└── tests/              # Test suite

Download files

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

Source Distribution

lightfall-0.2.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

lightfall-0.2.0-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file lightfall-0.2.0.tar.gz.

File metadata

  • Download URL: lightfall-0.2.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lightfall-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0376d2e3dfccc5d8aea0218da257ccfe43640e5f164109718c94f0700b9199d1
MD5 be264bd69deddf07ae8ee6b03aa12118
BLAKE2b-256 9716612712c148fb18c70c610b32d89d40799a0a75f657dae22d7c96ee24eac8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightfall-0.2.0.tar.gz:

Publisher: release.yml on als-controls/lightfall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lightfall-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lightfall-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lightfall-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52ee08ded6222b53dc5ed0e2b756b5ab36ab6499ca086b4471d395cc06f4f56c
MD5 065cc6903c75f1202c312cf19bf41df5
BLAKE2b-256 bc2a77b614a2652833d8c3f6f36691e5229d5d314f059c28b14ee1fcfa75e5d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lightfall-0.2.0-py3-none-any.whl:

Publisher: release.yml on als-controls/lightfall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.1

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