Skip to content
This repository was archived by the owner on Oct 17, 2026. It is now read-only.
WSU-Carbon-LabPublic archive

About

Python toolkit for processing and analyzing Polarized Resonant Reflectivity Data

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Now archived, see pxr-reduce and refloxide maintained by the ALS beam-line scientists.

Table of Contents

This repository contains the Python package, Rust acceleration layer, and tooling for PRSoXR beamtime ingestion and reduction.

  • python/pyref - User-facing Python API for loading, reduction, and analysis.
  • src - Rust backend for high-throughput IO and performance-critical paths.
  • tests - Python test suite and integration checks.
  • AGENTS.md - Full project architecture, conventions, and contributor guide.
  • Documentation Site - Hosted docs and API references.

Report an Issue

Quickstart

Install:

pip install pyref

Python >=3.12 is required.

Load a beamtime and inspect reduced data:

from pathlib import Path
from pyref.loader import PrsoxrLoader

loader = PrsoxrLoader(Path("/path/to/beamtime"))

refl = loader.refl
meta = loader.meta

loader.plot_data()

Optional interactive tools:

loader.mask_image()
loader.check_spot()

Development

All development commands use uv for Python and cargo for Rust:

git clone https://github.com/WSU-Carbon-Lab/pyref.git
cd pyref
uv sync
uv run pytest

Build the experiment browser TUI:

cargo browser

About

Python toolkit for processing and analyzing Polarized Resonant Reflectivity Data

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages