Skip to main content

SQUID-on-tip current imaging forward and inverse modeling

Project description

CI PyPI Python 3.12+ Ruff Typed

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.1.tar.gz (30.5 kB 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.1-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sottools-0.1.1.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sottools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 764924ac2170e3cb8d2dbb5c474faa40bd8d7fe6638193f313239a1a5875e23d
MD5 8ad9c98ce34037b76736a2953b9f04a2
BLAKE2b-256 d895a3ce913f6b32300b216d5646e8dd4a5223e560b82df71b63b9ad2ed1accf

See more details on using hashes here.

Provenance

The following attestation bundles were made for sottools-0.1.1.tar.gz:

Publisher: publish.yml on MatthijsRog/sottools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: sottools-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sottools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ade00468be5253aa28e62114a6696e044a8c668731a3522b92e81a4f99cd0e
MD5 679698661d52b71d89e3aeb97c5c6214
BLAKE2b-256 e5c1d85bff1a84e1da6d7e4ef38af3c664a6309124c8d37f6d7572e848d71553

See more details on using hashes here.

Provenance

The following attestation bundles were made for sottools-0.1.1-py3-none-any.whl:

Publisher: publish.yml on MatthijsRog/sottools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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