Skip to content

Commit 250dad3

Browse files
committed
Expand QUESTDB exploration, spectra, and benchmarking
1 parent c814a20 commit 250dad3

13 files changed

Lines changed: 1647 additions & 563 deletions

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/site/
2+
/website/__pycache__/

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15671384.svg)](https://doi.org/10.5281/zenodo.15671384)
1212

13-
**[Open the QUESTDB website](https://pfloos.github.io/QUESTDB/)** to explore reference energies, benchmark methods, and download molecular geometries. The site is rebuilt from the database after pushes to `main`.
13+
**[Open the QUESTDB website](https://pfloos.github.io/QUESTDB/)** to search by name or formula, inspect reference energies and molecular spectra, benchmark methods, and download geometries and ready-to-run benchmark packs. The site is rebuilt from the database after pushes to `main`.
1414

1515
---
1616

‎website/README.md‎

Lines changed: 57 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,67 @@ python3 -m http.server 8000 --directory site
99
```
1010

1111
Open http://localhost:8000. Serve the directory over HTTP so the browser can
12-
load the JSON collections. Each collection is loaded when selected. The
13-
table displays 40 records at a time and CSV export includes the full filtered
14-
result, the source JSON URL, and the source commit.
12+
load the JSON collections. The site is built from the repository's JSON data
13+
and geometry registry. The Explorer displays 40 records per page and exports
14+
the full filtered result as CSV with state IDs, source URLs, and the commit.
1515

16-
The five neutral collections retain the original metadata and computed
17-
energies. Neutral method errors use the reported AVTZ reference for the
18-
same row. In Benchmark, AVQZ is an optional reference for rows that report it. This changes the reference, while the method energies remain as recorded in the source. Core and valence benchmarks compare method values to sCI within the same source file, transition type, basis, and position in the source arrays. Valence IPs and satellites can be benchmarked separately. All summary metrics and plots use the intersection of states for the selected methods. The violin plot shows a smoothed density of signed errors and overlays the individual states.
16+
## Explore
1917

20-
The Geometries view and ZIP downloads use the [canonical geometry registry](../geometries/registry.json). The full archive contains each canonical geometry once. Individual collection archives include their shared canonical geometries, including a Double IP archive. Charged records link to the canonical preview and, when the source path differs, offer the original benchmark XYZ as a separate download. Existing direct XYZ URLs still serve their original files.
18+
Search accepts a molecule name, formula, source alias, or state text. Formula
19+
matches preserve separate isomers. The formula index is generated from XYZ
20+
element counts. Common names and display formulas that differ from those
21+
counts are maintained in `catalog.py`.
2122

22-
Canonical filenames use the geometry IDs. Those include `_GS`, `_ES`, or a descriptive suffix for documented variants. The ball-and-stick preview infers connectivity from interatomic distances and covalent radii.
23+
The molecule page gathers states from all associated collections and puts
24+
the canonical geometry first. It also lists separately documented structures
25+
and provides direct XYZ downloads and a ball-and-stick preview with inferred
26+
bonds. A charged state can also link to its original benchmark XYZ. Neutral
27+
fluorescence entries use their documented excited-state structures.
28+
All other geometry downloads use the [registry](../geometries/registry.json).
2329

24-
Charged collections display the source's method, basis, sector,
25-
and one-based root index. Root indices belong to the individual source
26-
series. Use the original JSON and accompanying references to match states
27-
between methods. Missing energies are omitted from the charged explorer,
28-
and missing weights or uncertainties remain blank. The standalone core
29-
file `charged/core_IPs/output.json` lacks a molecule, site, and method
30-
identifier. It remains available in the source tree.
30+
The state view displays the source JSON, collection citation, reference
31+
method, basis correction and reliability annotation when recorded, plus a
32+
method × basis table. Corrections with documented previous values and reasons
33+
can be added to `REFERENCE_REVISIONS` in `catalog.py`. Where the neutral JSON
34+
method column has no basis tag, the site marks the basis as unlabelled.
35+
36+
Molecule spectra use the TBE/AVTZ vertical energies and reported oscillator
37+
strengths of the chosen collection. The broadening is a normalized Gaussian
38+
or Lorentzian with an adjustable FWHM (default 0.20 eV). Each curve's line areas
39+
are weighted by oscillator strength. Reported zeros remain clickable on the
40+
baseline and unreported strengths appear on a separate row. Spectrum exports
41+
include the sampled curve, transitions, line shape, FWHM and source revision.
42+
43+
## Benchmark
44+
45+
Options within a filter are combined with OR. Separate filters are combined
46+
with AND. Select exact method/basis combinations to compare a particular
47+
pair such as one method at one basis against a different method at another.
48+
Neutral references are TBE/AVTZ and, where available, TBE/AVQZ. Charged
49+
references are sCI at the selected basis, even when a method uses another
50+
basis. Valence IPs, satellites and DIPs align by the one-based position in
51+
their source arrays. Check the source and citations for state assignments.
52+
53+
The default sample is the intersection across selected method/basis
54+
combinations. Coverage counts are measured before this intersection.
55+
With **Shared states only** cleared, each method uses all eligible states
56+
that it covers. The paired plot always uses shared states and shows the
57+
difference between the two absolute errors. The violin plot overlays the
58+
individual states on the smoothed signed-error distribution.
59+
60+
Share links restore the filters, reference and plot, and report when the
61+
site has moved to a different commit. The plotted-data and statistics CSVs
62+
include the source commit and exact state IDs.
63+
64+
The downloadable Diet-50 and core-IP packs have fixed membership
65+
(`benchmark-cases.json`). Each build uses the current checkout's energies
66+
and exact corresponding XYZ files. Archives carry the source commit and
67+
include reference values, citations and a blank results CSV. To reproduce
68+
an older pack, check out its commit and rebuild the site.
69+
70+
Missing charged energies are omitted and missing uncertainties or weights
71+
remain blank. The separate `charged/core_IPs/output.json` lacks a molecule,
72+
site, and method identifier and remains in the source tree.
3173

3274
## Publish
3375

0 commit comments

Comments
 (0)