ANIAnimator makes the GIF file from a given chemical ANI file
Project description
ANIAnimator
ANIAnimator makes the GIF file from a given chemical ANI file.
Installation
Use the package manager pip to install ANIAnimator.
$ pip install ANIAnimator
# to make sure you have the latest version
$ pip install -U ANIAnimator
# latest available code base
$ pip install -U git+https://github.com/eftalgezer/ANIAnimator.git
Tutorial
Usage
In code
Simple usage
ANIAnimator.animate(anifile="graphene.ANI")
Advance usage
ANIAnimator.animate(anifile="graphene.ANI", width=1920, height=1080) # defaults are 1920 × 1080, respectively
ANIAnimator.animate(anifile="graphene.ANI", loop=1) # default is 0; 0 means loop, 1 means no loop
ANIAnimator.animate(anifile="graphene.ANI", bonds_param=1.3) # default is 1.3, sets the bonds between atoms
ANIAnimator.animate(anifile="graphene.ANI", camera=((40, 0, 0),
(0, 0, 0),
(0, 1, 0))) # if you need to set the camera
In terminal
Simple usage
$ python -m ANIAnimator graphene.ANI
Advance usage
$ python -m ANIAnimator <ANI file> <width> <height> <loop> <bonds_param> camera=<param>
$ python -m ANIAnimator graphene.ANI 1920 1080 1 1.3
$ python -m ANIAnimator graphene.ANI 1920 1080 1 1.3 camera=40,0,0,0,0,0,0,1,0 # if you need to set the camera
About bonds_param
parameter
ANIAnimator uses mogli to create PNG images of the steps in ANI files. The default of mogli package is 1.0
. ANIAnimator default is 1.3
since the experience shows that 1.3
is better. For details, see the README.md of mogli package.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Citation
If you are using ANIAnimator, please citate relevant version. You can find the relevant citation here.
@software{eftal_gezer_2022_7156725,
author = {Eftal Gezer},
title = {eftalgezer/ANIAnimator: v0.2.0},
month = oct,
year = 2022,
publisher = {Zenodo},
version = {v0.2.0},
doi = {10.5281/zenodo.7156725},
url = {https://doi.org/10.5281/zenodo.7156725}
}
License
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
File details
Details for the file ANIAnimator-0.2.0.tar.gz
.
File metadata
- Download URL: ANIAnimator-0.2.0.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4285a04bd82edda2e1797f937a0165cf751d11bb615d87a3ad420fbfba1ba103 |
|
MD5 | 94d969f6c59c60b79fe099fb36e2cfd1 |
|
BLAKE2b-256 | 3cf549321e07dc3a4f000dad69b0234392d392eaf98da465a4725ff3f3799dd4 |
File details
Details for the file ANIAnimator-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ANIAnimator-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1945f320af0cb605dcda11b2b69e1b3fbcf7a7d974b7585380ec347dd815269 |
|
MD5 | 1f2934563cfbc472b99810ad29c6a895 |
|
BLAKE2b-256 | 1931686bc43b8d6814b737ff4f2abd877b6079da44186d13dbbf65229f869327 |