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[jupyter]

Documentation

Documentation is available 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.2.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.2-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sottools-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 715615fa5dd7b20b5d2f649e9da2f852e03c2d7490f55901a3d058bfc8d6fc75
MD5 b74bc2a5cc80e39fb20b2f809a950f8b
BLAKE2b-256 0164cc29683a4e3bdd37752996e00f3ed2324ddcb6cf9d0006aacebbfed9f383

See more details on using hashes here.

Provenance

The following attestation bundles were made for sottools-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: sottools-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fff68d6ad92dc5ecd43d49164dc2ca3967a6d12546b8b1cf2365cc6a595ad152
MD5 e5bcf98cd43640f2a7b499ec0abfb0d5
BLAKE2b-256 5e67afb5ad3d2b0e62973131b442c93ab824c8a32399faded9bdeac09aedf5de

See more details on using hashes here.

Provenance

The following attestation bundles were made for sottools-0.1.2-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