MPPT Viewer: inspect calculations and analysis#

Browse recorded calculations, compare results and inspect scientific plots. Viewer is a separate browser application with a Python backend. It does not start or restart electronic-structure calculations.

Install and open#

For a configured MPPT build:

cmake --build build --target install-mppt-viewer
mppt-viewer serve runs --port 8765

Open http://127.0.0.1:8765. For installation with the rest of MPPT, configure -DINSTALL_MPPT_VIEWER=ON and use cmake --install build. The Viewer wheel includes its frontend; browsing needs neither Node.js nor compiled solvers. An optional analysis command needs a compatible pyscf2mppt installation.

Inspect one calculation#

Overview displays the recorded system, basis, operator, stage settings and results. Requested counts and actual results remain separate. A reused stage retains its producing attempt; missing SCF/CASSCF evidence in a continuation run is not borrowed from another calculation.

ECP core shells marked by convention use a documented closed-core convention. The potential’s electron count and angular channels do not uniquely identify principal shell quantum numbers; unsupported shell assignments stay missing.

Stage cards lead to input, attempts, bounded logs and state tables. Tables are paged, with absolute energies in Hartree or relative energies in eV/cm⁻¹. CASCI/selected CI, MPPT2 and SOC retain their own method labels. The catalog does not load large integral tensors or eigenvector matrices.

Inspect plots and compare runs#

View

What it shows

CIPSIXX

Recorded iteration/root energies, convergence and selection series

Scalar/SOC levels

Separate stages, optional compatible parent links and configurable axis breaks

Orbitals and solver

Available occupations, orbital-energy diagnostics and PRIMME histories

Spectrum

Available transitions and temperature-dependent presentation

Compare

Parameter differences, differences from a chosen energy reference and run columns

Absent evidence remains absent. Parent links require compatible parent-analysis files; missing links do not mean zero parent weight. Requested properties do not certify that native property calculation or analysis completed.

Table and plot controls support copying/exporting data and CSV/PNG/SVG where provided. Live refresh preserves inspection state; plots load when opened. Axis breaks change presentation, not stored energies. Keep method, energy origin, units and the original run evidence with exported figures.

Analyze a finished run#

Integrated analysis replaces separate Caspy commands:

pyscf2mppt analyze runs/ce

It writes only under runs/ce/analysis/, records parent/report/magnetic task outcomes and reuses matching inputs/options with unchanged outputs. It does not rerun the calculation. --check queries for a matching analysis; --force requests a new one. The v0.5.0 migration notes list the replaced CLI/Python interfaces and historical-artifact behavior.

The Analysis panel shows saved analyses and complete, skipped or failed tasks. Missing handoff/properties can skip individual tasks; validation failures remain visible. A successful overall command need not mean every task succeeded.

Permit analysis explicitly#

Analysis launch is off by default. In the source’s TOML entry, enable it only when the backend has the intended executable and access to the analysis output:

[sources.analysis]
enabled = true
command = ["pyscf2mppt", "analyze"]

This fragment augments a local source entry. Remote-source launches are not supported. Only recorded-complete runs may be analyzed. The configured command writes into analysis/; opening a chart is not authorization to run it. The UI can report Up to date, changed inputs and task errors, and can explicitly request a rerun. Input/output hashes and options belong to the analysis record.

Local gateway and remote sources#

Run a headless backend on the calculation server:

mppt-viewer backend /data/mppt-projects --port 8766

Forward it to the local machine through an SSH tunnel:

ssh -N -L 8766:127.0.0.1:8766 user@server

Configure the local gateway’s remote URL as http://127.0.0.1:8766. The prototype has no built-in login. An unavailable source is reported separately from recorded run status; an old running record is not proof of a live process.

Scope#

Viewer 0.1.0a1 includes the accepted Overview, scientific plots, comparison and Analysis panel. Persistent SQLite indexing, SSE and explicit sweep relationships are not implemented. The application is not a scheduler or a scientific validator: it preserves recorded statuses and analysis outcomes without reclassifying unconverged runs as converged.

See the analysis guide for task inputs, options and output files.