Skip to main content

CADMIA

Computational Agent-Driven Molecular Intelligence Architecture

English · Español

CI License: GPL-3.0-or-later Python 3.11–3.14

Author: Pablo Daniel Alvarez Hernandez, Universidad Juárez Autónoma de Tabasco (UJAT)

Status: alpha. Commands and output formats may still change between minor versions.

What is CADMIA?

CADMIA is a command-line suite for studying the reactivity and adsorption properties of nanoclusters from quantum-chemistry outputs (ORCA and Gaussian). It reads the calculations, derives the descriptors, prepares the next calculations and records where every number came from. A single command, cadmia, gives access to every tool.

Main features:

  • Conceptual DFT: global descriptors (I, A, η, μ, ω) by finite differences or Koopmans, and condensed Fukui functions and the dual descriptor, matching Multiwfn.
  • Adsorption: starting configurations for small probe molecules on the most reactive sites, GFN2-xTB pre-screening, and adsorption energetics (ΔE, ΔH, ΔG, deformation and interaction).
  • Stability: mixing and binding energies against the pure oxides, size series, isomers and Boltzmann populations.
  • Structure: coordination numbers (CN, ECN), bond lengths, rings, coordination polyhedra and point-group symmetry.
  • Electronic structure: DOS and PDOS, electrostatic potential on the molecular surface, IR spectra and volumetric maps (density, Fukui, Δρ).
  • Calculations: input preparation, a local sequential queue and SLURM submission, with resumable pipelines.
  • Provenance: results stored in a local SQLite database with file hash, exact command and program version.
  • Bilingual help (--help in English, --ayuda in Spanish) and Markdown/LaTeX reports.

What's new in 0.3.0

Highlights only; the full detail, with the earlier development versions, is in CHANGELOG.md.

  • Isomers in stability-series: several --cluster outputs with the same n are treated as isomers, each with point group, chirality, ΔE₀ and ΔG to its own minimum. The lowest in the chosen basis (E₀ by default) represents n; if the E₀ and G minima differ, both are kept and flagged.
  • Boltzmann populations in both bases: --pop (off by default) adds P(G), with σ from the geometry and g = 2 for chiral isomers, and P(E₀), with the same g and no σ. Population-weighted descriptors are labelled as such.
  • Mixing energy at equal size: stability solves the coefficients as exact fractions (--coeff accepts 1/2 or 0.5), and stability-series --ref pairs pure oxides of any size by stoichiometry, reporting ΔE_mix per formula unit.
  • Symmetry from the geometry: point group, σ and chirality are detected (0.01 Å tolerance); G and Gq are corrected when the engine used a different σ.
  • Every term is checked: stability and stability-series record the multiplicity and the imaginary frequencies of each output, and warn about missing frequencies, mismatched multiplicities or temperatures, mixed ORCA/Gaussian entropies and abnormal terminations.
  • --energy Gq: free energy with Grimme's quasi-RRHO entropy (ν₀ = 100 cm⁻¹, as in ORCA 6).
  • Fixed: electronic mep --density now samples the actual ρ = isovalue surface with area weights (it used a shell that reached into the nuclei); it matches Multiwfn within 0.52 %. A frequency-only Gaussian job is no longer reported as a non-converged optimization.

Requirements

  • Python 3.11 or newer.
  • Outputs from ORCA 6 or Gaussian 16. ORCA is needed only to run calculations; analysis works on any machine.
  • Optional: xtb (pre-screening), SLURM (job submission) and POV-Ray (structure rendering).

Installation

python -m venv .venv
source .venv/bin/activate
pip install -e .            # core
pip install -e ".[full]"    # optional: figures, interactive plots, isosurfaces
cadmia doctor               # checks engines, dependencies and configuration

Quick start

Open in Colab runs the examples in the browser, with nothing to install.

From a clone of the repository, with the sample outputs that ship with the tests:

cadmia doctor                     # engines, dependencies and configuration
cadmia cdft --n tests/fixtures/1tial_cdft/N.out \
            --np1 tests/fixtures/1tial_cdft/N+1.out \
            --nm1 tests/fixtures/1tial_cdft/N-1.out     # descriptors + ranked reactive sites
cadmia structure report tests/fixtures/1tial_orca/1tial_opt.xyz -o structure.txt   # coordination, bonds, rings
cadmia guide                      # the full user guide

Documentation

  • cadmia --help and cadmia <command> --help (English); --ayuda (Spanish).
  • User guide: docs/usage_guide_en.txt (English) and docs/usage_guide.txt (Spanish).
  • Dictionary of terms and descriptors: docs/descriptor_dictionary.md.
  • Validation of the CDFT descriptors against Multiwfn: docs/cdft_vs_multiwfn.md.
  • Changes between versions: CHANGELOG.md.

Tests

pip install -e ".[dev]"
pytest tests/ -q

Citation and license

If CADMIA is used in published work, please cite it as described in CITATION.cff. CADMIA is free software, distributed under the GNU General Public License, version 3 or (at your option) any later version (LICENSE).

Acknowledgements

CADMIA was designed, directed and scientifically validated by Pablo Daniel Álvarez Hernández. AI-based coding assistants were used to write and refactor parts of the code, the automated tests and the documentation; every change was reviewed and validated by the author. Numerical results always come from the quantum-chemistry outputs, never from a language model.

Contact

Bugs and questions: GitHub Issues.

Direct contact: Pablo Daniel Alvarez Hernandez — pablo.alvarez@padalher.com — https://padalher.com

Metadata

Release files for cadmia 0.3.0

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

Source distribution (sdist)

Source distribution for cadmia 0.3.0
File Size Uploaded Provenance Actions
cadmia-0.3.0.tar.gz 515.3 kB With provenance Details for cadmia-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cadmia 0.3.0
File Interpreter ABI Platform Actions
cadmia-0.3.0-py3-none-any.whl Python 3 none any Details for cadmia-0.3.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / cadmia-0.3.0.tar.gz

Download URL cadmia-0.3.0.tar.gz
Size 515.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ae48642ef02783d4a40540841212f381465cc623a492c4fb958cad7546d1287a
BLAKE2b-256 checksum
How to use checksums
de910b4ce4b7dbe98e530519b5b76d936c04f5fe1b2a9116cf9909d7da0733ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / cadmia-0.3.0-py3-none-any.whl

Download URL cadmia-0.3.0-py3-none-any.whl
Size 561.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18f6f5109ca2dc7e183bc859b7d8eb6860f0696e05dd0c25bf682d4a7f0acca7
BLAKE2b-256 checksum
How to use checksums
4c6e932d593b6d0dc3e6b13bd38159335278ca2ec7ff422752efd87010283c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for cadmia 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cadmia-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

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