PlaygroundMR0
Project description
MRzero Core
Test publishing package #2
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 PlaygroundMR01-0.1.2.post0.tar.gz
.
File metadata
- Download URL: PlaygroundMR01-0.1.2.post0.tar.gz
- Upload date:
- Size: 42.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff4bcbb4b2bd1fbaafc3f4fe12c959d4a95e5dff15aab223c1b3d68d2701b5d5 |
|
MD5 | 4e79c15dcdd4fbb6fabf80190c3fb292 |
|
BLAKE2b-256 | 9b894620584fe42a998bc886690aeb0fdbcff5f14218e79378688ca7d0a63626 |
File details
Details for the file PlaygroundMR01-0.1.2.post0-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: PlaygroundMR01-0.1.2.post0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 257.4 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6ad48f91b6be482ab503f167ecd5c20f06529be91a928ba69d6c7f4a4df289 |
|
MD5 | f6b1fcd8826a0159764040ffa33ed68d |
|
BLAKE2b-256 | fe55f16ea2a843b23089e26475bcd86102e242591929bc3ddadb0fad48f1740f |
File details
Details for the file PlaygroundMR01-0.1.2.post0-cp37-abi3-win32.whl
.
File metadata
- Download URL: PlaygroundMR01-0.1.2.post0-cp37-abi3-win32.whl
- Upload date:
- Size: 249.8 kB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26cd480128db66b8f9d8e47be3bc0115783f414eec331e751d5ca0b1ac1585c4 |
|
MD5 | 4b0ce8c87a4904b6206cb4bf13990a3f |
|
BLAKE2b-256 | 537a50cfca26b5adc02d34820af909755dbcd23bc1838d8ef5c763803489de29 |
File details
Details for the file PlaygroundMR01-0.1.2.post0-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: PlaygroundMR01-0.1.2.post0-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 315.4 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f57bfacfd900ecbe19a799bd583ec04bd0aaec94c74c13817979c49d80e31aa |
|
MD5 | 492a4dc93e32096962f344e305eacb0e |
|
BLAKE2b-256 | 77adc65f0dcc8f664fb35d727c4eba5dac1ba05b177b9e1243522514654269b6 |
File details
Details for the file PlaygroundMR01-0.1.2.post0-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: PlaygroundMR01-0.1.2.post0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 321.1 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f660358411163059a9268b545c0bf95f299207ff0ff2019c246c926a8370c8a |
|
MD5 | de2684d606e9b710dd51e2543f53debc |
|
BLAKE2b-256 | 75f87b8bed08d4aa71e17956d212d04bb567d8b647c6041fa124d0adfd17a6b8 |