chemparseplot 1.14.0__tar.gz → 1.15.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/.gitignore +1 -1
- chemparseplot-1.15.0/PKG-INFO +307 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/__init__.py +12 -1
- {chemparseplot-1.14.0 → chemparseplot-1.15.0/chemparseplot}/_version.py +2 -2
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/api.py +89 -19
- chemparseplot-1.15.0/chemparseplot/basetypes.py +90 -0
- chemparseplot-1.15.0/chemparseplot/parse/con/__init__.py +72 -0
- chemparseplot-1.15.0/chemparseplot/parse/con/chemfiles.py +73 -0
- chemparseplot-1.15.0/chemparseplot/parse/con/io.py +53 -0
- chemparseplot-1.15.0/chemparseplot/parse/con/trajectory.py +244 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/con_io.py +174 -2
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/saddle_search.py +2 -2
- chemparseplot-1.15.0/chemparseplot/parse/orca/freq.py +228 -0
- chemparseplot-1.15.0/chemparseplot/parse/orca/hessian.py +93 -0
- chemparseplot-1.15.0/chemparseplot/parse/orca/migration.py +65 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/neb/interp.py +1 -1
- chemparseplot-1.15.0/chemparseplot/parse/orca/populations.py +174 -0
- chemparseplot-1.15.0/chemparseplot/parse/orca/vpt2.py +84 -0
- chemparseplot-1.15.0/chemparseplot/parse/qmcpack/__init__.py +46 -0
- chemparseplot-1.15.0/chemparseplot/parse/qmcpack/blocking.py +156 -0
- chemparseplot-1.15.0/chemparseplot/parse/qmcpack/records.py +242 -0
- chemparseplot-1.15.0/chemparseplot/parse/qmcpack/scalars.py +176 -0
- chemparseplot-1.15.0/chemparseplot/parse/qmcpack/timers.py +296 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/sella/saddle_search.py +2 -2
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/surrogate/gpr_optim.py +73 -30
- chemparseplot-1.15.0/chemparseplot/parse/trajectory/band_h5.py +878 -0
- chemparseplot-1.15.0/chemparseplot/parse/trajectory/hdf5.py +527 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/trajectory/neb.py +40 -1
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/__init__.py +1 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/chemgp.py +10 -11
- chemparseplot-1.15.0/chemparseplot/plot/con.py +392 -0
- chemparseplot-1.15.0/chemparseplot/plot/evaluation_costs.py +129 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/journal.py +1 -2
- chemparseplot-1.15.0/chemparseplot/plot/kinetics.py +92 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/landscape.py +2 -2
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/neb.py +101 -50
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/optimization.py +6 -5
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/palette.py +49 -0
- chemparseplot-1.15.0/chemparseplot/plot/qmcpack.py +703 -0
- chemparseplot-1.15.0/chemparseplot/plot/render.py +1210 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/surrogate.py +94 -28
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/theme.py +11 -5
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/pyproject.toml +14 -6
- chemparseplot-1.15.0/readme.md +213 -0
- chemparseplot-1.15.0/tests/fixtures/orca/ir_spectrum_h2o.out +26 -0
- chemparseplot-1.15.0/tests/fixtures/orca/mulliken_loewdin.out +21 -0
- chemparseplot-1.15.0/tests/fixtures/orca/vib_freq_h2o.out +26 -0
- chemparseplot-1.15.0/tests/fixtures/orca/vpt2_fundamentals.out +18 -0
- chemparseplot-1.15.0/tests/fixtures/qmcpack/acforce_vmc_timers.out +8 -0
- chemparseplot-1.15.0/tests/fixtures/qmcpack/dmc.s001.scalar.dat +17 -0
- chemparseplot-1.15.0/tests/fixtures/qmcpack/h4_hybrid_timers.out +10 -0
- chemparseplot-1.15.0/tests/fixtures/qmcpack/ts-h2o.s001.dmc.dat +33 -0
- chemparseplot-1.15.0/tests/fixtures/qmcpack/vmc.info.xml +44 -0
- chemparseplot-1.15.0/tests/parse/con/test_chemfiles.py +83 -0
- chemparseplot-1.15.0/tests/parse/con/test_trajectory.py +143 -0
- chemparseplot-1.15.0/tests/parse/orca/test_freq_vpt2_populations.py +561 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/orca/test_interp.py +1 -2
- chemparseplot-1.15.0/tests/parse/qmcpack/test_qmcpack_blocking.py +119 -0
- chemparseplot-1.15.0/tests/parse/qmcpack/test_qmcpack_records.py +177 -0
- chemparseplot-1.15.0/tests/parse/qmcpack/test_qmcpack_scalars.py +131 -0
- chemparseplot-1.15.0/tests/parse/qmcpack/test_qmcpack_timers.py +189 -0
- chemparseplot-1.15.0/tests/parse/test_band_h5.py +600 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_sella_saddle.py +1 -1
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_surrogate_gpr_optim.py +38 -0
- chemparseplot-1.15.0/tests/parse/test_trajectory_hdf5_gpridge.py +152 -0
- chemparseplot-1.15.0/tests/plot/data/figures/energy_landscape.png +0 -0
- chemparseplot-1.15.0/tests/plot/test_con_plot.py +138 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_journal.py +1 -2
- chemparseplot-1.15.0/tests/plot/test_kinetics_reference.py +39 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_palette.py +48 -0
- chemparseplot-1.15.0/tests/plot/test_qmcpack_plots.py +334 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_strip_rendering.py +121 -0
- chemparseplot-1.15.0/tests/plot/test_structure_render.py +673 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_surrogate_plots.py +42 -3
- chemparseplot-1.15.0/tests/plot/test_theme.py +107 -0
- chemparseplot-1.15.0/tests/test_basetypes.py +27 -0
- chemparseplot-1.15.0/tests/test_check_version.py +248 -0
- chemparseplot-1.15.0/tests/test_public_api.py +312 -0
- chemparseplot-1.15.0/tests/test_version.py +35 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/tutorials/test_chemparseplot.py +1 -2
- chemparseplot-1.14.0/PKG-INFO +0 -247
- chemparseplot-1.14.0/chemparseplot/parse/trajectory/hdf5.py +0 -308
- chemparseplot-1.14.0/chemparseplot/plot/con.py +0 -186
- chemparseplot-1.14.0/readme.md +0 -157
- chemparseplot-1.14.0/tests/plot/data/figures/energy_landscape.png +0 -0
- chemparseplot-1.14.0/tests/test_public_api.py +0 -72
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/LICENSE +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/contracts/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/contracts/load_outcome.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/benchmark.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/chemgp_hdf5.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/chemgp_jsonl.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/converter.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/_trajectory_common.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/con_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/dimer_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/frame_series.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/gprd.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/min_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/minimization.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/neb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/eon/stitch.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/file_.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/grammar/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/grammar/_deps.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/grammar/orca_text.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/grammar/xyz.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/mlneb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/neb_utils.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/_opi.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/geomscan.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/neb/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/orca/neb/opi_parser.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/patterns.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/plumed.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/projection.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/surrogate/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/surrogate/cases.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/surrogate/mlneb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/surrogate/model.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/trajectory/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/parse/types.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/benchmark.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/disconnectivity.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/geomscan.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/mlneb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/plumed.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/provenance.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/reaction.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/rings.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/plot/structs.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/units.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/chemparseplot/util.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/_optional_imports.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/conftest.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/h2mol.xyz +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/orca_energy_coords_snippet.out +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/restart_exact.con +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/restart_exact_vel.con +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/cases/baselines.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/cases/cases.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/mlneb/evaluated.traj +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/mlneb/ml_summary.txt +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/mlneb/ml_time.txt +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/mlneb/predicted.traj +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/baker/25_hcnh2/band/band.h5 +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/baker/25_hcnh2/band/obs-archive/kernel.txt +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/baker/25_hcnh2/result.json +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/baker/25_hcnh2/saddle/pos.con +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/birkholz/16_oxirane/result.json +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/birkholz/16_oxirane/saddle/mlflow.run.json +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/mlruns/606078088088587/7eaf5653201fe6b92f3e3831bead3063/metrics/dimer.curvature +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/mlruns/606078088088587/7eaf5653201fe6b92f3e3831bead3063/metrics/dimer.force +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/mlruns/606078088088587/7eaf5653201fe6b92f3e3831bead3063/metrics/dimer.measured_curvature +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/mlruns/606078088088587/7eaf5653201fe6b92f3e3831bead3063/metrics/dimer.oracle_calls +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/record/mlruns/606078088088587/7eaf5653201fe6b92f3e3831bead3063/metrics/dimer.surrogate_curvature +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/scaling/breakdown.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/scaling/components.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/scaling/counts.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/scaling/pop.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures/surrogate/scaling/wall.csv +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/fixtures_geomscan_snippet.txt +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/_con_fixtures.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/grammar/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/grammar/test_grammar_deps.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/grammar/test_orca_text_grammar.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/grammar/test_xyz_grammar.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/orca/test_geomscan.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_chemgp_hdf5.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_chemgp_jsonl_types.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_con_io.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_con_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_con_units_and_corpus.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_converter.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_dimer_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_eon_neb_types.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_eon_trajectory_common.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_frame_series.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_min_trajectory.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_minimization_result.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_neb_stitch.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_neb_utils.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_orca_public_api.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_parser_types.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_patterns.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_plumed.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_projection.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_readcon_boundary.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_saddle_results.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_surrogate_mlneb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_trajectory_hdf5.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/parse/test_trajectory_neb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/__init__.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/au_al100.json +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/au_al100.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/figures/convergence.png +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/figures/neb_profile.png +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/figures/neb_profile_history.png +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/figures/relative_error.png +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/figures/versions.json +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/data/sexithiophene.sdf +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_benchmark.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_chemgp_imports.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_chemgp_utils.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_figure_images.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_journal_plots.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_landscape_disconnectivity.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_mlneb.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_neb_helpers.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_neb_renderers.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_optimization.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_orca_neb_payload.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_primitive_rings.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_projection_refactor.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_provenance.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_reaction.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_ring_track.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_ring_updater.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_structs_units.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/plot/test_surface_auto_thin.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/test_coverage_batch.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/test_full_coverage.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/test_load_outcome.py +0 -0
- {chemparseplot-1.14.0 → chemparseplot-1.15.0}/tests/tutorials/test_journal_figure.py +0 -0
|
@@ -168,7 +168,7 @@ cython_debug/
|
|
|
168
168
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
169
169
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
170
170
|
#.idea/
|
|
171
|
-
/_version.py
|
|
171
|
+
/chemparseplot/_version.py
|
|
172
172
|
/.pdm-python
|
|
173
173
|
*.ipynb
|
|
174
174
|
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: chemparseplot
|
|
3
|
+
Version: 1.15.0
|
|
4
|
+
Summary: Parsers and plotting tools for computational chemistry
|
|
5
|
+
Project-URL: Documentation, https://chemparseplot.rgoswami.me
|
|
6
|
+
Project-URL: Issues, https://github.com/HaoZeke/chemparseplot/issues
|
|
7
|
+
Project-URL: Source, https://github.com/HaoZeke/chemparseplot
|
|
8
|
+
Project-URL: Changelog, https://github.com/HaoZeke/chemparseplot/blob/main/CHANGELOG.md
|
|
9
|
+
Author-email: Rohit Goswami <rog32@hi.is>
|
|
10
|
+
License: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: compchem,parser,plot
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
|
+
Requires-Python: >=3.11
|
|
20
|
+
Requires-Dist: numpy>=1.26.2
|
|
21
|
+
Requires-Dist: pint>=0.22
|
|
22
|
+
Provides-Extra: all
|
|
23
|
+
Requires-Dist: ase>=3.22; extra == 'all'
|
|
24
|
+
Requires-Dist: cmcrameri>=1.7; extra == 'all'
|
|
25
|
+
Requires-Dist: h5py>=3.0; extra == 'all'
|
|
26
|
+
Requires-Dist: matplotlib>=3.8.2; extra == 'all'
|
|
27
|
+
Requires-Dist: orca-pi>=0.1.0; extra == 'all'
|
|
28
|
+
Requires-Dist: parsimonious>=0.10.0; extra == 'all'
|
|
29
|
+
Requires-Dist: polars>=0.20; extra == 'all'
|
|
30
|
+
Requires-Dist: pydseamslib>=2.11.1; extra == 'all'
|
|
31
|
+
Requires-Dist: readcon-db>=0.2.0; extra == 'all'
|
|
32
|
+
Requires-Dist: readcon>=0.17.1; extra == 'all'
|
|
33
|
+
Requires-Dist: resvg-py>=0.5.0; extra == 'all'
|
|
34
|
+
Requires-Dist: solvis-tools>=0.1.5; extra == 'all'
|
|
35
|
+
Requires-Dist: xyzrender>=0.3.8; extra == 'all'
|
|
36
|
+
Provides-Extra: doc
|
|
37
|
+
Requires-Dist: mdit-py-plugins>=0.3.4; extra == 'doc'
|
|
38
|
+
Requires-Dist: myst-nb>=1; extra == 'doc'
|
|
39
|
+
Requires-Dist: myst-parser>=2; extra == 'doc'
|
|
40
|
+
Requires-Dist: shibuya>=2025.12.13; extra == 'doc'
|
|
41
|
+
Requires-Dist: sphinx-autodoc2>=0.5; extra == 'doc'
|
|
42
|
+
Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'doc'
|
|
43
|
+
Requires-Dist: sphinx-design>=0.6; extra == 'doc'
|
|
44
|
+
Requires-Dist: sphinx-sitemap>=2.5.1; extra == 'doc'
|
|
45
|
+
Requires-Dist: sphinx-togglebutton>=0.3.2; extra == 'doc'
|
|
46
|
+
Requires-Dist: sphinx>=7.2.6; extra == 'doc'
|
|
47
|
+
Requires-Dist: sphinxcontrib-apidoc>=0.4; extra == 'doc'
|
|
48
|
+
Requires-Dist: sphinxcontrib-mermaid>=1.0; extra == 'doc'
|
|
49
|
+
Provides-Extra: grammar
|
|
50
|
+
Requires-Dist: parsimonious>=0.10.0; extra == 'grammar'
|
|
51
|
+
Provides-Extra: lint
|
|
52
|
+
Requires-Dist: ruff>=0.1.6; extra == 'lint'
|
|
53
|
+
Provides-Extra: neb
|
|
54
|
+
Requires-Dist: ase>=3.22; extra == 'neb'
|
|
55
|
+
Requires-Dist: h5py>=3.0; extra == 'neb'
|
|
56
|
+
Requires-Dist: polars>=0.20; extra == 'neb'
|
|
57
|
+
Requires-Dist: readcon-db>=0.2.0; extra == 'neb'
|
|
58
|
+
Requires-Dist: readcon>=0.17.1; extra == 'neb'
|
|
59
|
+
Provides-Extra: opi
|
|
60
|
+
Requires-Dist: orca-pi>=0.1.0; extra == 'opi'
|
|
61
|
+
Provides-Extra: plot
|
|
62
|
+
Requires-Dist: cmcrameri>=1.7; extra == 'plot'
|
|
63
|
+
Requires-Dist: matplotlib>=3.8.2; extra == 'plot'
|
|
64
|
+
Provides-Extra: release
|
|
65
|
+
Requires-Dist: build>=0.10; extra == 'release'
|
|
66
|
+
Requires-Dist: towncrier>=24.8.0; extra == 'release'
|
|
67
|
+
Requires-Dist: twine>=7; extra == 'release'
|
|
68
|
+
Requires-Dist: wheel>=0.40; extra == 'release'
|
|
69
|
+
Provides-Extra: rings
|
|
70
|
+
Requires-Dist: pydseamslib>=2.11.1; extra == 'rings'
|
|
71
|
+
Requires-Dist: xyzrender>=0.3.8; extra == 'rings'
|
|
72
|
+
Provides-Extra: solvis
|
|
73
|
+
Requires-Dist: solvis-tools>=0.1.5; extra == 'solvis'
|
|
74
|
+
Provides-Extra: test
|
|
75
|
+
Requires-Dist: ase>=3.22; extra == 'test'
|
|
76
|
+
Requires-Dist: h5py>=3.0; extra == 'test'
|
|
77
|
+
Requires-Dist: jax[cpu]>=0.4; extra == 'test'
|
|
78
|
+
Requires-Dist: matplotlib>=3.8.2; extra == 'test'
|
|
79
|
+
Requires-Dist: parsimonious>=0.10.0; extra == 'test'
|
|
80
|
+
Requires-Dist: polars>=0.20; extra == 'test'
|
|
81
|
+
Requires-Dist: pydseamslib>=2.11.1; extra == 'test'
|
|
82
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == 'test'
|
|
83
|
+
Requires-Dist: pytest>=7.4.3; extra == 'test'
|
|
84
|
+
Requires-Dist: readcon-db>=0.2.0; extra == 'test'
|
|
85
|
+
Requires-Dist: readcon>=0.17.1; extra == 'test'
|
|
86
|
+
Requires-Dist: rgpycrumbs; extra == 'test'
|
|
87
|
+
Requires-Dist: scipy>=1.11; extra == 'test'
|
|
88
|
+
Requires-Dist: solvis-tools>=0.1.5; extra == 'test'
|
|
89
|
+
Requires-Dist: xyzrender>=0.3.8; extra == 'test'
|
|
90
|
+
Provides-Extra: xyzrender
|
|
91
|
+
Requires-Dist: resvg-py>=0.5.0; extra == 'xyzrender'
|
|
92
|
+
Requires-Dist: xyzrender>=0.3.8; extra == 'xyzrender'
|
|
93
|
+
Description-Content-Type: text/markdown
|
|
94
|
+
|
|
95
|
+
> Canonical source note: this Org file is authoritative for contributor-facing documentation.
|
|
96
|
+
> Rendered Markdown files are derived artifacts and should not be edited separately.
|
|
97
|
+
|
|
98
|
+
Parses computational chemistry outputs (ORCA, eOn, Sella, ChemGP, PLUMED) into unit-aware Python objects and plots NEB paths, energy profiles and surfaces.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# Table of Contents
|
|
102
|
+
|
|
103
|
+
- [About](#org4224b2b)
|
|
104
|
+
- [Installation](#orgd9743f9)
|
|
105
|
+
- [Ecosystem Overview](#org0f273ae)
|
|
106
|
+
- [Features](#orged1911e)
|
|
107
|
+
- [Supported Engines](#org2df9da1)
|
|
108
|
+
- [Documentation](#orga04ba1a)
|
|
109
|
+
- [Contributing](#org2b9d619)
|
|
110
|
+
- [Release Process](#org123fb6a)
|
|
111
|
+
- [License](#org2cd1740)
|
|
112
|
+
- [Acknowledgments](#org59d25de)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<a id="org4224b2b"></a>
|
|
116
|
+
|
|
117
|
+
# About
|
|
118
|
+
|
|
119
|
+

|
|
120
|
+
|
|
121
|
+
[](https://github.com/HaoZeke/chemparseplot/actions/workflows/build_test.yml) [](https://github.com/HaoZeke/chemparseplot/actions/workflows/ci_prek.yml) [](https://github.com/HaoZeke/chemparseplot/actions/workflows/build_docs.yml) [](https://pypi.org/project/chemparseplot/) [](https://pypi.org/project/chemparseplot/) [](https://opensource.org/licenses/MIT) [](https://onegoodtutorial.org/about/badge/?v=1) [](https://github.com/pypa/hatch) [](https://doi.org/10.5281/zenodo.18529752)
|
|
122
|
+
|
|
123
|
+
A **pure-python**<sup><a id="fnr.1" class="footref" href="#fn.1" role="doc-backlink">1</a></sup> parsing and plotting library for computational chemistry outputs.
|
|
124
|
+
`chemparseplot` extracts structured data from the output of the quantum chemistry program (ORCA), eOn, Sella and ChemGP.
|
|
125
|
+
It produces publication-quality, unit-aware visualizations with [scientific color maps](https://www.fabiocrameri.ch/colourmaps/).
|
|
126
|
+
|
|
127
|
+
Computational tasks (surface fitting, structure analysis, interpolation) are
|
|
128
|
+
**optionally** delegated to [`rgpycrumbs`](https://github.com/HaoZeke/rgpycrumbs)
|
|
129
|
+
(suite hub / compute). Hard install dependencies are only `numpy` and `pint`;
|
|
130
|
+
plot/NEB/grammar stacks are extras or host-provided. `chemparseplot` parses
|
|
131
|
+
output files and produces unit-aware plots; heavy compute stays optional so
|
|
132
|
+
packages remain lightweight (CLI isolation: PEP 723 + uv; library: `ensure_import`).
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
<a id="orgd9743f9"></a>
|
|
136
|
+
|
|
137
|
+
## Installation
|
|
138
|
+
|
|
139
|
+
pip install chemparseplot
|
|
140
|
+
|
|
141
|
+
Suite config (shared with rgpycrumbs — **no** `~/.config/chemparseplot`):
|
|
142
|
+
|
|
143
|
+
# ~/.config/rgpkgs/config.toml or ./rgpkgs.toml
|
|
144
|
+
# [pins] lock = "uv.lock"
|
|
145
|
+
# [pins.packages] …
|
|
146
|
+
|
|
147
|
+
Feature extras such as `plot` and `neb` are a *transitional* install convenience.
|
|
148
|
+
The target is the same on-demand uv / `ensure_import` design as the rgpycrumbs hub.
|
|
149
|
+
Prefer the bare install and the suite pins for new work.
|
|
150
|
+
|
|
151
|
+
# transitional:
|
|
152
|
+
# With plotting support
|
|
153
|
+
pip install "chemparseplot[plot]"
|
|
154
|
+
# Everything
|
|
155
|
+
pip install "chemparseplot[all]"
|
|
156
|
+
|
|
157
|
+
For development:
|
|
158
|
+
|
|
159
|
+
git clone https://github.com/HaoZeke/chemparseplot
|
|
160
|
+
cd chemparseplot
|
|
161
|
+
uv sync --all-extras
|
|
162
|
+
|
|
163
|
+
See the [installation guide](https://chemparseplot.rgoswami.me/installation.html) and [quickstart](https://chemparseplot.rgoswami.me/quickstart.html) for details.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<a id="org0f273ae"></a>
|
|
167
|
+
|
|
168
|
+
## Ecosystem Overview
|
|
169
|
+
|
|
170
|
+
`chemparseplot` is part of the `rgpkgs` suite of interlinked libraries (hub: `rgpycrumbs`).
|
|
171
|
+
|
|
172
|
+
- Hub / CLI: [`rgpycrumbs`](https://github.com/HaoZeke/rgpycrumbs)
|
|
173
|
+
- Inputs: [`pychum`](https://github.com/HaoZeke/pychum)
|
|
174
|
+
- CON/convel I/O: [`readcon-core`](https://github.com/lode-org/readcon-core) (PyPI: [`readcon`](https://pypi.org/project/readcon/))
|
|
175
|
+
- Engine: [eOn](https://eondocs.org)
|
|
176
|
+
|
|
177
|
+

|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<a id="orged1911e"></a>
|
|
181
|
+
|
|
182
|
+
## Features
|
|
183
|
+
|
|
184
|
+
- **Parsing** computational chemistry output files into structured data.
|
|
185
|
+
- **Plotting** with [scientific color maps](https://www.fabiocrameri.ch/colourmaps/) (camera-ready).
|
|
186
|
+
- **Unit preserving** throughout via `pint`.
|
|
187
|
+
- **Optional computation** via [`rgpycrumbs`](https://github.com/HaoZeke/rgpycrumbs) for surface fitting, interpolation, and structure analysis (not a hard dependency).
|
|
188
|
+
- **NEB stitching** (`stitch_neb_segments`) for continuous multi-segment bands across chained minimizations (v1.8+).
|
|
189
|
+
- **Metadata-native eOn** `.con` frames ([readcon-core](https://github.com/lode-org/readcon-core); prefer JSON metadata energies over `.dat` tables) and typed parser results for NEB and single-ended tools.
|
|
190
|
+
- **Unit-aware NEB/optimization plot helpers** (`convert_neb_values`, shared strip rendering) used by `rgpycrumbs` CLIs.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<a id="org2df9da1"></a>
|
|
194
|
+
|
|
195
|
+
### Supported Engines
|
|
196
|
+
|
|
197
|
+
- ORCA (**5.x**)
|
|
198
|
+
- Geometry scan (`OPT`) energy profiles.
|
|
199
|
+
- Nudged elastic band (NEB) path visualization.
|
|
200
|
+
- eOn
|
|
201
|
+
- Saddle search parsing for the dimer and Gaussian process regression dimer (GPRD) methods, with their optimizers such as `lbfgs`.
|
|
202
|
+
- NEB energy profiles and 2D surface projections of the path.
|
|
203
|
+
- Sella
|
|
204
|
+
- Saddle point optimization result parsing.
|
|
205
|
+
- Trajectory formats
|
|
206
|
+
- HDF5 trajectories (ChemGP output with pre-computed forces).
|
|
207
|
+
- Generic ASE-readable formats (extxyz, .traj) for NEB analysis.
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<a id="orga04ba1a"></a>
|
|
211
|
+
|
|
212
|
+
## Documentation
|
|
213
|
+
|
|
214
|
+
Full documentation is at <https://chemparseplot.rgoswami.me>.
|
|
215
|
+
This includes:
|
|
216
|
+
|
|
217
|
+
- A [quickstart guide](https://chemparseplot.rgoswami.me/quickstart.html)
|
|
218
|
+
- [Tutorials](https://chemparseplot.rgoswami.me/tutorials/index.html) for common workflows
|
|
219
|
+
- [API reference](https://chemparseplot.rgoswami.me/apidocs/index.html)
|
|
220
|
+
|
|
221
|
+
The map of the site, [llms.txt](https://chemparseplot.rgoswami.me/llms.txt), lists the pages with a line on what each covers, and [llms-full.txt](https://github.com/HaoZeke/chemparseplot/blob/main/llms-full.txt) has the manual in one Markdown file and names what it leaves out.
|
|
222
|
+
[AGENTS.md](https://github.com/HaoZeke/chemparseplot/blob/main/AGENTS.md) has the build, test and documentation commands and the mistakes that are easy to make, and [skills/](https://github.com/HaoZeke/chemparseplot/tree/main/skills) has task guides whose scripts CI runs: reading an ORCA scan, adding a parser, and finding the source of a docs page.
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
<a id="org2b9d619"></a>
|
|
226
|
+
|
|
227
|
+
## Contributing
|
|
228
|
+
|
|
229
|
+
Contributions are welcome.
|
|
230
|
+
See [CONTRIBUTING.md](https://github.com/HaoZeke/chemparseplot/blob/main/CONTRIBUTING.md) for development setup and guidelines, and the [Code of Conduct](https://github.com/HaoZeke/chemparseplot/blob/main/CODE_OF_CONDUCT.md).
|
|
231
|
+
|
|
232
|
+
For bug reports or questions, open an issue on [GitHub](https://github.com/HaoZeke/chemparseplot/issues).
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
<a id="org123fb6a"></a>
|
|
236
|
+
|
|
237
|
+
## Release Process
|
|
238
|
+
|
|
239
|
+
Versions are derived automatically from Git tags via `hatch-vcs`.
|
|
240
|
+
We keep `towncrier` for release-note aggregation and use `cocogitto` (`cog`) for the semantic version/tag step.
|
|
241
|
+
The actual publish step is already handled by the tag-triggered `.github/workflows/release.yml` workflow.
|
|
242
|
+
|
|
243
|
+
Run the block as one bash script, since it exits at the first failing command.
|
|
244
|
+
|
|
245
|
+
set -euo pipefail
|
|
246
|
+
|
|
247
|
+
# 1. Run the same checks the tag workflow expects
|
|
248
|
+
# --frozen uses uv.lock as committed and never rewrites it
|
|
249
|
+
uv sync --frozen --extra test --extra plot --extra release
|
|
250
|
+
uv run --frozen pytest --cov=chemparseplot tests
|
|
251
|
+
uv run --frozen ruff check .
|
|
252
|
+
uv run --frozen ruff format --check .
|
|
253
|
+
# Emacs 30 writes doc/source/index.rst. Sphinx reads that file.
|
|
254
|
+
(cd docs && emacs --batch --load export.el)
|
|
255
|
+
uv run --frozen sphinx-build doc/source/ doc/build
|
|
256
|
+
|
|
257
|
+
# 2. Preview the next semantic version from Conventional Commits
|
|
258
|
+
# towncrier headings use X.Y.Z, while the git tag stays vX.Y.Z
|
|
259
|
+
if ! NEXT="$(cog bump --dry-run --auto)"; then
|
|
260
|
+
echo "release: cog bump --dry-run --auto failed, stopping" >&2
|
|
261
|
+
exit 1
|
|
262
|
+
fi
|
|
263
|
+
if [[ ! "$NEXT" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
264
|
+
echo "release: cog gave '$NEXT', not vX.Y.Z, stopping" >&2
|
|
265
|
+
exit 1
|
|
266
|
+
fi
|
|
267
|
+
NEXT="${NEXT#v}"
|
|
268
|
+
|
|
269
|
+
# 3. Aggregate towncrier fragments into the changelog
|
|
270
|
+
uvx towncrier build --version "$NEXT"
|
|
271
|
+
|
|
272
|
+
# 4. Commit the release notes (historically: release: vX.Y.Z)
|
|
273
|
+
# towncrier stages CHANGELOG.md and git-removes the consumed fragments;
|
|
274
|
+
# --ignore-unmatch keeps git rm from failing once that removal is staged
|
|
275
|
+
git add CHANGELOG.md
|
|
276
|
+
git rm -r -q --ignore-unmatch doc/release/upcoming_changes
|
|
277
|
+
git commit -m "release: v$NEXT"
|
|
278
|
+
|
|
279
|
+
# 5. Apply the release tag (hatch-vcs reads the version from tags)
|
|
280
|
+
cog bump --auto
|
|
281
|
+
|
|
282
|
+
# 6. Push main and tags; CI publishes from the tag
|
|
283
|
+
git push origin main --tags
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
<a id="org2cd1740"></a>
|
|
287
|
+
|
|
288
|
+
# License
|
|
289
|
+
|
|
290
|
+
`chemparseplot` is released under the Massachusetts Institute of Technology (MIT) License.
|
|
291
|
+
This is an academic resource, so **please cite** it as much as possible via:
|
|
292
|
+
|
|
293
|
+
- The [Zenodo digital object identifier (DOI)](https://doi.org/10.5281/zenodo.18529752) for general use.
|
|
294
|
+
- The `wailord` paper for ORCA usage.
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
<a id="org59d25de"></a>
|
|
298
|
+
|
|
299
|
+
# Acknowledgments
|
|
300
|
+
|
|
301
|
+
This project builds on work supported by the University of Iceland and the Icelandic Research Fund.
|
|
302
|
+
`chemparseplot` relies on [`rgpycrumbs`](https://github.com/HaoZeke/rgpycrumbs) for computational modules.
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
# Footnotes
|
|
306
|
+
|
|
307
|
+
<sup><a id="fn.1" href="#fnr.1">1</a></sup> To distinguish it from my other thin-python wrapper projects
|
|
@@ -13,7 +13,18 @@ from __future__ import annotations
|
|
|
13
13
|
import importlib
|
|
14
14
|
from typing import TYPE_CHECKING, Any
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
try:
|
|
17
|
+
from chemparseplot._version import __version__
|
|
18
|
+
except ImportError:
|
|
19
|
+
# A source tree that hatch-vcs has not built yet has no _version.py.
|
|
20
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
21
|
+
|
|
22
|
+
try:
|
|
23
|
+
__version__ = version("chemparseplot")
|
|
24
|
+
except PackageNotFoundError:
|
|
25
|
+
__version__ = "0.0.0+unknown"
|
|
26
|
+
|
|
27
|
+
__all__ = ["__version__", "parse", "units"]
|
|
17
28
|
|
|
18
29
|
if TYPE_CHECKING:
|
|
19
30
|
from chemparseplot import parse as parse
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.
|
|
22
|
-
__version_tuple__ = version_tuple = (1,
|
|
21
|
+
__version__ = version = '1.15.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 15, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -14,8 +14,7 @@ Prefer this module for new consumers (cookbooks, wailord, notebooks).
|
|
|
14
14
|
dist_bohr, energy_Eh = extract_orca_geomscan_energy(orca_out_text, "Actual Energy")
|
|
15
15
|
# dist_bohr, energy_Eh are pint Quantities (bohr, hartree)
|
|
16
16
|
|
|
17
|
-
Heavy plot stacks
|
|
18
|
-
transitional extras until suite uv design fully covers them).
|
|
17
|
+
Heavy plot stacks are re-exported lazily so bare installs stay light.
|
|
19
18
|
|
|
20
19
|
Suite pins/config: use ``rgpycrumbs.api`` (shared rgpkgs TOML) — this package
|
|
21
20
|
does **not** invent ``~/.config/chemparseplot``.
|
|
@@ -23,11 +22,13 @@ does **not** invent ``~/.config/chemparseplot``.
|
|
|
23
22
|
.. versionadded:: 1.9.8
|
|
24
23
|
.. versionchanged:: 1.9.9
|
|
25
24
|
Expose ORCA geomscan energy parse as the stable library path.
|
|
25
|
+
.. versionchanged:: 1.9.11
|
|
26
|
+
Expand re-exports (SurfaceFitConfig, plot helpers, basetypes); hub suite_pins.
|
|
26
27
|
"""
|
|
27
28
|
|
|
28
29
|
from __future__ import annotations
|
|
29
30
|
|
|
30
|
-
from typing import TYPE_CHECKING
|
|
31
|
+
from typing import TYPE_CHECKING, Any
|
|
31
32
|
|
|
32
33
|
from chemparseplot.parse.orca.geomscan import extract_energy_data
|
|
33
34
|
from chemparseplot.units import (
|
|
@@ -42,17 +43,30 @@ if TYPE_CHECKING:
|
|
|
42
43
|
|
|
43
44
|
__all__ = [
|
|
44
45
|
"ENERGY_UNITS",
|
|
46
|
+
"Q_",
|
|
47
|
+
"SurfaceFitConfig",
|
|
48
|
+
"chemfiles_available",
|
|
45
49
|
"convert_energy_magnitude",
|
|
46
50
|
"energy_quantity",
|
|
47
51
|
"extract_orca_geomscan_energy",
|
|
52
|
+
"frames_to_table",
|
|
48
53
|
"grammar_available",
|
|
54
|
+
"load_con_trajectory",
|
|
49
55
|
"load_trajectory",
|
|
50
56
|
"normalize_energy_unit",
|
|
51
57
|
"parse_orca_final_energy",
|
|
58
|
+
"parse_orca_ir_spectrum",
|
|
59
|
+
"parse_orca_populations",
|
|
60
|
+
"parse_orca_vibrational_frequencies",
|
|
61
|
+
"parse_orca_vpt2_fundamentals",
|
|
52
62
|
"parse_xyz",
|
|
63
|
+
"plot_con_energy_profile",
|
|
53
64
|
"plot_con_overlay",
|
|
54
65
|
"plot_con_overview",
|
|
66
|
+
"plot_con_structure_strip",
|
|
67
|
+
"plot_landscape_surface",
|
|
55
68
|
"suite_pins",
|
|
69
|
+
"ureg",
|
|
56
70
|
]
|
|
57
71
|
|
|
58
72
|
|
|
@@ -111,18 +125,6 @@ def extract_orca_geomscan_energy(
|
|
|
111
125
|
|
|
112
126
|
In-process library path: text → typed ``(distance, energy)`` pint Quantities
|
|
113
127
|
in Bohr and Hartree (ORCA defaults).
|
|
114
|
-
|
|
115
|
-
Parameters
|
|
116
|
-
----------
|
|
117
|
-
data:
|
|
118
|
-
Blob of ORCA output containing ``Calculated Surface`` blocks.
|
|
119
|
-
energy_type:
|
|
120
|
-
``\"Actual Energy\"`` or ``\"SCF energy\"`` (substring match in the block).
|
|
121
|
-
|
|
122
|
-
Returns
|
|
123
|
-
-------
|
|
124
|
-
tuple[Q_, Q_]
|
|
125
|
-
Distances (bohr) and energies (hartree). Empty quantities if no match.
|
|
126
128
|
"""
|
|
127
129
|
return extract_energy_data(data, energy_type)
|
|
128
130
|
|
|
@@ -154,18 +156,86 @@ def plot_con_overlay(*args, **kwargs):
|
|
|
154
156
|
|
|
155
157
|
|
|
156
158
|
def suite_pins() -> dict[str, str]:
|
|
157
|
-
"""Return suite package pins from rgpkgs config + env (soft on old hub).
|
|
159
|
+
"""Return suite package pins from rgpkgs config + env (soft on old hub)."""
|
|
160
|
+
import importlib
|
|
158
161
|
|
|
159
|
-
Empty dict if rgpycrumbs is missing or too old.
|
|
160
|
-
"""
|
|
161
162
|
try:
|
|
162
|
-
|
|
163
|
+
mod = importlib.import_module("rgpycrumbs.api")
|
|
164
|
+
fn = getattr(mod, "suite_pins", None)
|
|
165
|
+
if callable(fn):
|
|
166
|
+
return fn()
|
|
163
167
|
except ImportError:
|
|
168
|
+
pass
|
|
169
|
+
try:
|
|
170
|
+
mod = importlib.import_module("rgpycrumbs.api")
|
|
171
|
+
pins_from_env = mod.pins_from_env
|
|
172
|
+
load_config = mod.load_config
|
|
173
|
+
except (ImportError, AttributeError):
|
|
164
174
|
return {}
|
|
165
175
|
pins = dict(pins_from_env())
|
|
166
176
|
try:
|
|
167
177
|
cfg = load_config()
|
|
168
178
|
pins.update(cfg.merged_package_pins_normalized())
|
|
169
179
|
except Exception:
|
|
180
|
+
# Older hubs raise while reading a partial config. An empty pin set
|
|
181
|
+
# is the same result as a missing hub.
|
|
170
182
|
pass
|
|
171
183
|
return pins
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
def __getattr__(name: str) -> Any:
|
|
187
|
+
"""Lazy optional re-exports (plot stack / units / ORCA analysis)."""
|
|
188
|
+
if name in {"ureg", "Q_"}:
|
|
189
|
+
from chemparseplot import units as _units
|
|
190
|
+
|
|
191
|
+
return getattr(_units, name)
|
|
192
|
+
if name == "SurfaceFitConfig":
|
|
193
|
+
from chemparseplot.plot.neb import SurfaceFitConfig
|
|
194
|
+
|
|
195
|
+
return SurfaceFitConfig
|
|
196
|
+
if name == "plot_landscape_surface":
|
|
197
|
+
from chemparseplot.plot.neb import plot_landscape_surface
|
|
198
|
+
|
|
199
|
+
return plot_landscape_surface
|
|
200
|
+
if name == "parse_orca_vibrational_frequencies":
|
|
201
|
+
from chemparseplot.parse.orca.freq import parse_orca_vibrational_frequencies
|
|
202
|
+
|
|
203
|
+
return parse_orca_vibrational_frequencies
|
|
204
|
+
if name == "parse_orca_ir_spectrum":
|
|
205
|
+
from chemparseplot.parse.orca.freq import parse_orca_ir_spectrum
|
|
206
|
+
|
|
207
|
+
return parse_orca_ir_spectrum
|
|
208
|
+
if name == "parse_orca_vpt2_fundamentals":
|
|
209
|
+
from chemparseplot.parse.orca.vpt2 import parse_orca_vpt2_fundamentals
|
|
210
|
+
|
|
211
|
+
return parse_orca_vpt2_fundamentals
|
|
212
|
+
if name == "parse_orca_populations":
|
|
213
|
+
from chemparseplot.parse.orca.populations import parse_orca_populations
|
|
214
|
+
|
|
215
|
+
return parse_orca_populations
|
|
216
|
+
if name == "load_con_trajectory":
|
|
217
|
+
from chemparseplot.parse.con import load_con_trajectory
|
|
218
|
+
|
|
219
|
+
return load_con_trajectory
|
|
220
|
+
if name == "frames_to_table":
|
|
221
|
+
from chemparseplot.parse.con import frames_to_table
|
|
222
|
+
|
|
223
|
+
return frames_to_table
|
|
224
|
+
if name == "plot_con_energy_profile":
|
|
225
|
+
from chemparseplot.plot.con import plot_con_energy_profile
|
|
226
|
+
|
|
227
|
+
return plot_con_energy_profile
|
|
228
|
+
if name == "plot_con_overview":
|
|
229
|
+
from chemparseplot.plot.con import plot_con_overview
|
|
230
|
+
|
|
231
|
+
return plot_con_overview
|
|
232
|
+
if name == "plot_con_structure_strip":
|
|
233
|
+
from chemparseplot.plot.con import plot_con_structure_strip
|
|
234
|
+
|
|
235
|
+
return plot_con_structure_strip
|
|
236
|
+
if name == "chemfiles_available":
|
|
237
|
+
from chemparseplot.parse.con import chemfiles_available
|
|
238
|
+
|
|
239
|
+
return chemfiles_available
|
|
240
|
+
msg = f"module {__name__!r} has no attribute {name!r}"
|
|
241
|
+
raise AttributeError(msg)
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2023-present Rohit Goswami <rog32@hi.is>
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
"""Typed records for NEB / saddle parse results.
|
|
5
|
+
|
|
6
|
+
Canonical home for suite basetypes used by parsers and plotters. The hub
|
|
7
|
+
(``rgpycrumbs.basetypes``) re-exports these for compatibility.
|
|
8
|
+
|
|
9
|
+
.. versionadded:: 1.9.11
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from __future__ import annotations
|
|
13
|
+
|
|
14
|
+
import datetime
|
|
15
|
+
from dataclasses import dataclass, field
|
|
16
|
+
|
|
17
|
+
import numpy as np
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"DimerOpt",
|
|
21
|
+
"MolGeom",
|
|
22
|
+
"SaddleMeasure",
|
|
23
|
+
"SpinID",
|
|
24
|
+
"nebiter",
|
|
25
|
+
"nebpath",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@dataclass(frozen=True, slots=True)
|
|
30
|
+
class nebpath: # noqa: N801 — hub records use these names
|
|
31
|
+
"""NEB path samples: normalized arc, arc length, energy."""
|
|
32
|
+
|
|
33
|
+
norm_dist: float
|
|
34
|
+
arc_dist: float
|
|
35
|
+
energy: float
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@dataclass(frozen=True, slots=True)
|
|
39
|
+
class nebiter: # noqa: N801 — hub records use these names
|
|
40
|
+
"""Typed record for one NEB iteration."""
|
|
41
|
+
|
|
42
|
+
iteration: int
|
|
43
|
+
nebpath: nebpath
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
@dataclass
|
|
47
|
+
class DimerOpt:
|
|
48
|
+
"""Configuration for a dimer-based saddle point search."""
|
|
49
|
+
|
|
50
|
+
saddle: str = "dimer"
|
|
51
|
+
rot: str = "lbfgs"
|
|
52
|
+
trans: str = "lbfgs"
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@dataclass
|
|
56
|
+
class SpinID:
|
|
57
|
+
"""Identifier combining molecule ID and spin state."""
|
|
58
|
+
|
|
59
|
+
mol_id: int
|
|
60
|
+
spin: str
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@dataclass
|
|
64
|
+
class MolGeom:
|
|
65
|
+
"""Container for molecular geometry with energy and forces."""
|
|
66
|
+
|
|
67
|
+
pos: np.ndarray
|
|
68
|
+
energy: float
|
|
69
|
+
forces: np.ndarray
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@dataclass
|
|
73
|
+
class SaddleMeasure:
|
|
74
|
+
"""Aggregated measurements from a saddle point search."""
|
|
75
|
+
|
|
76
|
+
pes_calls: int = 0
|
|
77
|
+
iter_steps: int = 0
|
|
78
|
+
tot_time: float = field(default_factory=lambda: datetime.timedelta(0).total_seconds())
|
|
79
|
+
saddle_energy: float = np.nan
|
|
80
|
+
saddle_fmax: float = np.nan
|
|
81
|
+
success: bool = False
|
|
82
|
+
method: str = "not run"
|
|
83
|
+
dimer_rot: str = "n/a"
|
|
84
|
+
dimer_trans: str = "n/a"
|
|
85
|
+
init_energy: float = np.nan
|
|
86
|
+
barrier: float = np.nan
|
|
87
|
+
mol_id: int = np.nan
|
|
88
|
+
spin: str = "unknown"
|
|
89
|
+
scf: float = np.nan
|
|
90
|
+
termination_status: str = "not set"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2023-present Rohit Goswami <rog32@hi.is>
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: MIT
|
|
4
|
+
"""General readcon-core CON/convel (+ chemfiles) integration.
|
|
5
|
+
|
|
6
|
+
This package is the suite home for **any** CON trajectory (not only eOn
|
|
7
|
+
job directories). eOn-specific movie/dat loaders remain under
|
|
8
|
+
:mod:`chemparseplot.parse.eon`; they call these helpers for I/O.
|
|
9
|
+
|
|
10
|
+
Public surface:
|
|
11
|
+
|
|
12
|
+
- I/O: :func:`read_con_frames`, :func:`read_con_as_ase`, :func:`write_con_frames`
|
|
13
|
+
- Tables: :func:`frames_to_table`, :func:`load_con_trajectory`, :func:`load_trajectory`
|
|
14
|
+
- Chemfiles: :func:`chemfiles_available`, :func:`load_chemfiles_trajectory`
|
|
15
|
+
- Types: :class:`ConTrajectory`
|
|
16
|
+
|
|
17
|
+
.. versionadded:: 1.9.12
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
from chemparseplot.parse.con.chemfiles import (
|
|
23
|
+
chemfiles_available,
|
|
24
|
+
load_chemfiles_trajectory,
|
|
25
|
+
read_chemfiles_frames,
|
|
26
|
+
)
|
|
27
|
+
from chemparseplot.parse.con.io import (
|
|
28
|
+
CON_SUFFIXES,
|
|
29
|
+
frame_energy_ev,
|
|
30
|
+
frame_positions_angstrom,
|
|
31
|
+
frame_with_energy,
|
|
32
|
+
frame_with_positions,
|
|
33
|
+
is_con_path,
|
|
34
|
+
iter_con_frames,
|
|
35
|
+
iter_corpus_frames,
|
|
36
|
+
read_con_as_ase,
|
|
37
|
+
read_con_frames,
|
|
38
|
+
read_first_atoms,
|
|
39
|
+
read_first_frame,
|
|
40
|
+
write_atoms_as_con,
|
|
41
|
+
write_con_frames,
|
|
42
|
+
)
|
|
43
|
+
from chemparseplot.parse.con.trajectory import (
|
|
44
|
+
ConTrajectory,
|
|
45
|
+
frames_to_table,
|
|
46
|
+
load_con_trajectory,
|
|
47
|
+
load_trajectory,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
__all__ = [
|
|
51
|
+
"CON_SUFFIXES",
|
|
52
|
+
"ConTrajectory",
|
|
53
|
+
"chemfiles_available",
|
|
54
|
+
"frame_energy_ev",
|
|
55
|
+
"frame_positions_angstrom",
|
|
56
|
+
"frame_with_energy",
|
|
57
|
+
"frame_with_positions",
|
|
58
|
+
"frames_to_table",
|
|
59
|
+
"is_con_path",
|
|
60
|
+
"iter_con_frames",
|
|
61
|
+
"iter_corpus_frames",
|
|
62
|
+
"load_chemfiles_trajectory",
|
|
63
|
+
"load_con_trajectory",
|
|
64
|
+
"load_trajectory",
|
|
65
|
+
"read_chemfiles_frames",
|
|
66
|
+
"read_con_as_ase",
|
|
67
|
+
"read_con_frames",
|
|
68
|
+
"read_first_atoms",
|
|
69
|
+
"read_first_frame",
|
|
70
|
+
"write_atoms_as_con",
|
|
71
|
+
"write_con_frames",
|
|
72
|
+
]
|