Skip to main content

MPG project

Project description

Magnetic point group (MPG) tensor analysis toolkit

DOI readthedocs status

The pythmpg package provides tools for enumerating symmetry properties of all 122 magnetic point groups (MPGs), and for counting the number of independent components of arbitrary-rank tensors under those symmetries as classified by their Jahn symbol.

A major feature of the package is its ability to export data in the form of a .csv file that can be used to build a spreadsheet capable of screening for MPGs based on whether they have certain symmetries or support specified tensor properties. A broader community of users can then use standard spreadsheet tools, such as sorting on columns and hiding columns and rows, to achieve similar ends, without the need to access the Python codes themselves.

Resources

Installation

PythMPG is available through PyPI.

pip install pythmpg

To install from source in editable mode:

git clone https://github.com/pythmpg/pythmpg.git
cd pythmpg
pip install -e .

PythMPG ≥ 1.0.0 requires Python ≥ 3.12 and the core dependency:

  • numpy ≥ 2.0

Citation

If you use the code in your paper, please cite us

@software{Urru_Python_Magnetic_Point_2026,
author = {Urru, Andrea and Birol, Turan and Cole, Trey and Vanderbilt, David},
doi = {10.5281/zenodo.18672613},
license = {GPL-3.0-or-later},
month = jun,
title = {{Python Magnetic Point Group (PythMPG)}},
url = {https://zenodo.org/records/18672613},
version = {1.0.0},
year = {2026}
}

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

pythmpg-1.0.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

pythmpg-1.0.0-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file pythmpg-1.0.0.tar.gz.

File metadata

  • Download URL: pythmpg-1.0.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pythmpg-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2ee58e432c7f2d24a5a703a113021712743879b76efa17061cda8acf26fba939
MD5 f4f066c1ccba5fec05623911c4044ba4
BLAKE2b-256 6cb5f9a1085cd0456c4fdb90b0cf2132341fc4f66647fdfd008c928e65ab0260

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythmpg-1.0.0.tar.gz:

Publisher: pypi-publish.yml on pythmpg/pythmpg

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

File details

Details for the file pythmpg-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pythmpg-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for pythmpg-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cb568e4a5685040c805a94ab9e0b54d6368c44e9632025cb4e0b521c19122d8
MD5 460b1759ff2f595e5d2cdcf2730969db
BLAKE2b-256 d79a1318d5ac938013b02b15e76ddfa5f3bbdbeb105a76d0349ee35172a244d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pythmpg-1.0.0-py3-none-any.whl:

Publisher: pypi-publish.yml on pythmpg/pythmpg

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