GUI to automatically fit Bragg Edges, calculate and display strain mapping factors.
To install the latest release from PyPI, use the following command:
pip install ibeatlesThis should install the latest release of iBeatles and all its dependencies. To start the application, use the following command:
python -m ibeatleswhich will start the GUI application. For command-line interface (CLI) application, use the following command:
python -m ibeatles --no-gui <CONFIG_FILE>To install the latest release from Conda, use the following command:
micromamba install -c conda-forge -c neutronimaging ibeatlesThis should install the latest release of iBeatles and all its dependencies. To start the application, use the following command:
python -m ibeatleswhich will start the GUI application. For command-line interface (CLI) application, use the following command:
python -m ibeatles --no-gui <CONFIG_FILE>Check the instructions in the Development Environment Setup section to setup the development environment for iBeatles.
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 [email protected]:ornlneutronimaging/iBeatles.git- Install the dependencies:
cd iBeatles
pixi installNote 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.
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>To run the tests, use the following command:
pixi run testAlternatively, you can always invoke the Python interpreter directly:
python -m pytestNote: we recommend using
pixito run the tests as it will ensure that the correct environment is used.
More to come...
To build the PyPI package, use the following command:
pixi run buildThis will create a dist directory containing the PyPI package.
To build the Conda package, use the following command:
pixi run build-condaThis will build the Conda packages in the conda.recipe directory.
To clean up all the builds, use
pixi run cleanIf you prefer to clean all the environments (not builds), use
pixi cleanwhich will remove all the environments created by pixi.