Skip to main content

mammos-units

mammos-units is a units package built on top of Astropy units. It provides additional functionality for magnetic units.

Description Badge
Tests Test package
Linting pre-commit.ci status
Releases PyPI version Conda Version
Documentation Documentation
Binder Binder Binder2
License License
DOI DOI

Try it in the cloud

Try mammos-units without installing it locally by directly accessing it directly in the cloud via Binder.

Simply click the badge in the table above to get started.

Sessions are temporary and may time out after a period of inactivity, and any files created or modified during your session will not be saved. To avoid losing your work, please remember to download any files you create or edit before your session ends.

Documentation

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

Installation

To install mammos-units, you can use pip install mammos-units inside a Python environment. For more details refer to the documentation.

How to cite

If you use mammos-units in your research, please cite the following publication:

H. Fangohr et al., Toward a Magnetic Multiscale Modeling Suite (MaMMoS), IEEE Transactions on Magnetics, vol. 62, no. 10, Art. no. 7001606, 2026, doi: 10.1109/TMAG.2026.3689962.

@article{mammos2026,
  author={Fangohr, Hans and Holt, Samuel J. R. and Lang, Martin and Pathak, Swapneel and Petrocchi, Andrea and Adams, Michael and Hortschitz, Wilfried and Pile, Santa and Vishina, Alena and Nur Hasan, M. and Marchant, Georgia A. and Colnaghi, Timoteo and Winkler, Christina and Winkler, Jonas and Rigaut, William and Devillers, Thibaut and Berre, Pierre Le and Rahi, Camille and Dempsey, Nora M. and Woodcock, Thomas G. and Marek, Andreas and Herper, Heike C. and Schrefl, Thomas},
  journal={IEEE Transactions on Magnetics},
  title={Toward a Magnetic Multiscale Modeling Suite (MaMMoS)},
  year={2026},
  volume={62},
  number={10},
  pages={7001606-7001606},
  doi={10.1109/TMAG.2026.3689962},
  url={https://mammos-project.github.io}
}

The software is also archived on Zenodo. To cite it independently of a specific release, use the Concept DOI:

S. Holt et al., mammos-units [Software], Zenodo, 2025, doi: 10.5281/zenodo.15754463.

@software{mammos_units_zenodo,
  author={Holt, Samuel and Lang, Martin and Petrocchi, Andrea and Pathak, Swapneel Amit and Adams, Michael and Fangohr, Hans},
  title={mammos-units},
  year={2025},
  publisher={Zenodo},
  doi={10.5281/zenodo.15754463},
  url={https://github.com/MaMMoS-project/mammos-units}
}

Acknowledgements

This software has been supported by the European Union’s Horizon Europe research and innovation programme under grant agreement No 101135546 MaMMoS and 101152613.

Metadata

Release files for mammos-units 0.3.3

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

Source distribution (sdist)

Source distribution for mammos-units 0.3.3
File Size Uploaded Provenance Actions
mammos_units-0.3.3.tar.gz 43.1 kB With provenance Details for mammos_units-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mammos-units 0.3.3
File Interpreter ABI Platform Actions
mammos_units-0.3.3-py3-none-any.whl Python 3 none any Details for mammos_units-0.3.3-py3-none-any.whl

Total release size: 50.2 kB

Release files / mammos_units-0.3.3.tar.gz

Download URL mammos_units-0.3.3.tar.gz
Size 43.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f817cd1370e404ce421377f300ef84d4c30d62a226c3ba7722f8d37ef4bdb56
BLAKE2b-256 checksum
How to use checksums
61f0d64a7d4cec37d28925acd5c647464529eb1e88cbc1d6512e8392eb55ebe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Release files / mammos_units-0.3.3-py3-none-any.whl

Download URL mammos_units-0.3.3-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c09f3d1970298652f2bd7ca28869dffbcafcfe8a5510a531ce46942d3fda6ed7
BLAKE2b-256 checksum
How to use checksums
724caec10f9e43b933365d01165b7dce204d2b630e1de8c7f2c6575400e9e8f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 27, 2026.

Transparency log

Security for mammos-units 0.3.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mammos_units-0.3.3.tar.gz

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 Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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