Skip to main content

Core functionality of MRzero

Project description

Documentation Status

MRzero Core

The MRzero Core contains the core functionality of MRzero like MRI sequence building, simulation and reconstruction. MRzero Core does not force you to take any particular approach to e.g., reconstruction, as it targets easy integration in existing projects. Nevertheless, more tools can be added in the future if they helpful for the general application space.

Usage

MRzero Core is written in Python, heavily relying on PyTorch for fast (GPU-) Tensor calculations. To improve performance, parts of the simulation are written in Rust and compiled for x86 Windows and Linux, other platforms are currently not supported.

Install with pip:

pip install MRzeroCore

The typical way of using it is like the following:

import MRzeroCore as mr0

Examples on how to use can be found in the Playground.

Links

Building from source

This assumes windows as host operating system. For building the python wheel, you need:

Building for Windows

maturin build --interpreter python

Building for Linux

docker run --rm -v <path-to-repo>/MRzero-Core:/io ghcr.io/pyo3/maturin build

To build the documentation, run

jupyter-book build documentation/

in the root folder of this project. This requires jupyter-book as well as MRzeroCore itself to be installed.

Official builds

The python wheels hosted by PyPI is built as described above, and uploaded as following:

maturin upload target/wheels/MRzeroCore-{ version }-cp37-abi3-win_amd64.whl target/wheels/MRzeroCore-{ version }-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -u <pypi-user> -p <pypi-pwd>

The documentation is built using readthedocs, which works the same as described above.

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

MRzeroCore-0.2.12.tar.gz (42.1 MB view hashes)

Uploaded Source

Built Distributions

MRzeroCore-0.2.12-cp37-abi3-win_amd64.whl (257.3 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

MRzeroCore-0.2.12-cp37-abi3-win32.whl (251.9 kB view hashes)

Uploaded CPython 3.7+ Windows x86

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (349.7 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (413.3 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (429.1 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (337.9 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (336.4 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

MRzeroCore-0.2.12-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (370.8 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

MRzeroCore-0.2.12-cp37-abi3-macosx_11_0_arm64.whl (313.8 kB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

MRzeroCore-0.2.12-cp37-abi3-macosx_10_12_x86_64.whl (320.1 kB view hashes)

Uploaded CPython 3.7+ macOS 10.12+ x86-64

Supported by

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