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/MGurbisz/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: For Windows, search for 'Environment Variables' and open 'Edit the system environment variables'. There open 'Environment Variables'. Under 'User Variables' find Path and click Edit. Select 'New' and add this:

%LOCALAPPDATA%\Packages\PythonSoftwareFoundation.Python.3.###\LocalCache\local-packages\Python3###\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.2.0.tar.gz (6.9 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.2.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cif2dist-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eace0cdd2b1e375a29e7533fad8a0a16f4f629aa3344832509f594c16a7ea713
MD5 30bf829ecb4d19bfa8be4af8f6cee309
BLAKE2b-256 c1a4a3780957075721c52b2f3e35fd57d154f2d10d75aa6ac437d71acd8c9a08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cif2dist-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad65cea41bf67697e75cf7f6ee9b7b012407c9ac147557cb0f0477efd2db03bf
MD5 2c5f8f35f02b234836a44d6101b61201
BLAKE2b-256 3c778ec115279c265e794b1fdb1986375d173071980770754c31c14040928b70

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