Skip to main content

A python toolbox for simulating fast real-time solid-state NMR spectra.

Project description

The Mrsimulator project

Deployment PyPI version PyPI - Python Version
Build Status Travis (.org) GitHub Workflow Status Read the Docs
License License
Metrics Total alerts Language grade: Python codecov

mrsimulator is a python package for computing fast solid-state magnetic resonance (NMR) spectra. The library is optimized to compute both crystalline and amorphous-like materials. The core of the mrsimulator library is written in C, wrapped and made available in python.

:warning: The package is currently under development. We advice using with caution. Bug report are greatly appreciated.

Why use mrsimulator?

  • It is open source and free.
  • It is a fast and versatile solid-state NMR simulator of one-dimensional static, MAS, and VAS spectra of nuclei experiencing chemical shift (nuclear shielding) and quadrupolar coupling interactions.
  • Future release will include simulations of weakly coupled nuclei experiencing J and dipolar couplings, and multi-dimensional NMR spectra.
  • It is fully documented with a stable and simple API and is easily incorporated into your python scripts and web apps.
  • It is compatible with modern python package, such as scikit-learn, Keras, etc.
  • Packages using mrsimulator -

Features

The mrsimulator package currently offers the following

  • Fast simulation of one-dimensional solid-state NMR spectra. See our benchmark results.

  • Uncoupled spin system

    • for spin I=1/2, and quadrupole I>1/2 nuclei,
    • at arbitrary macroscopic magnetic flux density,
    • at arbitrary rotor angles, and
    • at arbitrary spinning frequency.
  • The library includes the following NMR methods,

    • 1D Bloch decay spectrum, and
    • 1D Bloch decay central transition spectrum.

Goals for the near future

Our current objectives for the future are the following

  • Include spectral simulation of coupled spin systems for

    • spin I=1/2, and quadrupole I>1/2 nuclei,
    • at arbitrary macroscopic magnetic flux density,
    • at arbitrary rotor angles, and
    • at arbitrary spinning frequency.
  • Expand the library of NMR methods. We expect to include the following methods

    • 2D Multi-Quantum Magic Angle Spinning (MQ-MAS),
    • 2D isotropic/anisotropic sideband correlation spectrum (e.g. PASS and MAT).
    • 2D Dynamic Angle Spinning (DAS), and
    • 2D Magic Angle Flipping (MAF).

For more information, refer to the documentation.

View our example gallery

Installation

$ pip install mrsimulator

Please read our installation document for details.

Check your build

If the installation is successful, you should be able to run the following test file in your terminal.

$ python test_file.py

This should produce the following figure.

alt text

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

mrsimulator-0.3.0.tar.gz (296.1 kB view details)

Uploaded Source

Built Distributions

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

mrsimulator-0.3.0-cp38-cp38-manylinux2010_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

mrsimulator-0.3.0-cp38-cp38-manylinux1_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.8

mrsimulator-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

mrsimulator-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

mrsimulator-0.3.0-cp37-cp37m-manylinux1_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.7m

mrsimulator-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.7mmacOS 10.7+ x86-64

mrsimulator-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

mrsimulator-0.3.0-cp36-cp36m-manylinux1_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.6m

mrsimulator-0.3.0-cp36-cp36m-macosx_10_6_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ x86-64

File details

Details for the file mrsimulator-0.3.0.tar.gz.

File metadata

  • Download URL: mrsimulator-0.3.0.tar.gz
  • Upload date:
  • Size: 296.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6560d432745a52e7563e5ef4114c6aab9e5800873ac6c6a504a9ad6b8665666d
MD5 ffe9d55feb19aec32fca8f2ff8744010
BLAKE2b-256 6d40daf50b6d5bf5982385deec7454651af434410e9030535235d4e131e2cc97

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 84b9d5d3775df9d3561d33d33b213007514916a51649a15659f5c7022042589b
MD5 b09a923cb187a5502e7cb507da129d91
BLAKE2b-256 e41aa1c8de2c20bb259908ebba11eafccf9989ec9f9f16fd7a8dfba641f9e12c

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cd32c10f2bbe526d2c0916abbf5648fb46cada7da18d9fc11ecce002678d19f0
MD5 5a3474d0d5d411065d0d1d47bf5f3072
BLAKE2b-256 8b095cd95aa9d346874656eb075dd44b6ddfdd398c461c94397795c2ab01b53a

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2b1efb2e82066e2c11d754ad87f9f79c2d700243fada53075beb86308dc6491e
MD5 78f224d32c927fd3e71de63462e28249
BLAKE2b-256 b61c97578e0edd20823ff7815cbfb343cccfa4b457d3683b33e3e2f4d3fa5602

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 31f06867859ea53752cf0d8cabfc951e403c0efbc21307f86116bca150336272
MD5 60fa00bd4a97495ad167f6bd312dde73
BLAKE2b-256 6526455062fe4c1f127e657860fca6777b48b3b43ff357f659aa57d6db7e6298

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b35a8af561354e08fe3c599b981045c4f1a677916459b53833040bac4c928c28
MD5 0d6b7668e3a5023e097486158eb42c0c
BLAKE2b-256 27f26e7d2a5dc061060c6cdb7a650017e526832d7c0b34d86cd4ce3a4bb5b3d1

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 76097d353d1d730a534f34fa33d6ebd337801b37b635d319878c872a291f18a2
MD5 053fc3886b8f84dcbdab500c8afb5037
BLAKE2b-256 ff85a78e6fb524388b06960f57c06639656eee0795a48093b91ea0d9d8665dc3

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2293ecd753af7ac099e10a1c85a62ade48dad634ffe581e4a3dfacf5e0ba3e6c
MD5 bcc69961dc407c647cb2651439955ec3
BLAKE2b-256 4682a56ef8f083088acf380fd1857d06d62ce599d3eee8974d34cc0c93552836

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a21085f15a89d86c1128d102290dc9a360f5ad6344534eb356203fdeaf746969
MD5 55f9725e6b381ddaca2e0ed69de77f12
BLAKE2b-256 67743208704fcf4aad1374fb3e1ad609fb9b47c841462a4e5f31ee124c60a474

See more details on using hashes here.

File details

Details for the file mrsimulator-0.3.0-cp36-cp36m-macosx_10_6_x86_64.whl.

File metadata

  • Download URL: mrsimulator-0.3.0-cp36-cp36m-macosx_10_6_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.6m, macOS 10.6+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for mrsimulator-0.3.0-cp36-cp36m-macosx_10_6_x86_64.whl
Algorithm Hash digest
SHA256 a112033cd86da316f07ac47bf967055ebac2670864ceace49c279e1ed0e366ec
MD5 8df76f159f58b17bdb412c03afe09051
BLAKE2b-256 07eb5e072fa98465675166b175f665627db9bccdd24b41618fdd8a66f42349ad

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