Core functionality of MRzero
Project description
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
- Documentation: https://mrzero-core.readthedocs.io/
- Examples: Playground
- PyPI: https://pypi.org/project/mrzerocore/
- Original MRzero Paper: https://arxiv.org/abs/2002.04265
Building from source
This assumes windows as host operating system. For building the python wheel, you need:
- the Rust toolchain: rustup
- the rust-python build tool tool: pip install maturin
- for Linux crosscompilation: docker
- to build the documentation: pip install jupyter-book
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file MRzeroCore-0.3.10.tar.gz
.
File metadata
- Download URL: MRzeroCore-0.3.10.tar.gz
- Upload date:
- Size: 39.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b7cca78c851bec9383c643dbee689c4855607dd0c9efc1537cc32a5e548351d |
|
MD5 | b62f8b69565885ad304954491f0c8f26 |
|
BLAKE2b-256 | 6b47311d7df5f43698c6feeba36fbba6344164026625852ca0a1384acc98b617 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 266.7 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2437297c99cab0d73d1827a407509480288b99414377da37ba344115a70f1307 |
|
MD5 | a221f3bc039c1554304d555c1b519b88 |
|
BLAKE2b-256 | 4f69b95c08c8973a7a631a9346698b0ca484457aad80f274f1d64583e55f26bc |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-win32.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-win32.whl
- Upload date:
- Size: 257.7 kB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275992613719089e344ce087b4d7b09bdf4cee2fec6dcc5ab86b90cd676239b3 |
|
MD5 | 03aaa73524ecbaf2c15beea2e62837d4 |
|
BLAKE2b-256 | 139875c846ecadf29d9bf384bd31791b6a512dca814fbb735791f156c0e0daf8 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 404.0 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e43246c918e1290f4c59ff2f41049f2cb018676b9b994570dc68e0a93ca0c0 |
|
MD5 | fa443f0a37e7d40951f7a4b1d844ad12 |
|
BLAKE2b-256 | cc6054bc1c04d2cfaf616474020e9a5bae988b61eaef123f329b0fff56edc5bf |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 481.9 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abed16fc7785d2cddeb86e1a4672f339cdca4bdb2248b898516a9f1b80e3ff08 |
|
MD5 | 704de1e6d2e55caf2d974425818592c1 |
|
BLAKE2b-256 | 9a1289f6dedd98eebbb41abc930006eb9da7f35d039ec5959c513cbb96b4f4c1 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 449.0 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 700f2913d2170a7f91799a2b77cca0d01acd88be0d859bf09d1712f091d3c608 |
|
MD5 | a720fb9acf64302f4f5984f850790b6e |
|
BLAKE2b-256 | 7846ac58198c936c26644787befbb29fe7ac91f7ced9152bd1a8e610e07da5b1 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 408.4 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b045eb06ac557a070d343649be49c05084e35cd1b8112485b7da7b30b3708f93 |
|
MD5 | 99044890be5d7249231a251671b18884 |
|
BLAKE2b-256 | 45731511e2917968f9be031c26ec8d1adb519b6c51a4182a7ee3ddf1b472443f |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 400.4 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b70c61de56a8574dbadbd024256f390a71459e222d74604902eaf2452708f408 |
|
MD5 | e09dc6f3c0d6bace2e93fab647b48a98 |
|
BLAKE2b-256 | 856bdefa65f271bac31fde541f414a9ac3f162d618fd30629aaba23393c5c3d3 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 419.6 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3a9da13bb9bec24fb988fcdc33a98f648ee5c3c038f3af662ca033dec7f0a74 |
|
MD5 | b9296fabe31ee7121c856c37f0f69642 |
|
BLAKE2b-256 | e7719c916192f5810342107d76365faca70a9cee61461dfa4c3c0049eb90dbf6 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 365.2 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7622406749842fe8488f4629f6d77ad446191be434d2c4a201b458b61a3f97 |
|
MD5 | 1ae89d6c8b02eb9c738ece6089b6d692 |
|
BLAKE2b-256 | 79af567d4526c476bafb0f799a46572b56f57fd44fc68071441c40220fee4580 |
File details
Details for the file MRzeroCore-0.3.10-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: MRzeroCore-0.3.10-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 369.0 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5965da698ed772226893ef43445e36ec5713023cd14cd0ee2ace10752198438e |
|
MD5 | 7420022f9a426754df0ddc6c3163a9c3 |
|
BLAKE2b-256 | 8cbee274146fc6d713d7ce0ffd174ad000b9f7240176eee9ee1cf1f2105710af |