Skip to main content

A package that help analyze PQ energy and parameter output.

Project description

CI codecov License: MIT

PQEnalyzer

Energy and parameter analyzer for PQ molecular dynamics trajectories.

Installation

Install with pip:

pip install PQEnalyzer

Usage

Open the GUI by passing one or more supported input files. GUI mode is the default, so the gui subcommand is optional:

pqenalyzer examples/md-02.en

Use the terminal dashboard when you want to monitor a simulation from the terminal:

pqenalyzer tui examples/md-02.en

PQEnalyzer detects PQ energy files, QMCFC energy files, and PQ box files automatically. Energy files are detected from the matching .info sidecar file. Box files are detected by the conventional .box suffix:

pqenalyzer pq_output.en
pqenalyzer qmcfc_output.en
pqenalyzer examples/box-01.box

The input format can still be forced when needed. These examples open the GUI because GUI mode is the default:

pqenalyzer --pq pq_output.en
pqenalyzer --qmcfc qmcfc_output.en
pqenalyzer --box box_output.data

Use the explicit gui subcommand only when you prefer that spelling:

pqenalyzer gui pq_output.en

Multiple input files can be plotted together when they expose the same parameters and units:

pqenalyzer md-01.en md-02.en md-03.en

GUI

The GUI provides focused time-series plots, histograms, and a Live Monitor dashboard. Plot opens a selected parameter as a time series, Histogram opens the selected parameter as a distribution, and Live Monitor opens a raw overview with one panel per parameter.

Auto-Refresh is enabled by default. It watches the loaded input files and refreshes open plots when new simulation output is written. Disable it to pause file watching. Plot controls apply to the selected focused plot, so different plot windows can use different statistics and overlays at the same time.

Available statistics and overlays are:

  • Mean
  • Median
  • Cumulative Average
  • Self-Correlation Mean
  • Difference (1 - 2)
  • Running Average

Double-click a Live Monitor panel to open a focused plot for that parameter. When Difference (1 - 2) is enabled, PQEnalyzer compares the first file against the second file and hides the raw data by default so the difference is easier to read.

TUI

The tui mode opens a full-screen terminal dashboard with file status, per-parameter latest/mean/median/min/max values, compact trends, file-change watching, and focused terminal charts.

Use up/k and down/j to select a parameter, enter to open its chart, esc to return to the dashboard, q to quit, r to refresh manually, and w to pause or resume watching.

Focused charts use the same shared plot features as the GUI: m toggles mean, n toggles median, c toggles cumulative average, s toggles self-correlation mean, x toggles difference, and a toggles running average.

Input Files

PQEnalyzer reads energy output through PQAnalysis. Each .en file is expected to have its matching .info sidecar file next to it. The .info file is also used for automatic PQ versus QMCFC energy-file detection.

PQEnalyzer also reads PQ box files through PQAnalysis. Box files are expected to contain step x y z alpha beta gamma columns. The plotted parameters are BOX-X, BOX-Y, BOX-Z, ALPHA, BETA, GAMMA, and BOX-VOLUME.

When multiple files are supplied, their parsed parameter mappings and units must match. Files with different columns or incompatible units are rejected before plotting.

Difference plots require exactly two loaded files. Values are calculated as file 1 - file 2 on shared simulation-time values. PQEnalyzer does not interpolate, extrapolate, or concatenate difference data.

Development

Install the package with test dependencies:

pip install -e ".[test]"

Run the default test suite:

python -m pytest -q

Benchmark tests require pytest-benchmark. If it is not installed, benchmark tests are skipped by default.

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

pqenalyzer-0.8.3.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pqenalyzer-0.8.3-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file pqenalyzer-0.8.3.tar.gz.

File metadata

  • Download URL: pqenalyzer-0.8.3.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pqenalyzer-0.8.3.tar.gz
Algorithm Hash digest
SHA256 0e3bbcef2f637f07c309180d046858803de1541d687c094ac18135fd6ce253c5
MD5 b67746f3c93fd3d30f3438d9b8ce26ac
BLAKE2b-256 0f2bfae4f40b39fc81bc7f30953b47debda065a5b9bc5330b5ad2e1f15aa1b3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pqenalyzer-0.8.3.tar.gz:

Publisher: release.yml on MolarVerse/PQEnalyzer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pqenalyzer-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: pqenalyzer-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pqenalyzer-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 09df4b0a631bcfc3e8901ef0a9c7f4c87371271cd3eb51a5d3b5c43c275b4342
MD5 d88c3c5ba18deff3baf0864d5c3e21a1
BLAKE2b-256 6b9abb545e18a45fbbc9dd92af54d8455449a625fb12012c9a28b0ca25cbefff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pqenalyzer-0.8.3-py3-none-any.whl:

Publisher: release.yml on MolarVerse/PQEnalyzer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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