Skip to main content

XRF Tomography Reconstruction

Project description

https://img.shields.io/travis/dmgav/xrf-tomo.svg https://img.shields.io/pypi/v/xrf-tomo.svg

XRF Tomography Reconstruction

Installation

The software is expected to work with Python version 3.7-3.9. Create conda environment with the preferable python version:

$ conda create -n xrf-tomo-env python=3.8 -c conda-forge
$ conda activate xrf-tomo-env

tomopy and xraylib (dependency of PyXRF) are not available from PyPI and need to be installed from conda-forge:

$ conda install tomopy pyxrf -c conda-forge

svmbir is an optional dependency. Install svmbir separately if needed. Instructions are slightly different depending on OS. Linux:

$ pip install svmbir

OSX:

$ ln -sf /usr/local/bin/gcc-10 /usr/local/bin/gcc
$ CC=gcc pip install --no-binary svmbir svmbir

Windows:

$ CC=gcc pip install svmbir

Finally install this package. From PyPI:

$ pip install xrf-tomo

From source (develop install). Clone the repository in the appropriate directory and then install with pip:

$ git clone https://github.com/NSLS-II-SRX/xrf-tomo
$ cd xrf-tomo
$ pip install -e .

Using the package

Activate the environment:

$ conda activate xrf-tomo-env

In IPython environment or a script import necessary or all functions from the package, e.g.

from xrf_tomo import *

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

xrf-tomo-0.1.2.tar.gz (40.7 kB view hashes)

Uploaded Source

Built Distribution

xrf_tomo-0.1.2-py3-none-any.whl (20.1 kB view hashes)

Uploaded Python 3

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