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
- clone the git repository and install the package locally:
git clone https://github.com/MGurbisz/CIF2Dist.git
cd CIF2Dist
pip install .
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cif2dist-0.2.1.tar.gz.
File metadata
- Download URL: cif2dist-0.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46e20f697a08df90979341951d70cb5e7757bd9026e95c89b1c4efc54b24e36b
|
|
| MD5 |
b59601af89527734e57aa8f9f6bce752
|
|
| BLAKE2b-256 |
6c89bb9a48de1c230a2abe1437797cc1d980fbc886f3fe3ce37dc29f63fef698
|
File details
Details for the file cif2dist-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cif2dist-0.2.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f42a0b4e9f1e2e61d53ec2d118d20b878db4579a1baec7a9fe8b612acc53baef
|
|
| MD5 |
1432914e453768f962ef21c79a74c39a
|
|
| BLAKE2b-256 |
065c6a6d5557abef287909e1343692bd11fa0733c66ea09f11c6b8d751afa405
|