Skip to main content

flexCALC

This project is a part of the larger X-ray tomographic reconstruction toolbox comprised of flexDATA, flexTOMO and flexCALC. flexCALC contains various routines useful with tomographic reconstructions but not directly reconstruction algorithms. These routines include data pre- and post-processing tools, simulation of spectral data, and batch-processing of large number of datasets.

Getting Started

We recommend that the user installs conda package manager for Python 3.

Installing with conda

conda install flexcalc -c cicwi -c astra-toolbox -c nvidia

Installing with pip

pip install flexcalc

Installing from source

git clone https://github.com/cicwi/flexcalc.git
cd flexcalc
pip install -e .

Running the examples

To learn about the functionality of the package check out our examples/ folder. Examples are separated into blocks that are best to run in VS Code / Spyder environment step-by-step.

Modules

flexCALC is comprised of several modules:

  • flexcalc.process: Pre- and post-processing routines. For instance: volume registration, rings removal etc.
  • flexcalc.analyze: Utilities for data analysis.
  • flexcalc.batch: Define a batch processing pipeline and push multiple datasets through it.

Typical usage:

# Import:
from flextomo import project
from flexcalc import process

# Read data and apply beam-hardening:
proj, geom = process.process_flex(path)
proj = process.equivalent_density(proj, geom, energy, spec, compound = 'Al', density = 2.7)

# Align the rotation centre:
process.optimize_rotation_center(proj, geom, subscale = 2)

# Reconstruct:
vol = project.init_volume(proj)
project.FDK(proj, vol, meta['geometry'])

Authors and contributors

  • Alexander Kostenko - Initial work
  • Willem Jan Palenstijn - Packaging, installation and maintenance
  • Alexander Skorikov - Packaging, installation and maintenance

How to contribute

Contributions are always welcome. If you have any issues, questions, or remarks, then please open an issue on GitHub.

License

This project is licensed under the GNU GENERAL PUBLIC License - see the LICENSE.md file for details

Metadata

Release files for flexcalc 1.0.0

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

Built distribution (wheel)

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

Release files / flexcalc-1.0.0-py3-none-any.whl

Download URL flexcalc-1.0.0-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
698b7ddb4ae5d91221dcaf3e693612b9743e88121b66938a03f338ce436c7264
BLAKE2b-256 checksum
How to use checksums
838a7922712ac15684fcd17d0a16e4cf326a85ba263cc2ae543b0e9cd1727140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.8

Security for flexcalc 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

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