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.1.0.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.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cif2dist-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c67c56803d71c61e9f3fb513ef1a12a56b5924fb45d7ddca0bfa4a4ba78269dc
MD5 f379944157467723537d87c6b3d8433b
BLAKE2b-256 fb23fae0309f9d651c04824708aa66f613ebd8c9e58cab455f115975ddc339d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cif2dist-0.1.0-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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f91b3bfc33ff84ba926e16de05cf62d1ed54ab66eaedd3f7fe49b74f59202382
MD5 da7b8211d04ccc483bf6a00a13142e5f
BLAKE2b-256 8e3278c712261861b83266cd4f02b3f513841cae755a23418d17d80ab93e0e35

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