Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mckib2/t1est
Basic T1 fitting
https://github.com/mckib2/t1est
Last synced: 20 days ago
JSON representation
Basic T1 fitting
- Host: GitHub
- URL: https://github.com/mckib2/t1est
- Owner: mckib2
- License: gpl-3.0
- Created: 2019-09-26T18:30:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T01:35:34.000Z (almost 4 years ago)
- Last Synced: 2024-12-01T07:54:23.604Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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.
Installation
------------Should be as easy as:
.. code-block:: bash
pip install t1est
Usage
-----Examples are in the examples modules. They can be run as follows:
.. code-block:: python
python -m t1est.examples.[name of example]
# For example:
python -m t1est.examples.basic_usageThe function `t1est()` can be called as follows:
.. code-block:: python
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)