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
- Web docs: https://textom.readthedocs.io/en/stable/
- PDF docs: Download latest
- Project changelog:
CHANGELOG.md
Installation
Requirements
- Python
>=3.9,<3.14 - Linux/macOS (scientific stack availability may vary by platform)
Recommended (conda/micromamba environment + pip)
conda create --name textom python=3.11
conda activate textom
conda install numpy=2.4 scipy=1.16 openblas
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: openstextom/config.pyfor 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 optionallydata_integrated_1d/,results/(derived metrics and exported artifacts).
For a complete walkthrough, follow:
docs/tutorials/workflow.mddocs/how_to_guides/setup.mddocs/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.
Release files for TexTOM 0.7.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textom-0.7.20.tar.gz | 1.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| textom-0.7.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:3.9 MB
Release files / textom-0.7.20.tar.gz
| Download URL | textom-0.7.20.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcf61a3978e062a130e8da21203a7af19eed68bb22c059511106f39b05a6be28
|
|
BLAKE2b-256 checksum How to use checksums |
c22ef2f0ed15714d9af913fa078620ba988477294e63d02a8a2da30f3af578d4
|
| 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.20-py3-none-any.whl
| Download URL | textom-0.7.20-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20818d27928e3c3f58a04849869dcc6238778bfbe3246aa5ca3282fccd51db44
|
|
BLAKE2b-256 checksum How to use checksums |
b12ee47f793ed2b2e34ae7fc3e2ea657ad0bf4713394935754fcb3d8643957cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|