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/.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bernardyn-0.0.1b1.tar.gz.
File metadata
- Download URL: bernardyn-0.0.1b1.tar.gz
- Upload date:
- Size: 80.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a8f675dc4195224fae6ffade0f675b605591674cf44a57a119ffb1ea100d645
|
|
| MD5 |
e9ff3df14049cb6ac1d22c04d1cdff52
|
|
| BLAKE2b-256 |
78eee7da57c5d37a62184c4e54e08ba18f0a82fc11cb197a1e4f1800920a24bc
|
Provenance
The following attestation bundles were made for bernardyn-0.0.1b1.tar.gz:
Publisher:
release.yml on jilavsky/bernardyn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bernardyn-0.0.1b1.tar.gz -
Subject digest:
9a8f675dc4195224fae6ffade0f675b605591674cf44a57a119ffb1ea100d645 - Sigstore transparency entry: 2732644223
- Sigstore integration time:
-
Permalink:
jilavsky/bernardyn@f3b9632f77042f0d1a632209124cbc508a26b4c4 -
Branch / Tag:
refs/tags/v0.0.1b1 - Owner: https://github.com/jilavsky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f3b9632f77042f0d1a632209124cbc508a26b4c4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file bernardyn-0.0.1b1-py3-none-any.whl.
File metadata
- Download URL: bernardyn-0.0.1b1-py3-none-any.whl
- Upload date:
- Size: 79.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bfabd2363f9e191a5dbb5022dfe9c18b66ee1e40026d643c39933143887f041
|
|
| MD5 |
987ca219a40e7f8befa9715d4c6856eb
|
|
| BLAKE2b-256 |
31268dc4ab7d33b747489d35351c1d888f4824daf1ff76f17746305888906cf2
|
Provenance
The following attestation bundles were made for bernardyn-0.0.1b1-py3-none-any.whl:
Publisher:
release.yml on jilavsky/bernardyn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bernardyn-0.0.1b1-py3-none-any.whl -
Subject digest:
3bfabd2363f9e191a5dbb5022dfe9c18b66ee1e40026d643c39933143887f041 - Sigstore transparency entry: 2732644330
- Sigstore integration time:
-
Permalink:
jilavsky/bernardyn@f3b9632f77042f0d1a632209124cbc508a26b4c4 -
Branch / Tag:
refs/tags/v0.0.1b1 - Owner: https://github.com/jilavsky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f3b9632f77042f0d1a632209124cbc508a26b4c4 -
Trigger Event:
release
-
Statement type: