Skip to main content

Time of Flight neutron Imaging

Status: Build Status

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/

Metadata

Release files for tofimaging 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tofimaging 1.0.1
File Size Uploaded Provenance Actions
tofimaging-1.0.1.tar.gz 125.0 kB Without provenance Details for tofimaging-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tofimaging 1.0.1
File Interpreter ABI Platform Actions
tofimaging-1.0.1-py3-none-any.whl Python 3 none any Details for tofimaging-1.0.1-py3-none-any.whl

Total release size: 230.9 kB

Release files / tofimaging-1.0.1.tar.gz

Download URL tofimaging-1.0.1.tar.gz
Size 125.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c3a3a907d6d74ba8d45b6d3973f701cd0447de15876a9dd2e96784e8d583f1eb
BLAKE2b-256 checksum
How to use checksums
977d5d47650b8fd999dabfdb38b550730289b5a89ae49c163b56971aeb6ac2ac
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tofimaging-1.0.1-py3-none-any.whl

Download URL tofimaging-1.0.1-py3-none-any.whl
Size 105.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f0a8d418e68144550314538b15b5b1ac528cbc447742d3536e71ba35a0f3da
BLAKE2b-256 checksum
How to use checksums
2ae374db759f76930ee01ddf7c4c16735471323dec29ba7544499af96f967a35
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tofimaging 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page