Skip to main content

A CPU & GPU compatible Python package for Electron Paramagnetic Resonance Imaging

Project description

PyEPRI

Advanced Algorithms and Low-Level Operators for Electron Paramagnetic Resonance Imaging.

Package documentation and tutorials are available here.

If you have any comments, questions, or suggestions regarding this code, don't hesitate to open a discussion or a bug issue.

Installation

Install latest stable version using pip (recommended)

Assuming you have a compatible system with python3 and pip installed, the following steps will create a virtual environment, and install the latest stable version of pyepri.

###################################################
# Create and activate a fresh virtual environment #
###################################################
python3 -m venv ~/.venv/pyepri
source ~/.venv/pyepri/bin/activate

#########################################################
# Install the `pyepri` package from the PyPi repository #
#########################################################
pip install pyepri

################################################################
# Optionally (and advised if you have a GPU device with CUDA   #
# installed), you can enable `torch` and/or `cupy` backends by #
# executing the following commands                             #
################################################################
pip install "pyepri.[torch]" # for enabling `torch` backend support
pip install "pyepri.[cupy]" # for enabling `cupy` backend support

Install latest version from sources

Assuming you have a compatible system with python3, pip and git installed, the following steps will checkout current code release, create a virtual environment, and install pyepri.

##################
# Clone the code #
##################
git clone https://github.com/remy-abergel/pyepri.git
cd pyepri

###################################################
# Create and activate a fresh virtual environment #
###################################################
python3 -m venv ~/.venv/pyepri
source ~/.venv/pyepri/bin/activate

##########################################################
# Install the `pyepri` package from the checked out code #
# (do not forget the . at the end of the command line)   #
##########################################################
pip install -e .

################################################################
# Optionally (and advised if you have a GPU device with CUDA   #
# installed), you can enable `torch` and/or `cupy` backends by #
# executing the following commands                             #
################################################################
pip install -e ".[torch]" # for enabling `torch` backend support
pip install -e ".[cupy]" # for enabling `cupy` backend support

################################################################
# If you want to compile the documentation by yourself, you    #
# must install the [doc] optional dependencies of the package, #
# compilation instructions are provided next                   #
################################################################
pip install -e ".[doc]" # install some optional dependencies
make -C docs html # build the documentation in html format
firefox docs/_build/html/index.html # open the built documentation (you can replace firefox by any other browser)

Because this installation was done in editable mode (thanks to the -e option of pip), any further update of the repository (e.g., using the syncing commang git pull) will also update the current installation of the package.

Troubleshooting

  • If the installation of the package or one of its optional dependency fails, you may have more chance with conda (or miniconda).

  • If you still encounter difficulties, feel free to open a bug issue.

License

PyEPRI was created by Rémy Abergel (Centre National de la Recherche Scientifique, Université Paris Cité, Laboratoire MAP5). It is licensed under the terms of the MIT license.

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

pyepri-1.0.0.tar.gz (66.6 MB view details)

Uploaded Source

Built Distribution

pyepri-1.0.0-py3-none-any.whl (57.9 MB view details)

Uploaded Python 3

File details

Details for the file pyepri-1.0.0.tar.gz.

File metadata

  • Download URL: pyepri-1.0.0.tar.gz
  • Upload date:
  • Size: 66.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pyepri-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aaf28f24f414f2c7b034d46edbb4840ae419b131404ca2c0cd947681e033319e
MD5 317ff7443e142baa11daa7bf207e4d51
BLAKE2b-256 b9a779f50f72700e870a595d68e0e7e81e92b4179d2471e7e0402b81bcab6cdd

See more details on using hashes here.

File details

Details for the file pyepri-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyepri-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 57.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pyepri-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07703d872e2503ac07236da95f10098aa2065367c9f0aea4cfa906d9a9f0584d
MD5 3b3045d13aca1acd41e657108c7bb14c
BLAKE2b-256 32d53cec1a03e9a1a41b853dabcea3fc6bfe54a7209e1c247030bc7dac1d6029

See more details on using hashes here.

Supported by

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