Skip to main content

A module for analyzing and visualizing solvation shells in LAMMPS output files, but would work with most files that can be handled by ASE.

Project description

solvis

About

Various ways to analyze and visualize solvation shell structures, which wraps PyVista. Meant primarily for analyzing the outputs produced by LAMMPS here.

Installation

From PyPI

You can install solvis from PyPI like so:

pip install solvis-tools

From source

We use micromamba as the package manager, but feel free to use your own poison. Create and activate the environment.

micromamba create -f environment.yml
micromamba activate solvisenv

In order to install the code, run the following in the top-level directory:

pip install -e .

Examples

Each example is self-contained. Mostly, they show how to handle interactive plotting. To close the interactive window, press q.

Tests

To run tests (which are inside the tests directory), written with pytest, run the following command from the top-level directory:

pytest -v

In order to debug tests using pdb, you can write the command breakpoint() inside the Python files (in tests) wherever you want to set a breakpoint. Then, run pytest --pdb. This will stop the code at the line where you put the breakpoint() command.

To see more verbose output from pytest, including tests that pass, you can run pytest -rA.

Note that test_hydrogen_bond.py and test_plot_octahedral_shell.py actually compare the results of images created for a single hydrogen bond and for an octahedral shell showing hydrogen bonds formed by the acceptor seventh molecule, respectively. The images compared against are present in the top-level image_cache_dir directory.

To view a coverage report, run the following from the top-level directory:

pytest --cov=solvis tests/

Image Gallery

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

solvis_tools-0.1.4.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

solvis_tools-0.1.4-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file solvis_tools-0.1.4.tar.gz.

File metadata

  • Download URL: solvis_tools-0.1.4.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for solvis_tools-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b858b78748d8489506f14b9724930b56ef844532f38a047b7e63aadcbd04af3e
MD5 6bca20c1a5cf9aee239eb2527359ab5d
BLAKE2b-256 a0e817a553e31c4da803397a25d5b7eb31805a76c9efc3359875dcd6814ca24f

See more details on using hashes here.

File details

Details for the file solvis_tools-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: solvis_tools-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for solvis_tools-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 377b78af018a6d8b76ecafd4df9b006fb7c77dae3b953f99baf5b2abee60ce7b
MD5 e048e8daee58c662f1bed1e1884595d8
BLAKE2b-256 c80395384716e0478533f5079330bc44e1b68fb093ec53eaa7b3b5168ce6ef15

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