Library for neutron ToF imaging
Project description
Time of Flight neutron Imaging
This package includes modules for data reduction and analysis of various Time Of Flight (TOF) neutron imaging data. Initially designed to reduce MCP/Timepix data, most of the modules are compatible with post-processed 3D matrixes with dimension (x,y,lambda/TOF). Currently implemented packages:
- Various tools for TOF imaging data processing / visualization
- Advanced Bragg edge fitting of 1d-arrays, but also stacks of ToF images
- Bragg edge fitting using derivative's Gaussian of 1d-arrays, but also stacks of ToF images
- Estimation of phase fraction, from a linear combination of basis functions (requires a priori material cross sections)
- Tools for Frame overlap Bragg edge imaging (FOBI) data reduction
For a detailed guide of how to use this package please visit https://neutronimaging.github.io/ToFImaging/.
For questions please contact matteo.busi@psi.ch or anders.kaestner@psi.ch or use the issue box https://github.com/neutronimaging/ToFImaging/issues
How to Install
The package can be installed via pip using the command:
pip install tofimaging
Then the modules can be imported using e.g. the commands:
import tofimaging.EdgeFitting as efit
import tofimaging.PhaseFitting as pfit
import tofimaging.ReductionTools as rt
Alternatively, the package can be cloned via git or downloaded from the website to the local machine, then loaded by the commands:
import sys
sys.path.insert(0, "path-to-repository\\src")
import tofimaging.EdgeFitting as efit
import tofimaging.PhaseFitting as pfit
import tofimaging.ReductionTools as rt
Make sure to update the "path-to-repository" with the path to this downloaded package in the local machine and appending the "\src" as shown. This procedure, may require further installation of external modules, listed in requirements.txt
How to Use
The functions can inspected in the documentation and called in the command prompt or jupyter notebook. E.g. if you installed using the above:
import tofimaging.EdgeFitting as efit
efit.GaussianBraggEdgeFitting2D(ToFdata,spectrum)
For the software documentation please visit https://neutronimaging.github.io/ToFImaging/
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file tofimaging-1.0.1.tar.gz
.
File metadata
- Download URL: tofimaging-1.0.1.tar.gz
- Upload date:
- Size: 125.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a3a907d6d74ba8d45b6d3973f701cd0447de15876a9dd2e96784e8d583f1eb |
|
MD5 | 51f888c7de30c202f152c43d8c00b01d |
|
BLAKE2b-256 | 977d5d47650b8fd999dabfdb38b550730289b5a89ae49c163b56971aeb6ac2ac |
File details
Details for the file tofimaging-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: tofimaging-1.0.1-py3-none-any.whl
- Upload date:
- Size: 105.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f0a8d418e68144550314538b15b5b1ac528cbc447742d3536e71ba35a0f3da |
|
MD5 | c510a8b99a783b5f708f7f5c4f0f3e42 |
|
BLAKE2b-256 | 2ae374db759f76930ee01ddf7c4c16735471323dec29ba7544499af96f967a35 |