Repository navigation
Fixed
- The 2.0.0 d5 defect: a wrong Dq with a near-perfect fit and no warning.
It had two causes.- Search and matching. 2.0.0 refined from one seed and could match two
bands to one level. Graded against the determinant oracle on 2.0.0 code
(auditcc12cc6; the solver is unchanged since1eaecc9), 6 of 9 synthetic
high-spin d5 runs with C given at the truth came back 8–126 % off in Dq at
r² 0.980–0.9997, with no warning. The grid-recovery tests that pin this,
re-run at8135f29(before the start grid), miss Dq by −19.4 to +125.9 %,
all beyond their 2 % tolerance. A Dq × B start grid and injective band
assignment fix it: the same 9 runs are all OK in 2.1.0. - ΔS = ±2 levels in the match set. Spin-forbidden bands were also matched
to doublets, which are ΔS = 2 from ⁶A₁: doubly spin-forbidden, not seen in
these spectra. On the
observed [Mn(H2O)6]2+ bands (18870, 23120, 24960 cm⁻¹), unlabelled with
C = 3243 given,3824ce5returned Dq 1113.3, B 1178.0 with a band on ²T₂.
Matching only ΔS = 0, ±1 levels gives Dq 827.35, B 882.57, RMSE 93.7,
where the oracle's least-squares point is 827.348 / 882.564; it stays
undetermined, because a second minimum (741.7 / 504.4, RMSE 164.6) is
also reached. Labelled as the quartets (4_T_1,4_T_2,4_A_1/4_E) the
same bands give Dq 827.35, B 882.57fittedat the given C, or, with C
fitted, 805.98 / 956.80 / 3078.40 (oracle 805.981 / 956.800 / 3078.400).
At the default C the fit isundeterminedand the warning names the
free-C point.
The bands the JCE 2023 tables print for [Mn(H2O)6]2+ (19070, 22710, 24500)
are Foster & Gill's calculated column, so fitting them is a round-trip;
the published (760, 828, 3243) is not a minimum of the observed bands under
this model (RMSE 377 cm⁻¹ there). The reference is d5, so per Hormann & Shaw
(1987) it is a comparison, not a grade.AUDIT-2.1.0.mdSection 1 has the
table.
- Search and matching. 2.0.0 refined from one seed and could match two
- The fit apps (
ts_reverse_fit_app,ts_ratio_fit_app) answer with
fit_spectrumin the caller's spin regime. They no longer use their own grid
or the high-spin default. - Injective band assignment: two bands are never matched to the same level.
Optional term-symbolband_labelspin each band to a term. - Energies given in eV, kK or nm are refused by name. A peak above every d-d
band is refused, and kK users are told to multiply by 1000.
Added
- Parameter provenance: each of Dq, B and C says whether it was fitted, held at
the default, or supplied. A parameter that tied minima disagree on is
reported asundetermined. FitMinimum.ambiguous: True when another minimum fits within 100 cm⁻¹ at a
distinct (Dq, B), so that entry is not a determination.minima: every minimum the search found.free_c_minimaand
FitMinimum.sourcehold the free-C points, andlowest_rmsemarks the
one with the lowest RMSE (lowest RMSE is not "correct": seeundetermined).Dq_nu1,Dq_nu1_reasonandDq_estimator. For d3 and d8, ν₁/10 is reported
beside the least-squares Dq. ν₁ is the band labelled ⁴T₂ / ³T₂ or, without
labels, the lowest band. Neither replaces the other: the two estimators
disagree legitimately on real spectra.assumptions. An unlabelled call withoutinclude_spin_forbiddentreats
every band as spin-allowed, and the result now says so. A band whose label is
Nonecounts as unlabelled. A spin-forbidden line
(²E, ¹E) in such input would be misassigned. This is stated as an assumption,
not raised as a warning, so no verdict changes. Band positions alone cannot
tell a spin-forbidden line from a spin-allowed band: the JCE rows Al2O3:V3+,
KZnClSO4·3H2O:Cr3+ and Co(bipy)3Br2·6H2O fail for this reason. The audit
classes them as identifiability, not as a model limit.geometry="Td"onfit_spectrumandts_fit_spectrumfits a tetrahedral
dⁿ as octahedral d¹⁰⁻ⁿ and reportsDq_convention="Td". It is high-spin only.- J. Chem. Educ. 2023 reference values are graded only where the original was
read. Al2O3:V3+ is comparison-only until its ref 25 is read: its bands and
parameters both rest on it. For Al2O3:Cr3+ the bands are verified from the
ruby paper (ref 21: 551 and 407 nm, R line 694.2 nm), so only Dq is graded, as
ν₁/10 = 1814.9 of the observed band; the Dq, B and C JCE prints from ref 25
are comparison-only. - The determinant oracle (
tanabesugano.test._determinant_oracle) ships in the
wheel, withORACLE-REPORT.mdin the sdist. It rebuilds the full dⁿ
Hamiltonian over all C(10, n) Slater determinants and imports nothing from the
package. AUDIT-2.1.0.mdandpoe audit-fit/audit-fit-check: every fit path,
graded against the oracle and the J. Chem. Educ. 2023 tables, regenerated by
command.poe audit-fit-checkfails on drift; it takes about 7 minutes and is
not part ofpoe checkor CI.
Changed
-
When C is held at its default on three or more bands, at least one of them
unlabelled, and C moves the levels, the fit now runs one extra free-C refit.
Measured cost on the release tree: +0.52 to +0.79 s per such call (median of
three, refit on against stubbed out: d6 low-spin three bands 1.78 s against
0.99 s, [Mn(H2O)6]2+ observed 2.60 against 2.08, d4 with spin-forbidden 2.64
against 2.08); slower machines see more. The refit reports the
C-misspecification; it does not remove it. -
A Dq × B start grid replaces the single seed. Among equally exact minima the
one nearest the seed is returned, and the default Dq bounds widen to contain
every audited truth. -
Spin-forbidden bands are matched only to ΔS = 0, ±1 levels of the ground
term (include_spin_forbidden,band_labels). A ΔS = ±2 member of a label
list is dropped; a label left with none is refused.peak_assignments,
predicted_peaks_cm1andts_spectrum_appfollow the same rule, the last
relative to the ground term at the requested Dq. -
The reverse-fit app reports residuals in the caller's band order, so a
positionalband_labelsentry and its residual line up. -
Held default-C fits that land in a penalty region now raise, naming the held
C, instead of returning a warned wrong fit: 4 audit rows (d4 and d6
high-spin,fit_spectrumand the reverse app) moved WRONG-WARNED → RAISED.
Pass C or label every band. -
The fit apps and
ts_fit_scriptcarryDq_source,B_source,C_source
andassumptions. An undetermined Dq or B is shown as the range over the
tied minima (Dq_range_cm1,B_range_cm1), never as "Best Dq" or one
number.ts_ratio_fit_appis retitled "TS diagram at the fitted (Dq, B),
with ratio-method diagnostic". -
spin_stateonts_reverse_fit_app,ts_ratio_fit_app,ts_fit_plot_app
andts_fit_scriptis"high"or"low":"auto"needs a Dq these tools do
not take and always failed. This narrows a schema enum. -
ts_nephelauxeticsays when β is relative to a default ion. -
Calls that omit the regime flags (
include_spin_forbidden,spin_state) on
bands that need them now raise instead of returning a wrong number without a
warning: high-spin d5 bands withoutinclude_spin_forbidden=True, or more
bands than the regime has spin-allowed transitions. On the synthetic audit
rows, the reverse app without flags went from 124 WRONG-SILENT to 0 (c09f535;
measured again on the release tree: 0, with 127 raised). Unlabelled bands that
fit the spin-allowed count are still fitted as spin-allowed and say so in
assumptions; Co(bipy)3Br2·6H2O is the graded JCE row where that is wrong. -
Regenerating the example tables and the UV-vis reference figures differs by
environment (up to 8.7e-11 in the last float digits, and in PNG bytes). This
predates this branch; the committed files are left as they were. -
An
undeterminedwarning now says that its range spans the tied minima found,
not bounds, and that the true value can lie outside it. An unlabelled fit with
include_spin_forbidden=Truethat leaves Dq or B undetermined also says that
labelling the bands, or fitting only the spin-allowed bands, may give a
different answer. -
Five textbook or secondary literature fixtures whose source is not verified
([Cr(H2O)6]3+, [Ni(NH3)6]2+, [Cr(NH3)6]3+, MgO:Cr3+, [Ni(H2O)6]2+) are
comparison-only: their tests report the distance to the printed values and
grade neither Dq nor B. [Ni(H2O)6]2+ also takes its bands and its parameters
from different sources.
Known limitations
- ZnO:Ni²⁺ (Td) is comparison-only. Its published Dq 405 assumes about
900 cm⁻¹ of spin-orbit ground-state stabilisation (ref 24); the no-spin-orbit
model gives Dq_t 515.1 (+27.2 %) and B 790.1 (−0.7 % against 795.7).
Spin-orbit coupling is not in the Hamiltonian. - Band positions alone cannot tell a spin-forbidden line from a spin-allowed
one. An unlabelled call withoutinclude_spin_forbiddenassumes every band
is spin-allowed and lists that inassumptions; a ²E or ¹E line in such
input is misassigned. - When holding the default C hides a free-C fit, the warning and the
undeterminedmark report identifiability (the bands do not fix C), not
an error in the returned numbers. - The default-C check counts a free-C minimum only if it fits better than the
held one by more thanTIE_RMSE_CM1. Synthetic OK audit rows carrying its
warning, counted onfit_spectrumat the default C (the reverse app with
regime flags repeats the same rows one for one; the ratio app adds 7 more):
limit 14 when it was added, 17 measured then
(9474397), 13 with that threshold (9f75cdc), which removed 52 false
alarms on exact answers at the default C. Measured on the release tree: 14.
The extra row is d5 low-spin (Dq 4106.4, B 989, C 3956), whose verdict moved
WRONG-WARNED → OK under the ΔS band rule (71da21e). Its warning says the
default C (3850) is inconsistent with the bands, which is correct: the true C
is not the default.poe audit-default-c-controlrefits all 130 unique
synthetic points with C equal to the default and finds no warning on a
correct fit. The cost: a held C that ties a distinct exact free-C solution
goes unreported. poe audit-fit-check(about 7 minutes) is not part ofpoe checkor CI.
Backlog
- Optional relative intensities or ε as additive input, or a weak-band flag.
Spin-forbidden lines are orders of magnitude weaker (Cr(ox)3: ε 3 against
76–98), which would separate the identifiability cases physically, without a
tuned margin.