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.0.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.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrfmsim-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 758162f880ad3097079696e627b4438b66aa48a6636a80ff2e39e4c60978cfe6
MD5 968fa14cccd0e936a3ce973051b0faa6
BLAKE2b-256 de21f11158255f97bccfd383031bdd843f61b5900b5dd06a99b355f8a6f1aa17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrfmsim-0.4.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6b1e95343dd0cf25f2dbeac45a31316e85402b7cb639345add15bb8ff9ff10e
MD5 f2e01185ab4dc0f5662d37e84ed5f6d3
BLAKE2b-256 8f645c67f1e114f9cd79f5021ce81cf0a598ae78a74b5e39bbb5ffe821743c55

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