Skip to main content

TexTOM

TexTOM is an end-to-end Python toolbox for texture tomography, covering:

  • detector-frame integration (pyFAI),
  • projection alignment (Mumott-based workflows),
  • physical model generation (diffractlets + projectors),
  • orientation-distribution optimization,
  • post-analysis and visualization.

Documentation

Installation

Requirements

  • Python >=3.9,<3.14
  • Linux/macOS (scientific stack availability may vary by platform)
conda create --name textom python=3.11
conda activate textom
python -m pip install --upgrade pip
python -m pip install textom

From source (development)

git clone https://gitlab.fresnel.fr/textom/textom.git
cd textom
python -m pip install -e ".[test,docs]"

Command-line entry points

After installation:

  • textom: launches an IPython session with TexTOM API preloaded.
  • textom_config: opens textom/config.py for runtime defaults.
  • textom_documentation: opens the legacy PDF manual.

Quickstart

Inside a sample working directory:

textom

Then in the IPython session:

set_path(".")
check_state()
integrate()
align_data()
make_model()
preprocess_data()
optimize()

Typical outputs are created under:

  • analysis/ (intermediate products, models, fits),
  • data_integrated/ and optionally data_integrated_1d/,
  • results/ (derived metrics and exported artifacts).

For a complete walkthrough, follow:

  • docs/tutorials/workflow.md
  • docs/how_to_guides/setup.md
  • docs/how_to_guides/remote.md

Configuration

Use:

textom_config

Key runtime parameters in textom/config.py include thread count, GPU usage, numerical dtype, and UI behavior. Keep project-specific configs versioned when running in teams or CI.

Development

Run tests:

pytest textom/tests

Run style checks:

isort --profile black --check-only --diff textom
ruff check .
ruff format --check .

Build docs:

sphinx-build -b html docs public

Citation

If you use TexTOM in published work, cite:

Frewein, M. P. K., Mason, J., Maier, B., Colfen, H., Medjahed, A., Burghammer, M., Allain, M. & Grunewald, T. A. (2024). IUCrJ, 11, 809-820. https://doi.org/10.1107/S2052252524006547

License

MIT License. See LICENSE.

Metadata

Release files for TexTOM 0.7.19

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

Source distribution (sdist)

Source distribution for TexTOM 0.7.19
File Size Uploaded Provenance Actions
textom-0.7.19.tar.gz 1.7 MB Without provenance Details for textom-0.7.19.tar.gz

Built distribution (wheel)

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

Total release size: 3.5 MB

Release files / textom-0.7.19.tar.gz

Download URL textom-0.7.19.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
827ffcc2008e844c61e875262fbd46e54c05cdf5ef0f547b2c5268f1b2e2e668
BLAKE2b-256 checksum
How to use checksums
c0c3f9484a0f12f5eeefd3624be99570b9b6dab9662934889a124799826fefed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / textom-0.7.19-py3-none-any.whl

Download URL textom-0.7.19-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
96f911edafd9a2da7946bb0699f090dc43d3e4e22e5020be2ce900d065f1525a
BLAKE2b-256 checksum
How to use checksums
9f47cc074579a497e7c6f7c061cec498715d38b10402cc48a3a5b79c8773c67c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for TexTOM 0.7.19

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

0.7.19 This release

2 release files 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