Skip to main content

CIF2Dist is a python application to calculate the number and distance of coordination spheres of atoms in a lattice based on a cif.

Project description

CIF2Dist

CIF2Dist is a command-line tool and python package for calculating interatomic distances from a CIF (crystallography information file). It is authored by Marco Gurbisz and Tom Förster.

Installation

For installation, clone the git repository and install the package locally:

git clone https://github.com/morcubot/CIF2Dist.git
cd CIF2Dist
pip install .

Input

Input a CIF using its path and filename, and specify a site with -s to calculate the distance to its neighbors. This specification can be the Wyckoff site (e. g. '4a') or Wyckoff letter (e. g. 'a'), the site's name (e. g. 'Y1'), or the element (e. g. 'Y') if it is unambiguous (i .e there is only one site for this element).

Arguments

The tool supports multiple Arguments

Center site --site, -s

Specifies center site for calculation. See Subsection 'Input'

Cutoff Distance --cutoff, -c

Specifies cutoff distance for the calculation. The default value is 10 Ångstrom.

Filter --filter, -f

Specifies the output filter. It accepts Wyckoff sites and letters, site labels and elements. The output will contain the specified site distances only.

Output

After running the code, you'll get an output file called 'summary.txt'. It contains the Site labels, the number of atoms on this site at the same distance and then the distance itself in Å all separated by a tab space character.

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

cif2dist-0.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

cif2dist-0.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file cif2dist-0.0.2.tar.gz.

File metadata

  • Download URL: cif2dist-0.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cif2dist-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c170e8b57f845ddb74742168b2e826551ea42e65230cceccd9805cc211692d98
MD5 cc60ea02dbf7fb6e9333ca7bd787a090
BLAKE2b-256 9cdcc8e259afcc6a2e1929ec730daa236e872330638be795a343de4cdbb085a8

See more details on using hashes here.

File details

Details for the file cif2dist-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cif2dist-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for cif2dist-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 506cb2cf487b6f26a566e39943d1028b6108edc04107c694556cddd0c9b88c32
MD5 120ccfedcd80d974cb5b855bad4f2ade
BLAKE2b-256 abc9a2bf6b03c73e551e2d15f0a69473ed4b31b2ea070c6480eb72709c760e34

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