Skip to main content

A package for working with Wyckoff positions in crystallography

Project description

Wyckoff

A Python package for working with Wyckoff positions in crystallography.

Installation

pip install wyckoff

OR

uv add wyckoff

Usage

from wyckoff import wyckoff_positions, wyckoff_database

# Get Wyckoff positions for a specific space group
positions = wyckoff_positions(1)  # Space group 1
print(positions)

# Get the entire database
database = wyckoff_database()
print(list(database.keys())[:5])  # Print first 5 space group numbers

Info

If spacegroup variations are available, and functions are called without specifying the variabtion then first variation will be returned.

Following variation types are included in the database:

  1. Unique axis settings: Suffixes like "-b" and "-c" typically indicate which crystallographic axis is chosen as the unique axis, especially in monoclinic and orthorhombic systems. For example:
    • "3-b" means space group 3 with b-axis as the unique axis
    • "3-c" means space group 3 with c-axis as the unique axis

Example:

positions = wyckoff_positions("3-b")  # Space group 3 with b-axis as the unique axis
print(positions)
  1. Origin choice: Suffixes like "-1" and "-2" usually indicate different origin choices for the same space group:
    • "48-1" is space group 48 with origin choice 1
    • "48-2" is space group 48 with origin choice 2

Example:

positions = wyckoff_positions("48-1")  # Space group 48 with origin choice 1
print(positions)
  1. Cell choices: Some suffixes may represent different conventional cell choices (hexagonal vs. rhombohedral settings in trigonal groups, for example).

Example:

positions = wyckoff_positions("148-hexagonal")  # Space group 148 with hexagonal cell
print(positions)

Data Source

This package is based on crystallographic data from bilbao crystallographic server. The inspiration for this package was drawn from the doped project: S. R. Kavanagh et al. doped: Python toolkit for robust and repeatable charged defect supercell calculations. Journal of Open Source Software 9 (96), 6433, 2024. Where they implemented a similar approach for handling wyckoff positions but they have custom data format.

License

MIT

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

wyckoff-0.1.3.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

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

wyckoff-0.1.3-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

Details for the file wyckoff-0.1.3.tar.gz.

File metadata

  • Download URL: wyckoff-0.1.3.tar.gz
  • Upload date:
  • Size: 39.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.1

File hashes

Hashes for wyckoff-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c7ee4cc8fb7feaab7c96fee13174f65955dbb83674f17dd52d641a5ed59a133a
MD5 a92b376b3fbbdde8a2397148b4b98891
BLAKE2b-256 6dc7c14d75e87ac2f143877332e6caa9bf73f2fd6225ce33eb0218a00a4d307d

See more details on using hashes here.

File details

Details for the file wyckoff-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wyckoff-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.1

File hashes

Hashes for wyckoff-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d56d4a236b5cbe80de0f65d95658d196ca44e3f20b5f25095f49eb59c35bd55b
MD5 5dd5d4091ab3986dfd8643530ef18c63
BLAKE2b-256 b82f21ce02a0a223f0a00c1a812e7dbc7be6622e209e08661ff859f2177ceca7

See more details on using hashes here.

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