Skip to main content

Core functionality of MRzero

Project description

Documentation Status PyPI - Version

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 MR-zero can be found in the Playground.

Pulseq Integration

MRzero Core makes Pulseq simulation incredibly easy - simulate any .seq file in just one line:

import MRzeroCore as mr0

# Simulate any Pulseq file
seq = mr0.Sequence.import_file("your_sequence.seq")
signal = mr0.util.simulate(seq)  # That's it!

Key Features:

  • One-line simulation of any Pulseq .seq file
  • PyPulseq integration - write sequences in Python, simulate with MR-zero
  • Google Colab ready - 13+ ready-to-run examples
  • MATLAB ↔ Python workflow - create in MATLAB Pulseq, simulate in Python
  • No dependencies - fully self-contained Pulseq parser included
  • Scanner-ready export - export MR-zero sequences as .seq files

Try it now: Open In Colab

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

Building the documentation

Install newest (beta) version of mdBook:

cargo install --git https://github.com/rust-lang/mdBook.git mdbook

Run a live-preview server:

# in the root directory:
mdbook serve documentation

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.4.8.tar.gz (47.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mrzerocore-0.4.8-cp37-abi3-win_amd64.whl (476.6 kB view details)

Uploaded CPython 3.7+Windows x86-64

mrzerocore-0.4.8-cp37-abi3-win32.whl (459.9 kB view details)

Uploaded CPython 3.7+Windows x86

mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_x86_64.whl (772.1 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ x86-64

mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_i686.whl (813.6 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_armv7l.whl (821.8 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_aarch64.whl (719.3 kB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (563.5 kB view details)

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

mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (620.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (673.7 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (545.8 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (542.7 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

mrzerocore-0.4.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (605.9 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

mrzerocore-0.4.8-cp37-abi3-macosx_11_0_arm64.whl (520.3 kB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

mrzerocore-0.4.8-cp37-abi3-macosx_10_12_x86_64.whl (532.8 kB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file mrzerocore-0.4.8.tar.gz.

File metadata

  • Download URL: mrzerocore-0.4.8.tar.gz
  • Upload date:
  • Size: 47.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8.tar.gz
Algorithm Hash digest
SHA256 b393c75d0784dcc810861d4c81dc9949bfa45644f15a5459dd89426e65008fee
MD5 50fc0ea96768722b7084fdde8c06d270
BLAKE2b-256 2433251a4cc14a5e4c53e369e906b255110ccc23500d7b0fd656de5b224665dd

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 476.6 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ebb90e49e2e3ee7379c094ebc190f9337c6c663764f5d01d59cc3c7dbf9a63d6
MD5 f8b062d620ac3556154898fc622306a9
BLAKE2b-256 8d5af3cb94e0930f471ea13848aead58971fac0f558dbaabbc52d988f924ace9

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-win32.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-win32.whl
  • Upload date:
  • Size: 459.9 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 78f7fd6a25b7e2c50725b7fc8ccfadb703f672c031043298de6def4f793dedb7
MD5 75db6b38e8295e1d01476537d6d63e1e
BLAKE2b-256 6257c078c7df8cfc674e3c90135288ef12eebc92e165da59911e4af0d09b4833

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 772.1 kB
  • Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 92523a95005aeae2b4d9658b2ff535d2d518fa107ff25a43f10a1407a9a4cc99
MD5 da7644ad0009de3337a75117f6370c44
BLAKE2b-256 4bbdbc83c583ac357c2c4ba4702a03183f11e4828d88aa07ba4d12565767c046

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 813.6 kB
  • Tags: CPython 3.7+, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 74b8b41208d0eff60de80112ebc36e8bdbfdeb45d2f53d9f1aeebbf00f3b10b7
MD5 43bd742fd02d234636e7fb31f1da96a4
BLAKE2b-256 0f7dbd2d6be795d6a88a902e51d2685a6e7512bbf58ce0eed29337ebf1f35497

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_armv7l.whl
  • Upload date:
  • Size: 821.8 kB
  • Tags: CPython 3.7+, musllinux: musl 1.2+ ARMv7l
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 784ca4e335e95989526aaad19db5f080a12677e7964dfc7f619ad2aceb7b457f
MD5 6811886c227b5b9f91550b286f8d4c46
BLAKE2b-256 eaddd847a78b4fd40d9ce4403c506a3edd2b012d15d9c15dadda4a2e385a32f7

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_aarch64.whl
  • Upload date:
  • Size: 719.3 kB
  • Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4c5d97177e469c514a605fc0d48769209c5ee85a43f72c7cba5322583b5b7d0a
MD5 69cf13b5dd8b88e60895bb0cbc64e671
BLAKE2b-256 c3bd8f10baaffd9921104dbedd71ae2fc524e834deed32cf223f5bcab23c0349

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 563.5 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f0d6c8ff96ac2a72d76408cb96696a8f55565eead66cd029a55191d3de597ed
MD5 0b57ea1792fd9410276a297a7f7ce3f7
BLAKE2b-256 9a397b59b902d8aed0b34dd8ea219cee09dbce2e5a060d2c22c46799c69e8f10

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
  • Upload date:
  • Size: 620.8 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 3e83e61a8a4add1a20ab8b68b3938187f9312b880778c5b0d2a66f2787b9bd9a
MD5 74040431b39b02a7739cf6d901a8666e
BLAKE2b-256 a8dcf4aaaedca3380f9dca991ff3a5222696ea8bf5c7f3e274d3d4e25d425445

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
  • Upload date:
  • Size: 673.7 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 410ee4fc44707f706dddf169522105cd7b539a1ef7749cb3a203b1b218a4473b
MD5 0f4c29c2ade1b402564481497075c00f
BLAKE2b-256 bcb519d19e6543df746c2aab4b963176c2c9308ae2cc2d9d5f5c8379d789f8e4

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
  • Upload date:
  • Size: 545.8 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 1065aa2cdd952facbadae9981dc873b71b600853b6d000a5f58b8e8319868e67
MD5 f145f81bb9b9c19a7f9dab22af04293a
BLAKE2b-256 56f7d9412f45cb760696f81689464a4c28cfa33b90fed387932d02a0775f97f3

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 542.7 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6cd50a6e48843abc4ee2cc461dec935c239653a3b21832772ee5bdb0e02a788c
MD5 ea8147909bfa26754771429ad4adb219
BLAKE2b-256 468c0841c3ea21aa64b10e3bb3d3de177cbdef8da8cce5a8375cb00cb06be427

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
  • Upload date:
  • Size: 605.9 kB
  • Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 7277d5a1db6a1e4ec74edd9c4b26dc288790c3575d88608c22555c9f3797496b
MD5 cdbd5f7c4f2d417ccb8028c31fe7c93d
BLAKE2b-256 026e618b7b12f3f53f30824a5a4db10b9031f04e7d244811a60155f2d0825c32

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 520.3 kB
  • Tags: CPython 3.7+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d44937321386563e6abcfac38382f4cb46ac1e8b4c8dd0e785c9d11cf7987366
MD5 705838cab09c650c2d9b40efddc27453
BLAKE2b-256 4eeb16fe7b54849cfbd539cc66abd91c2aa46a77f627f3f1ed6d0d4b72f43d1e

See more details on using hashes here.

File details

Details for the file mrzerocore-0.4.8-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: mrzerocore-0.4.8-cp37-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 532.8 kB
  • Tags: CPython 3.7+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for mrzerocore-0.4.8-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8a934900124226065b5ed8eb56097273a909b01035fb979be753f669869f820d
MD5 3523af7d09fa54d19c279fe9f9606d61
BLAKE2b-256 f739a5b523527ba6973fd96b641a5629219f3b9388952f79462a930da909f481

See more details on using hashes here.

Supported by

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