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, but anything that ASE can handle should work.

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. The package pytest-pyvista is used for image verification.

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.5.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

solvis_tools-0.1.5-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for solvis_tools-0.1.5.tar.gz
Algorithm Hash digest
SHA256 75c2eab948b46a3dac3403a45078e850ad6a85128a4b50f202e6eac4af610ec4
MD5 56ab8a0ea281e5f81e0b642e1347021b
BLAKE2b-256 c828e94ae5896a0b8f2fd7525f73ee72c17ed1a7835d93829ce42cd009a69d55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solvis_tools-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dd7356a2ccc009f84d4c051ba47667d56ae72b6504409ffe4f36fd8bf45200e9
MD5 bb1fcdc95dcbd40cedcf164a16485d84
BLAKE2b-256 6cb46664afb3c9aa2747fe2c491adc2b9efbe555d0824f86836711f8b3c9752c

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page