Skip to main content

Tests Documentation Status Coverage Status Maintainability

OpenPathSampling CLI

The command line interface to OpenPathSampling

OpenPathSampling is a powerful and flexible library for path sampling simulations. However, many users would prefer to interact with an executable on the command line, instead of writing everything in their own Python script. Here is that command line tool, including some useful scripts for dealing with OPS output files.

The CLI is used as a single executable, openpathsampling, with multiple subcommands. We recommend aliasing openpathsampling to something simpler (maybe ops?) to save typing!

Current categories of subcommands are for simulation running, and for miscellaneous operations on OPS output files.

Simulation Commands:

  • visit-all: Run MD to generate initial trajectories
  • md: Run MD for fixed time or until a given ensemble is satisfied
  • equilibrate: Run equilibration for path sampling
  • pathsampling: Run any path sampling simulation, including TIS variants

Miscellaneous Commands:

  • contents: List named objects from an OPS .nc file
  • append: add objects from INPUT_FILE to another file

Full documentation is at https://openpathsampling-cli.readthedocs.io/; a brief summary is below.

Installation

The OPS CLI can be installed with either conda or pip:

conda -c conda-forge install openpathsampling-cli
# or
pip install openpathsampling-cli

Note that installing the CLI will also install OpenPathSampling, if you don't already have it.

Workflow

Set up, then simulate! The overall idea is that you will first set up your simulation, and then use these scripts to run the resulting simulation setup files. Currently, writing a Python script (or better, using a Jupyter notebook to set things up interactively) is the best way to do that. Save the necessary simulation objects to a setup.nc file, and then use these scripts to run the simulation.

Creating your own commands

Creating your own commands is extremely easy. The OPS CLI uses a plug-in architecture so that installing your own commands is as easy as putting a Python file in your ~/.openpathsampling/cli-plugins/ directory. We provide a standard set of parameters as decorators, which can (and should) be re-used to load things from storage. The CLI is built on click, so additional arguments are easily added using functionality from click. See our developer documentation for details.

Metadata

Release files for openpathsampling-cli 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openpathsampling-cli 0.3.1
File Size Uploaded
openpathsampling_cli-0.3.1.tar.gz 101.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openpathsampling-cli 0.3.1
File Interpreter ABI Platform
openpathsampling_cli-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 242.6 kB

Release files / openpathsampling_cli-0.3.1.tar.gz

Download URL openpathsampling_cli-0.3.1.tar.gz
Size 101.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a96c6675ab8d1c2eeb7293e346c2e3b0040f752aefb7b2449f1e0978baa71bd
BLAKE2b-256 checksum
How to use checksums
0237d96ab1285670165afe16c49cb6988d784a7f7709cac53dcd3dadbf21db6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / openpathsampling_cli-0.3.1-py3-none-any.whl

Download URL openpathsampling_cli-0.3.1-py3-none-any.whl
Size 140.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb7810156cb0a9e27c92be8a47054260056ac2a7ad0521d2f98a3f821c514f72
BLAKE2b-256 checksum
How to use checksums
211dfa46b869dc8464fab8327f8cabc4f0cbdedd581496751a3fd0f2daaf1684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page