This release is a pre-release and may not be stable for production use.
Bernardyn
Bernardyn is a PySide6/PyQtGraph workbench for publication-oriented plotting of small-angle scattering and diffraction curves. It keeps scientific arrays out of widgets and stores complete, source-independent graphs in portable HDF5 packages.
Current capabilities
- Browse all discoverable NXcanSAS/simple-HDF5 entries and 2–4 column text data.
- Keep a workspace-wide dataset catalog and independent graph tabs.
- Plot General I(Q), Guinier, rod/sheet Guinier, Kratky, dimensionless Kratky, Porod, modified Porod, Zimm, and Debye–Bueche views.
- Style each curve, errors, labels, axes, legends, typography, and annotations.
- Render 3D line waterfalls and common-grid surfaces with an isolated, lazily-loaded PyQtGraph OpenGL backend and 2D fallback.
- Save one graph or a deduplicated multi-graph workspace as
*.bernardyn.h5, including canonical data, resolved snapshots, configuration, checksums, previews, and 3D renderer data. - Export PNG/JPEG/SVG, CSV, Igor ITX, and canonical data through PyIrena's H5XP writer. H5XP export is data interoperability, not Bernardyn graph persistence.
The native schema is documented in
bernardyn/schemas/graph-package-v1.md.
User-facing workflow and file-format documentation is in
docs/.
User-visible changes are recorded in changelog.md.
Install and run
Bernardyn targets Python 3.10–3.13 and shares its Qt plotting dependencies with
PyIrena. For development, keep the Bernardyn and pyirena repositories next
to each other and create the pinned Conda environment from the Bernardyn root:
conda env create -f environment.yml
conda activate bernardyn
bernardyn-doctor
bernardyn
The environment file installs both repositories in editable mode. If an older
bernardyn environment already exists with Python 3.14, remove and recreate it:
conda deactivate
conda env remove -n bernardyn
conda env create -f environment.yml
conda activate bernardyn
For an already compatible Python 3.10–3.13 environment, installation can also be performed manually:
python -m pip install -e "../pyirena[qtplot]"
python -m pip install -e ".[dev]"
bernardyn
To diagnose an installation:
bernardyn-doctor
bernardyn-doctor --json
The OpenGL renderer needs a usable graphics context. If it cannot initialize, Bernardyn displays a 2D offset-waterfall fallback and retains the 3D document configuration.
Development
pytest
ruff check bernardyn tests
python -m build
twine check dist/*
Extension entry points are bernardyn.sources, bernardyn.transforms, and
bernardyn.renderers; see bernardyn/EXTENDING.md.
Scope
Version 1.0 is a plotting and presentation application. Model fitting, reduction, destructive source modification, movies, and calibrated 2D detector workflows are intentionally outside 1.0. Existing experimental 0.1 containers are not treated as compatible graph packages.
Bernardyn is distributed under the MIT License.
Metadata
Release files for bernardyn 0.0.1b3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bernardyn-0.0.1b3.tar.gz | 90.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bernardyn-0.0.1b3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.4 kB
Release files / bernardyn-0.0.1b3.tar.gz
| Download URL | bernardyn-0.0.1b3.tar.gz |
|---|---|
| Size | 90.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b4404681f35b873b803d7900cdd0f7a956c42be74f43a52b11de5a0cdd3db82
|
|
BLAKE2b-256 checksum How to use checksums |
463dd7e337a15a02577d3271a5ad02445385314b8e56bdc5c40b8d9bd9e89957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / bernardyn-0.0.1b3-py3-none-any.whl
| Download URL | bernardyn-0.0.1b3-py3-none-any.whl |
|---|---|
| Size | 86.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cbafd5a24736220e16be818b14f67423616f69452248b5b0cbfeff281262890
|
|
BLAKE2b-256 checksum How to use checksums |
80028f54a5dae2adb1ddec2ded0c939e42aa5440593eca35174895a6b17b0e03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log