Repository navigation
TOML-first examples: species tables, 11-line scripts, scans by override - #64
Open
rogeriojorge wants to merge 5 commits into
Open
rogeriojorge wants to merge 5 commits into
rogeriojorge wants to merge 5 commits into
Conversation
Landau damping and two-stream are described entirely in their TOML files and run with spectrax input.toml; their scripts shrink to a few lines. The growth- and damping-rate scans reuse those files through load_parameters overrides, so two duplicated TOML files and their index arithmetic go away.
rogeriojorge
added a commit
that referenced
this pull request
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #63, which is stacked on #62.
Problem
Each 1D example re-implemented the Hermite–Fourier initial state by hand: index arithmetic for
Ck_0andFk_0, and a separate TOML file per scan. Users copied 60–130 lines to set up a case.Change
input_1D_landau_damping.tomlandinput_1D_two_stream.tomldescribe their species physically and run withspectrax <file>. Their scripts shrink from 65 and 59 lines to 11 each: load, simulate, plot.load_parameters(file, Lx=...). The growth scan also changes resolution and the seed withspecies={...}overrides. This replaces two duplicated TOML files and their index arithmetic.load_parameters(input_file, **overrides)accepts any input or solver key, plusspecies={name: {...}}.ExamplesChecks