Skip to main content

Simulate magnetic resonance force microscopy experiments.

Project description

GitHub version Unit tests DOI

mrfmsim is a Python framework for simulating magnetic resonance force microscopy (MRFM) experiments. The package is based on the mmodel framework, which provides modular modeling capabilities for the experiments.

This mrfmsim package contains tools to simulate signals in a Magnetic Resonance Force Microscope (MRFM) [1] [2] [3] experiment. The code in the package simulates signal from electron spins, particularly the nitroxide spin radical “TEMPO” to selected nuclear spins (1H, 19F, and 71Ga).

The package host variety of MRFM experiments with the tip-on-cantilever setup. It can simulate signals from both Curie-law spin magnetization and spin fluctuations (in the small polarization limit); and can simulate force experiments and force-gradient experiments (in the small-cantilever-amplitude limit and without the small amplitude approximation — in the large amplitude limit). It can simulate signal with the cantilever and field-aligned in both the hangdown [4] and SPAM [5] [6] experimental geometries.

Quickstart

Installation

Graphviz installation

To view the graph, Graphviz needs to be installed: Graphviz Installation For Windows installation, please choose “add Graphviz to the system PATH for all users/current users” during the setup.

For macOS systems, sometimes brew install results in an unexpected installation path, it is recommended to install with conda:

conda install -c conda-forge pygraphviz

mrfmsim installation

To install the package, run:

pip install .

Tests

To run the tests locally:

python -m pytest

To test in different environments:

tox

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to follow our development guidelines and submit pull requests.

References

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

mrfmsim-0.4.1.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

mrfmsim-0.4.1-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file mrfmsim-0.4.1.tar.gz.

File metadata

  • Download URL: mrfmsim-0.4.1.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.15 Darwin/25.0.0

File hashes

Hashes for mrfmsim-0.4.1.tar.gz
Algorithm Hash digest
SHA256 550cca3d19f9ce22166567ea1a5c42b84f68ee14459230dcfa0ca2801b17bae5
MD5 70cd2879c92e0977beeee15fa3061096
BLAKE2b-256 fd92cc6785039b40b0b38d8e3fe8088161b0bb47ee97176cc3b9975b74c7ddb6

See more details on using hashes here.

File details

Details for the file mrfmsim-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: mrfmsim-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.15 Darwin/25.0.0

File hashes

Hashes for mrfmsim-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5acf9c3df620896a8d03402557e62728c6136744ff6c4600ca8c986f5310693a
MD5 abc3bf121fefc1630f9b17d15929bcb7
BLAKE2b-256 888c1a1a18299eefa40914553c3ab2f88173b11259a4a58d88a9c75b88d6231d

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