# Process MOLLI and shMOLLI data
Reads a directory of shMOLLI DICOM images and processes the data to produce a look-locker corrected T1 map. Negative values are cropped to 0.
Two possible methods for processing the data are available.
Fast (default). Uses some numerical methods to solve exponential equations of the correct form. May be slightly less accurate, but significantly faster.
Slow. Uses scipy curve fitting algorithm to fit the exponential curve. More accurate, but much slower.
The difference between the two methods is very little as demonstrated in the figure below.

Any pixels/voxels where the max value is less than 100 is skipped. NB: For this version, data is processed top-left to bottom-right in the image. As images are often empty around the edges, this means the the processing is ‘fast’ to start with as each pixel is basically skipped, then slows down as the true data is processed, then speeds up again at the end.
## Usage
As module `python > pip3 install sh_molli > process_sh_molli_series.py -i <inputfolder> -o <outputfilename> -p <plot_flag> -m <method> `
In code `python > python3 > import sh_molli.sh_molli as sh > im = sh.process_folder(dir,method='fast') `
-i - input folder must be a path containing DICOM images only Can process data based on ‘Inversion Time’ being stored in dcm.TriggerTime, dcm.InversionTime and dcm.ImageComments
-o - output file name. Uses PIL for image writing, so supports all formats that PIL understands. Recommended using example.tiff to ensure that large values are not cropped
-p - plot flat (1, 0 or not present). If 1, the image will be displayed using matplotlib once the data is processed. Colorbar is cropped to 0-2000 range, sensible values for human tissue.
-m - method. (‘fast’ or ‘slow’). See above.
Metadata
Release files for sh-molli 0.0.55
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sh_molli-0.0.55.tar.gz | 5.5 kB | Without provenance | Details for sh_molli-0.0.55.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sh_molli-0.0.55-py3-none-any.whl | Python 3 | none | any | Details for sh_molli-0.0.55-py3-none-any.whl |
Total release size: 25.8 kB
Release files / sh_molli-0.0.55.tar.gz
| Download URL | sh_molli-0.0.55.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7993ce0962d7ab0451d28f0b381daf2fb9a1171f97c46fed4a20df3419d9c123
|
|
BLAKE2b-256 checksum How to use checksums |
4a8071e91989a2dfa8e02d86df6976d0db0e8660ad41416d1e1b8e5074a0c7a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
|
Release files / sh_molli-0.0.55-py3-none-any.whl
| Download URL | sh_molli-0.0.55-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7151e636ae39a64d0ac911b2d33f9117fb28d7cec7284d7e2834ed2a61631436
|
|
BLAKE2b-256 checksum How to use checksums |
b7cd0799b112f465be257ec15103710bbc84d0b467d4c0780071eb64fa4491ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
|
Security for sh-molli 0.0.55
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.