Skip to main content

SQUID-on-tip current imaging forward and inverse modeling

Project description

SOTtools

⚠️ SOTtools is under development — API may change between minor versions, and old code may break.

SQUID based microscopy (SOT, scanning SQUID) is a powerful tool for locally imaging current distributions by mapping their magnetic fields. Interpreting these maps, however, is difficult: the SQUID singles out one particular component of the magnetic field, and inverting these maps is a difficult task.

SOTtools is a toolkit for modeling and inverting SOT measurements. It contains:

  • A set of tools for generating FEM meshes and simulating current distributions on these meshes
  • Tools to compute SQUID maps from current distributions
  • Tools to invert SQUID maps back to current distributions

The unique feature of SOTtools is that it is sample-aware: it natively takes into account 1D and 2D sample boundaries and confines all currents to the sample.

These inversions are possible only because the forward models are implemented fully in PyTorch, which allows for autodifferentiation. The user API, however, is fully in NumPy, the standard in scientific Python.

SOTtools is still under development and contributions are welcome.

Install

SOTtools is available on PyPI and can be installed with pip:

pip install sottools

If GPU acceleration is desired, install the PyTorch version with CUDA support first, then install SOTtools.

For easier usage with Jupyter notebooks, install the optional dependencies:

pip install sottools[notebook]

Documentation

Coming soon at sottools.readthedocs.io

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

sottools-0.1.0.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

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

sottools-0.1.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file sottools-0.1.0.tar.gz.

File metadata

  • Download URL: sottools-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for sottools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b17b76ba904b8ee58d3b1e1acbe5df585425bf40804007426b0a25d17dc781a
MD5 4dfbfa3a5925cf91e3c1950f88c7785a
BLAKE2b-256 d23a3fd29f34603e9f483d57e78fa5cbb008b51ffde246c52cc2e252cdab7464

See more details on using hashes here.

File details

Details for the file sottools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sottools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for sottools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0633b8f4d9356bbe4d28ef61be16f4686e76ff5b1ade827d8ebd87607219c95
MD5 7609dcde480cd2b7084643162154cdf7
BLAKE2b-256 f482dd4cb4a251c1432b69bda3cb66bcf754dafc7758381959f3a8277099e641

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