atomID
Welcome to the atomID package! This README will guide you through the initial steps required to start using the AnnotateCrystal class for annotating crystal structures and defects. Follow the steps outlined below to get started.
Installation
To begin, you need to install the atomID package. This can be done using pip:
pip install atomid
Usage
This section provides a step-by-step guide on how to utilise the AnnotateCrystal class within the atomID package.
1. Import the Required Class
Start by importing the AnnotateCrystal class from the atomid.annotate module:
from atomid.annotate import AnnotateCrystal
2. Create an Instance of AnnotateCrystal
Next, create an instance of the AnnotateCrystal class:
crystal = AnnotateCrystal()
3. Read the Crystal Structure File
Read the crystal structure file by using the read_crystal_structure_file method. Make sure to replace crystal_data_file_path with the actual path to your crystal structure file:
crystal.read_crystal_structure_file(crystal_data_file_path, "vasp")
4. Annotate the Crystal Structure
You can now annotate the crystal structure with the annotate_crystal_structure method:
crystal.annotate_crystal_structure()
5. Annotate Defects
To annotate defects, provide a reference file path. Replace ref_file_path with the actual path to your reference file:
crystal.annotate_defects(ref_file_path, "vasp")
6. Write to File
Finally, write the annotated data to a file using the write_to_file method. Specify the output file name and format:
crystal.write_to_file(output_file_path, "ttl")
Example
Here is a complete example that combines all the steps:
from atomid.annotate import AnnotateCrystal
# Create an instance of AnnotateCrystal
crystal = AnnotateCrystal()
# Read the crystal structure file
crystal.read_crystal_structure_file("path/to/your/interstitial_file.poscar", "vasp")
# Annotate the crystal structure
crystal.annotate_crystal_structure()
# Annotate defects using a reference file
crystal.annotate_defects("path/to/your/reference_file.poscar", "vasp")
# Write the annotated data to a file
crystal.write_to_file("Al_inter.ttl", "ttl")
Documentation
Detailed documentation for the atomID package can be found in docs folder.
Contributing
Please refer to the CONTRIBUTING GUIDE on contributing to the atomID package.
Contact
For any queries or feedback, kindly create an issue on the GitHub repository
Release files for atomID 0.3.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atomid-0.3.11.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atomid-0.3.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.9 kB
Release files / atomid-0.3.11.tar.gz
| Download URL | atomid-0.3.11.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
678a63ad82811ec9845f99303e51d7604f7539c9c0f323073ac4514d11df6ba3
|
|
BLAKE2b-256 checksum How to use checksums |
750b607e2977909fdb4f120701ef416c35cab35e0e21bd4224d5387659481539
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.2 Darwin/22.6.0
|
Release files / atomid-0.3.11-py3-none-any.whl
| Download URL | atomid-0.3.11-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e03bb6303386781ed991ff9164df3a65a01a172fd3d7b5072eebc925636e3bc2
|
|
BLAKE2b-256 checksum How to use checksums |
a4e7d141d854b1c7aeb63e1920f215738e8eae3249843095e71f6f05800727d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.2 Darwin/22.6.0
|