A program for texture simulations.
Project description
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
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textom-0.7.19.tar.gz.
File metadata
- Download URL: textom-0.7.19.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
827ffcc2008e844c61e875262fbd46e54c05cdf5ef0f547b2c5268f1b2e2e668
|
|
| MD5 |
7cb022d50ab4f0ffc24cd728964a87b8
|
|
| BLAKE2b-256 |
c0c3f9484a0f12f5eeefd3624be99570b9b6dab9662934889a124799826fefed
|
File details
Details for the file textom-0.7.19-py3-none-any.whl.
File metadata
- Download URL: textom-0.7.19-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96f911edafd9a2da7946bb0699f090dc43d3e4e22e5020be2ce900d065f1525a
|
|
| MD5 |
82cbe6b92c6930a276ad247e6754f6aa
|
|
| BLAKE2b-256 |
9f47cc074579a497e7c6f7c061cec498715d38b10402cc48a3a5b79c8773c67c
|