Skip to main content

Bragg edge strain mapping

Project description

iBeatles

MIT License DOI

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, pixi is configured to use detached-environments so that you can build the conda packages directly in the repo. This settings can be changed by pixi config set detached-environments false if needed.

Run iBeatles

There are several ways to start the application:

  • Use the entry script to start the GUI application.
pixi run ibeatles
  • Use pixi tasks run to 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 pixi to 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

ibeatles-1.1.4.tar.gz (870.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibeatles-1.1.4-py3-none-any.whl (988.6 kB view details)

Uploaded Python 3

File details

Details for the file ibeatles-1.1.4.tar.gz.

File metadata

  • Download URL: ibeatles-1.1.4.tar.gz
  • Upload date:
  • Size: 870.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ibeatles-1.1.4.tar.gz
Algorithm Hash digest
SHA256 69c92eee479b4d51057496ca96944104a08f66e155084895bab145f77fc0030c
MD5 9cc4234776b3ee3d35f00181d1572263
BLAKE2b-256 43f4521087556639d1e00e88b1e044ccddc8a00d2feeeef3c93603f528968c65

See more details on using hashes here.

Provenance

The following attestation bundles were made for ibeatles-1.1.4.tar.gz:

Publisher: publish.yaml on ornlneutronimaging/iBeatles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ibeatles-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: ibeatles-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 988.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ibeatles-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 33842e9720fde1efec3511b62a8334eeefb96a407fb6588911399d0531195811
MD5 7c8cc9beab2e78b31508fa9239ba1226
BLAKE2b-256 3229dd86298b5bc97550e60e0a5c1b83121b301a6030478c94176580b6e05032

See more details on using hashes here.

Provenance

The following attestation bundles were made for ibeatles-1.1.4-py3-none-any.whl:

Publisher: publish.yaml on ornlneutronimaging/iBeatles

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page