docs: split conventions into CONVENTIONS.md — natural units, energy notation, SpectrumComponent design

- CONVENTIONS.md: natural units (m_e=hbar=c=1), W vs MeV energy representation,
  conversion helpers, SpectrumComponent interface, physics-specific testing
- DEVELOPMENT.md: removed physics-specific 'What to Test' section,
  references CONVENTIONS.md for physics testing guidelines
This commit is contained in:
2026-05-01 22:01:33 +03:00
parent 5950659514
commit 6a671bfb8b
2 changed files with 101 additions and 5 deletions
+3 -5
View File
@@ -57,11 +57,9 @@ Branch naming: `dev/<short-description>` (e.g., `dev/recoil-correction`)
### What to Test
- **Physical constraints**: values at thresholds, endpoints, and boundaries must match known physics
- **Monotonicity / positivity**: spectrum components should not produce unphysical negative values
- **Shape correctness**: output shape must match input shape
- **Type safety**: components accept and return `np.ndarray`
- **Numerical stability**: no NaN or inf in the physical energy range (except where physically expected)
See [`CONVENTIONS.md`](CONVENTIONS.md) §4 for physics-specific testing guidelines (physical constraints, positivity, numerical stability).
For general test structure, use the conventions below.
## 4. Quality Gates