Skip to main content

TauFactor is an application for calculating tortuosity factors from tomographic data

Project description

TauFactor

TauFactor is an application for calculating tortuosity factors from tomographic data.

TauFactor

DOI badge PyPI ReadTheDocs MIT LICENSE github actions

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taufactor-1.2.1.tar.gz (633.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taufactor-1.2.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file taufactor-1.2.1.tar.gz.

File metadata

  • Download URL: taufactor-1.2.1.tar.gz
  • Upload date:
  • Size: 633.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for taufactor-1.2.1.tar.gz
Algorithm Hash digest
SHA256 63161f6f07f347f4d7fa32b79fc4843b4163ae314fa2851913076c8e907334e6
MD5 b9979bc533e3bc87564b44773c8fe31a
BLAKE2b-256 ee20d6ffc875628a7e90d4a66bdca6a516ce086d873d01b6ed81b0cd63ac73be

See more details on using hashes here.

File details

Details for the file taufactor-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: taufactor-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.18

File hashes

Hashes for taufactor-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9bdd3aaa340e4bdf7659ce004c707c91020aedd2299b7fb491053be9139fde7
MD5 cf96e4381533f1e3902dd1a83add8360
BLAKE2b-256 c64097de620e4304b5fd763b346bbccd49376894e234226f60aa5c13da76c28c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page