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

To use CIF2Dist, you need

  • Python 3.8 or later installed
  • pip (Python's package installer)

For installation, you can either

  1. clone the git repository and install the package locally:
git clone https://github.com/morcubot/CIF2Dist.git
cd CIF2Dist
pip install .
  1. Or install using pip directly
pip install CIF2Dist

Then run from command line

CIF2Dist --help

If the CIF2Dist command is not found, you may need to add Python's Scripts Folder to your Path:

%LOCALAPPDATA%\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts

Alternatively, you can run it using:

python -m cif2dist.cli --help

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

Help --help, -h

Displays the help site and exits

Version --version, -v

Displays the version number and exits

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.1.tar.gz (6.5 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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cif2dist-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 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.1.tar.gz
Algorithm Hash digest
SHA256 ddc65e7fff08d39702c07dd0ad52b9c8712f5e2f5570f6b8c7f2564424610fdf
MD5 3df7d741c77127c21f433151642f0335
BLAKE2b-256 938af703dd95453deb4982fa1fbcf606b1c96b80f23682dd90b71be52279ea9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cif2dist-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b134f981621e558559f71a63e7dc3799cb59415be3a152e01fde200205294f3
MD5 604daff67b57eff2b230463bd7ddfce7
BLAKE2b-256 ce9fc120d959406c4a77dde80dc5789a7236398cbfc30b8d3a8efc9436fd8912

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