Skip to main content

mag2exp

Samuel Holt1,2, Martin Lang1, James Loudon3, Thomas Hicken4, Swapneel Amit Pathak1,5, David Cortés Ortuño6, Marijan Beg7,1, and Hans Fangohr1,5,8

1 Faculty of Engineering and Physical Sciences, University of Southampton, Southampton SO17 1BJ, UK
2 Department of Physics, University of Warwick, Coventry CV4 7AL, UK
3 Department of Materials Science and Metallurgy, University of Cambridge, Cambridge, CB3 0FS, United Kingdom
4 Department of Physics, Durham University, Durham, DH1 3LE, United Kingdom
5 Max Planck Institute for the Structure and Dynamics of Matter, Luruper Chaussee 149, 22761 Hamburg, Germany
6 Paleomagnetic Laboratory Fort Hoofddijk, Utrecht University, Utrecht, 3584 CD, Netherlands
7 Department of Earth Science and Engineering, Imperial College London, London SW7 2AZ, UK
8 Center for Free-Electron Laser Science, Luruper Chaussee 149, 22761 Hamburg, Germany

Description Badge
Tests tests
Linting pre-commit.ci status
Code style: black
Releases PyPI version
Anaconda-Server Badge
Coverage codecov
Documentation Documentation
YouTube YouTube
Binder Binder
Platforms Platforms
Downloads Downloads
License License
DOI DOI

About

mag2exp is a Python package, integrated with Jupyter, providing:

  • simulations of experimental techniques perfomed on magnetisation textures,
  • the ability to perform "virtual" experiments,
  • the functionality to compare of real experimental results agaist simulated experiments.

It is available on Windows, MacOS, and Linux. It requires Python 3.8+.

Documentation

APIs and tutorials are available in the documentation. To access the documentation, use the badge in the table above.

Installation, testing, and upgrade

We recommend installation using conda package manager. Instructions can be found in the documentation.

Binder

This package can be used in the cloud via Binder. To access Binder, use the badge in the table above.

YouTube

YouTube video tutorials are available on the Ubermag channel.

Support

If you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue in ubermag/help repository.

Contributions

All contributions are welcome, however small they are. If you would like to contribute, please fork the repository and create a pull request. If you are not sure how to contribute, please contact us by raising an issue in ubermag/help repository, and we are going to help you get started and assist you on the way.

Contributors:

License

Licensed under the BSD 3-Clause "New" or "Revised" License. For details, please refer to the LICENSE file.

How to cite

  1. M. Beg, M. Lang, and H. Fangohr. Ubermag: Towards more effective micromagnetic workflows. IEEE Transactions on Magnetics 58, 7300205 (2022).

  2. M. Beg, R. A. Pepper, and H. Fangohr. User interfaces for computational science: A domain specific language for OOMMF embedded in Python. AIP Advances 7, 56025 (2017).

  3. Samuel Holt, Martin Lang, James Loudon, Thomas Hicken, Swapneel Amit Pathak, David Cortés Ortuño, Marijan Beg, and Hans Fangohr. mag2exp: Simulate experimental measurements for magnetic materials DOI: 10.5281/zenodo.5564954 (2025).

Acknowledgements

  • OpenDreamKit – Horizon 2020 European Research Infrastructure project (676541)

  • EPSRC Programme Grant on Skyrmionics (EP/N032128/1)

Metadata

Release files for mag2exp 0.64.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mag2exp 0.64.0
File Size Uploaded
mag2exp-0.64.0.tar.gz 27.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mag2exp 0.64.0
File Interpreter ABI Platform
mag2exp-0.64.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.8 kB

Release files / mag2exp-0.64.0.tar.gz

Download URL mag2exp-0.64.0.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2c969c2c095d1112aded3f0beb1cdb7df59d9b5e4c52a755399109e37caf29cc
BLAKE2b-256 checksum
How to use checksums
0b6a7179f68ae9123d42a8fa76e1fbf81dea96147a695a96525b91d89c08b0cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Release files / mag2exp-0.64.0-py3-none-any.whl

Download URL mag2exp-0.64.0-py3-none-any.whl
Size 31.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99e6329a5163b64649d1326502fd90837687d605d5bcbaa80ad4efb004d2926f
BLAKE2b-256 checksum
How to use checksums
13c6dbbf13345bb176174a2c264ee80f27d46489018281ba312e2c2302973703
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.64.0 This release

2 release files

0.63.0

2 release files

0.62.2

2 release files

0.62.1

2 release files

0.62.0

2 release files

0.61.1

2 release files

0.61.0

2 release files

0.60.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page