Taufactor
TauFactor is a parallelised solver for calculating tortuosity factors from voxel data.
Install / Use
/learn @tldr-group/TaufactorREADME
TauFactor
TauFactor is an application for calculating tortuosity factors from tomographic data.
- Free software: MIT license
- Documentation: https://taufactor.readthedocs.io.
Requirements
Before installing taufactor, download the most recent version of PyTorch. Ensure you have pytorch>=1.10 installed in your Python environment.
For example, for a Linux machine with CUDA GPU
conda install pytorch pytorch-cuda=11.7 -c pytorch -c nvidia
Quickstart
To install TauFactor via PyPI
pip install taufactor
To extract effective diffusivity and tortuosity factor from your data:
import taufactor as tau
import tifffile
# load image
img = tifffile.imread('path/filename')
# ensure 1s for conductive phase and 0s otherwise.
# create a solver object with loaded image
s = tau.Solver(img)
# call solve function
s.solve()
# view effective diffusivity and tau
print(s.D_eff, s.tau)
Tests
To run unit tests navigate to the root directory and run
pytest
Credits
This package was created by the tldr group at the Dyson School of Design Engineering, Imperial College London.
TauFactor MATLAB
The package in this repository refers to a Python implementation of the TauFactor solver. There is a deprecated MATLAB implementation, which is no longer maintained.
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
