Skip to main content

ANIAnimator makes the GIF file from a given chemical ANI file

Project description

ANIAnimator

PyPI version PyPI pyversions Python package codecov Codacy Badge PyPI download month PyPI download week PyPI download day GitHub all releases GitHub contributors CodeFactor Codacy Badge PyPI license DOI

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

GNU General Public License v3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ANIAnimator-0.2.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distributions

ANIAnimator-0.2.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

ANIAnimator-0.2.1-py2-none-any.whl (18.0 kB view details)

Uploaded Python 2

File details

Details for the file ANIAnimator-0.2.1.tar.gz.

File metadata

  • Download URL: ANIAnimator-0.2.1.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

Hashes for ANIAnimator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1c3b272aa29b8b5c548e46516eef9471c1bb99fe1670953e7eacd755632f196c
MD5 72d6cb1637a0b62526390b901721b3b0
BLAKE2b-256 470b363217712e3aa6dd3d48b8adbefe271004d486f7e59ab05338df14d30a41

See more details on using hashes here.

File details

Details for the file ANIAnimator-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ANIAnimator-0.2.1-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

Hashes for ANIAnimator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80268f53fd9ef3fd1fc2c644cd9b4746fb539b5691f943eb52c0134fb08b2d39
MD5 d6f7705e21ae663b9268df5584bb0141
BLAKE2b-256 2b9f6cef4984514afbae7cd05eea9ea603f189d82bb729715bd21d2081e6e354

See more details on using hashes here.

File details

Details for the file ANIAnimator-0.2.1-py2-none-any.whl.

File metadata

  • Download URL: ANIAnimator-0.2.1-py2-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for ANIAnimator-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 ad64ab9c88b21c31a7d53b9dc22ec5b4a79fc8599ab8a8f25c56797a3efaf564
MD5 1fa1e536262674073c763735f6b91176
BLAKE2b-256 e2d176996d32adee122211710c0425870542142cd4bdc9b96c6b07dc88dcc9f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page