a2c-ase
توضیحات
ASE friendly implementation of the a2c workflow with MLIPs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | a2c-ase-0.0.5 |
| نام | a2c-ase |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Abhijeet Gangan <abhijeetgangan@g.ucla.edu> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/a2c-ase/ |
| مجوز | MIT License Copyright (c) 2025 Abhijeet Gangan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
# a2c_ase
[](https://pypi.org/project/a2c-ase/)
[](https://github.com/abhijeetgangan/a2c_ase/actions/workflows/ci.yml)
[](https://codecov.io/gh/abhijeetgangan/a2c_ase)
[](https://opensource.org/licenses/MIT)
[](https://www.python.org/downloads/)
[](https://doi.org/10.5281/zenodo.17355689)
An ASE-friendly implementation of the amorphous-to-crystalline (a2c) workflow.
## Installation
### From PyPI
**With uv (recommended):**
```bash
uv pip install a2c-ase
```
<details>
<summary>Or with pip</summary>
```bash
pip install a2c-ase
```
</details>
### From Source
**With uv:**
```bash
git clone https://github.com/abhijeetgangan/a2c_ase.git
cd a2c_ase
uv pip install .
```
<details>
<summary>Or with pip</summary>
```bash
git clone https://github.com/abhijeetgangan/a2c_ase.git
cd a2c_ase
pip install .
```
</details>
## Usage
See [example/Si64.py](https://github.com/abhijeetgangan/a2c_ase/blob/main/example/Si64.py) for basic usage.
To use a specific calculator you need to install the corresponding package.
In the example above, MACE is used as the calculator, so you need to install the corresponding package.
```bash
pip install mace-torch
```
## Workflow Overview
1. **Initial Structure**: Generate a random atomic configuration with specified composition and volume.
2. **Melt-Quench**: Run MD simulation to create an amorphous structure.
3. **Subcell Extraction**: Identify potential crystalline motifs within the amorphous structure.
4. **Structure Optimization**: Relax subcells to find stable crystalline phases.
5. **Analysis**: Characterize discovered structures using symmetry analysis.
## Development
Install dev dependencies:
```bash
# with pip
pip install -e ".[dev,test]"
```
Set up pre-commit hooks:
```bash
pre-commit install
```
Run checks:
```bash
ruff check # lint
ruff format # format
ty check # type check
pytest # test
```
## Citation
If you use this software in your research, please cite it: [DOI:https://doi.org/10.5281/zenodo.17355689](https://doi.org/10.5281/zenodo.17355689)
## References
1. Aykol, M., Merchant, A., Batzner, S. et al. Predicting emergence of crystals from amorphous precursors with deep learning potentials. Nat Comput Sci 5, 105–111 (2025). [DOI: 10.1038/s43588-024-00752-y](https://doi.org/10.1038/s43588-024-00752-y)
2. Reference implementation: [a2c-workflow](https://github.com/jax-md/jax-md/blob/main/jax_md/a2c/a2c_workflow.py)
نیازمندی
| مقدار | نام |
|---|---|
| - | ase |
| - | numpy |
| - | pymatgen |
| - | tqdm |
| xtr | pre-commit; |
| xtr | ruff; |
| xtr | ty>=0.0.1a20; |
| xtr | pytest; |
| xtr | pytest-cov; |
| xtr | mkdocs-material>=9.0; |
| xtr | mkdocstrings[python]>=0.24; |
| xtr | mkdocs-jupyter>=0.24; |
| xtr | jupytext>=1.16; |
| xtr | ipykernel>=6.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl a2c-ase-0.0.5:
pip install a2c-ase.whl
نصب پکیج tar.gz a2c-ase-0.0.5:
pip install a2c-ase.tar.gz