Skip to main content

Basic T1 fitting

Project description

T1 fitting

Simple T1 fitting. Uses the following fitting model: x = A - B exp{-t/T_1}

where A and B are complex coefficients, t are the inversion times.


Should be as easy as:

pip install t1est


Run examples as follows:

python -m t1est.examples.basic_usage

The function t1est() can be called as follows:

from t1est import t1est

# x is the array of images at different inversion times.  The
# inversion times are provided as TIs
T1map = t1est(
    x, TIs, time_axis=-1, mask=mask, method='trf', T1_bnds=(0, 3),
    chunksize=10, molli=True, mag=True)

Notice that x may be any-dimensional, but time points must lie along the time_axis dimension. If molli=True, then T1 is adjusted as follows: T1’ = T1 (B/A - 1)

Project details

Download files

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

Files for t1est, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size t1est-0.1.2-py3-none-any.whl (20.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size t1est-0.1.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page