Bragg edge strain mapping
Project description
iBeatles
GUI to automatically fit Bragg Edges, calculate and display strain mapping factors.
Installation
From PyPI (recommended)
To install the latest release from PyPI, use the following command:
pip install ibeatles
This should install the latest release of iBeatles and all its dependencies. To start the application, use the following command:
python -m ibeatles
which will start the GUI application. For command-line interface (CLI) application, use the following command:
python -m ibeatles --no-gui <CONFIG_FILE>
From Conda
To install the latest release from Conda, use the following command:
micromamba install -c conda-forge -c neutronimaging ibeatles
This should install the latest release of iBeatles and all its dependencies. To start the application, use the following command:
python -m ibeatles
which will start the GUI application. For command-line interface (CLI) application, use the following command:
python -m ibeatles --no-gui <CONFIG_FILE>
From Source
Check the instructions in the Development Environment Setup section to setup the development environment for iBeatles.
Development Environment Setup
It is recommended to use a virtual environment to setup the development environment for iBeatles.
The following instructions are for setting up a virtual development environment using pixi.
For detailed instructions on how to install pixi, please refer to the pixi documentation.
- Install
pixi:
curl -fsSL https://pixi.sh/install.sh | bash
- Clone the iBeatles repository:
git clone git@github.com:ornlneutronimaging/iBeatles.git
- Install the dependencies:
cd iBeatles
pixi install
Note that pixi install will install all dependencies, including the editable version of iBeatles.
By default,
pixiis configured to usedetached-environmentsso that you can build the conda packages directly in the repo. This settings can be changed bypixi config set detached-environments falseif needed.
Run iBeatles
There are several ways to start the application:
- Use the entry script to start the GUI application.
pixi run ibeatles
- Use
pixitasksrunto start the GUI application.
# to start GUI application
pixi run start
# to start CLI application
pixi run cli <CONFIG_FILE>
- Use Python interpreter to start the GUI application.
# start GUI application
pixi run python -m ibeatles
# start CLI application
pixi run python -m ibeatles --no-gui <CONFIG_FILE>
Run Tests
To run the tests, use the following command:
pixi run test
Alternatively, you can always invoke the Python interpreter directly:
python -m pytest
Note: we recommend using
pixito run the tests as it will ensure that the correct environment is used.
Build Documentation
More to come...
Packaging
PyPI Package
To build the PyPI package, use the following command:
pixi run build
This will create a dist directory containing the PyPI package.
Conda Package
To build the Conda package, use the following command:
pixi run build-conda
This will build the Conda packages in the conda.recipe directory.
To clean up all the builds, use
pixi run clean
If you prefer to clean all the environments (not builds), use
pixi clean
which will remove all the environments created by pixi.
Project details
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 ibeatles-1.2.0.tar.gz.
File metadata
- Download URL: ibeatles-1.2.0.tar.gz
- Upload date:
- Size: 879.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7af9ca18a88559fe38c73ed34e255df8dd61db80f1acee5c044c365f76b2f28c
|
|
| MD5 |
e573625efd671b74a21aaa92ea92d1bf
|
|
| BLAKE2b-256 |
cf23142046ec982cc6c05bfb710e57613a5fda791afd0d461626258b6b7139de
|
Provenance
The following attestation bundles were made for ibeatles-1.2.0.tar.gz:
Publisher:
publish.yaml on ornlneutronimaging/iBeatles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ibeatles-1.2.0.tar.gz -
Subject digest:
7af9ca18a88559fe38c73ed34e255df8dd61db80f1acee5c044c365f76b2f28c - Sigstore transparency entry: 864247469
- Sigstore integration time:
-
Permalink:
ornlneutronimaging/iBeatles@22a13f94b8e7ea0e31c6ccc1313c0ee35e3de6d5 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/ornlneutronimaging
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@22a13f94b8e7ea0e31c6ccc1313c0ee35e3de6d5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ibeatles-1.2.0-py3-none-any.whl.
File metadata
- Download URL: ibeatles-1.2.0-py3-none-any.whl
- Upload date:
- Size: 997.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c8ddd57fc39d6f7da710437e1ef11bc07d4906a6b42b1aa89a4ba451bd003b0
|
|
| MD5 |
20d74ffc281bba5243485409533801e2
|
|
| BLAKE2b-256 |
b605e91456900e3b8cc8f8ccbdccff31026398716d305da3a74198134c87ab97
|
Provenance
The following attestation bundles were made for ibeatles-1.2.0-py3-none-any.whl:
Publisher:
publish.yaml on ornlneutronimaging/iBeatles
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ibeatles-1.2.0-py3-none-any.whl -
Subject digest:
1c8ddd57fc39d6f7da710437e1ef11bc07d4906a6b42b1aa89a4ba451bd003b0 - Sigstore transparency entry: 864247472
- Sigstore integration time:
-
Permalink:
ornlneutronimaging/iBeatles@22a13f94b8e7ea0e31c6ccc1313c0ee35e3de6d5 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/ornlneutronimaging
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@22a13f94b8e7ea0e31c6ccc1313c0ee35e3de6d5 -
Trigger Event:
push
-
Statement type: