feat(pipekit): spectral diagnostics — energy, enstrophy, isotropic spectra, filters
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 47/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- data, machine-learning
Research direction
Start by checking the implementation and acceptance criteria for dependencies #151, #110, and #108, then identify how spectral inputs, reductions, and rfft layouts are represented in the project. The issue specifies zero transforms for spectral inputs and tests against physical-space sums, analytic spectra, total energy, and Parseval weights for both layouts; done means those criteria pass.
Written by the indexing model from the issue text.
Description
Part of epic #148. Depends on: #151 (E4.1); the spectra ops wrap #110's Tier-A functions once they exist.
Proposal
| op | math | transforms on Spectral input |
|---|---|---|
Energy |
E = ½ ∑ |k|² |ψ̂|² / N² (from ψ or q) | 0 |
Enstrophy |
Z = ½ ∑ |q̂|² / N² (Parseval) | 0 |
IsotropicSpectrum |
E(k) = ∑_{k−½ ≤ |k′| < k+½} ½|k′|²|ψ̂(k′)|², binned | 0 |
Filter |
wraps SpectralFilter2D (exponential, Hou–Li, …); strength is a leaf |
0 |
All ops reduce the trailing grid axes and keep leading (time, ensemble) axes: [T, Ny, Nx] → [T] or [T, n_k].
Prototype check: enstrophy decays monotonically under hyperviscosity (Z/Z₀ = 1 → 0.9415 over 400 steps), computed with 0 transforms on the spectral trajectory.
Acceptance criteria
-
Energy/Enstrophyequal physical-space sums (allclose) and use 0 transforms onSpectralinput. -
IsotropicSpectrumreproduces a known analytic spectrum (single-mode and power-law fields), and its bin sum equals total energy. - With rfft layout (#108), Parseval weights double the interior kₓ columns correctly (test for both layouts).
Generated by Claude Code
- Dominant language
- Python
- Stars
- 2
- Forks
- 0
- Avg merge
- 8h 13m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jejjohnson/spectraldiffx
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
jejjohnson/spectraldiffx#172 ·
-
epic
Difficulty 1/5 Under an hour Newbie friendliness 62/100
jejjohnson/spectraldiffx#167 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
jejjohnson/spectraldiffx#113 ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jejjohnson/spectraldiffx#105 ·
-
dependencies
Difficulty 4/5 3-5 days Newbie friendliness 45/100
jejjohnson/spectraldiffx#181 ·
All issues in jejjohnson/spectraldiffx
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day