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 hashes)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.7+ x86-64

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

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.6+ 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