Skip to main content
Orochi Logo

orochi.pipeline

PyPi Forge PythonVersion PR

CI Codecov Black Tracking

— Orochi Pipeline: Automated Workflows for Synchrotron Total Scattering —

orochi.pipeline orchestrates specialized Orochi 4.0 modules (pixia, pdfget, phase, pdfsim, and fit) into high-level, production-ready workflows for synchrotron and laboratory total scattering experiments.

Available Pipelines

  1. ``CalibrationPipeline``: Automated detector geometry refinement (sample distance, beam center, detector tilts, wavelength) using certified powder diffraction standards (CeO₂, Ni, LaB₆).

  2. ``Reduction2DPipeline``: High-throughput transformation of 2D area detector frames into 1D profiles I(Q) and pair distribution functions G(r), applying polarization, solid angle, and oblique sensor absorption corrections.

  3. ``Reduction1DPipeline``: 1D profile total scattering reduction with Faber–Ziman normalization, background subtraction, and automated Fourier ripple suppression via polynomial optimization.

  4. ``RefinementPipeline``: Real-space structural refinement against crystallographic CIF models with anisotropic directional PBCs (1D/2D/3D), nanoparticle shape envelopes, and exact Q-dependent form-factor simulations.

  5. ``FullAnalysisPipeline``: End-to-end analysis chaining raw experimental reduction directly into structural refinement in a single script.

Quickstart: End-to-End Analysis Pipeline

The following example executes complete 1D profile reduction followed by real-space CIF refinement in a single call:

from orochi.pipeline import FullAnalysisPipeline

pipeline = FullAnalysisPipeline(work_dir="./results", study_name="CeO2_Experiment")

# Run complete workflow: reduction + structural refinement
results = pipeline.from_1d_profile(
    sample_data="CeO2_raw_profile.xy",
    background_data="Capillary_background.xy",
    composition="CeO2",
    cif_file="CeO2.cif",
    rambda=0.18033,           # X-ray wavelength in Angstroms
    qmin=0.8,
    qmax=25.0,
    fit_min=1.5,
    fit_max=20.0,
    pbc=(True, True, True),   # 3D bulk periodicity
    qdepend=True,             # Exact Q-dependent atomic form factors
    tune=True,                # Automated low-r ripple minimization
)

# Inspect refined parameters and goodness-of-fit
summary = results["summary"]
print("Refined Scale:", summary["best_params"].get("sim_0_scale"))
print("Goodness of fit (Rw):", summary["rw"])

Installation

Install via pip:

pip install orochi.pipeline

Or install in development mode from source:

git clone https://github.com/Tominaka-Laboratory/orochi.pipeline.git
cd orochi.pipeline
pip install -e .

To confirm successful installation:

python -c "import orochi.pipeline; print(orochi.pipeline.__version__)"

Citation

If you use orochi.pipeline in your research, please cite:

Orochi Software Suite, Tominaka Laboratory, National Institute for Materials Science (NIMS). https://github.com/Tominaka-Laboratory/orochi.pipeline

License

This project is licensed under the GNU General Public License v3.0 (GPLv3). See the LICENSE.rst file for details.

This copyleft license guarantees that Orochi remains freely accessible, open, and transparent to the entire scientific community, and that all derivative works must likewise remain open source.

Citation

If you use this package in academic research, please cite:

@article{tominaka2026orochi,
  title   = {Orochi: A Physics-Grounded Python Package for Pair Distribution Function Analysis of Crystalline and Low-Dimensional Materials},
  author  = {Tominaka, Satoshi},
  year    = {2026},
  url     = {https://github.com/Tominaka-Laboratory/orochi}
}

Contact

For bug reports and questions, visit GitHub Issues or contact Dr. Satoshi Tominaka at tominaka.satoshi@nims.go.jp.

Metadata

Release files for orochi.pipeline 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orochi.pipeline 4.0.0
File Size Uploaded Provenance
orochi_pipeline-4.0.0.tar.gz 28.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for orochi.pipeline 4.0.0
File Interpreter ABI Platform
orochi_pipeline-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.6 kB

Release files / orochi_pipeline-4.0.0.tar.gz

Download URL orochi_pipeline-4.0.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6dd50613e1ebf1d7c11b63c7df4ab3b2632cc39d05a9f8ed616e23a263ca74d1
BLAKE2b-256 checksum
How to use checksums
03a06fa2f6655a9267ef2a0f652beac6587f24b28bbcdbde8daa31f585f0ea61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / orochi_pipeline-4.0.0-py3-none-any.whl

Download URL orochi_pipeline-4.0.0-py3-none-any.whl
Size 29.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6597bd803838894b6dc7a89cd6aa93562fc2363b6f0aa9dd67ebb764c7ca2256
BLAKE2b-256 checksum
How to use checksums
757fcd8e374247bfa42ad32aff9b43a62ed07405c7892989aa020e674d068b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for orochi.pipeline 4.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files No provenance

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